Skip to content

Commit

Permalink
refactor(c/validation): split up large test file
Browse files Browse the repository at this point in the history
  • Loading branch information
lidavidm committed Feb 12, 2024
1 parent 1e1a576 commit c391344
Show file tree
Hide file tree
Showing 8 changed files with 3,949 additions and 3,865 deletions.
32 changes: 17 additions & 15 deletions .github/workflows/native-unix.yml
Original file line number Diff line number Diff line change
Expand Up @@ -111,6 +111,7 @@ jobs:
export ADBC_USE_ASAN=OFF
export ADBC_USE_UBSAN=OFF
export PATH=$RUNNER_TOOL_CACHE/go/1.19.13/x64/bin:$PATH
export ADBC_CMAKE_ARGS="-DCMAKE_UNITY_BUILD=ON"
./ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build" "$HOME/local"
- name: Go Build
shell: bash -l {0}
Expand Down Expand Up @@ -167,24 +168,25 @@ jobs:
mamba install -c conda-forge \
--file ci/conda_env_cpp.txt
- name: Build SQLite3 Driver
shell: bash -l {0}
run: |
env BUILD_ALL=0 BUILD_DRIVER_SQLITE=1 ./ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build"
- name: Test SQLite3 Driver
shell: bash -l {0}
run: |
env BUILD_ALL=0 BUILD_DRIVER_SQLITE=1 ./ci/scripts/cpp_test.sh "$(pwd)/build"
- name: Build PostgreSQL Driver
shell: bash -l {0}
run: |
env BUILD_ALL=0 BUILD_DRIVER_POSTGRESQL=1 ./ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build"
- name: Build Driver Manager
- name: Build
shell: bash -l {0}
env:
ADBC_CMAKE_ARGS: "-DCMAKE_UNITY_BUILD=ON"
BUILD_ALL: "0"
BUILD_DRIVER_MANAGER: "1"
BUILD_DRIVER_POSTGRESQL: "1"
BUILD_DRIVER_SQLITE: "1"
run: |
env BUILD_ALL=0 BUILD_DRIVER_MANAGER=1 ./ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build"
- name: Test Driver Manager
./ci/scripts/cpp_build.sh "$(pwd)" "$(pwd)/build"
- name: Test
shell: bash -l {0}
env:
BUILD_ALL: "0"
BUILD_DRIVER_MANAGER: "1"
# PostgreSQL is explicitly not tested here since we don't spawn
# Postgres; see integration.yml
BUILD_DRIVER_POSTGRESQL: "0"
BUILD_DRIVER_SQLITE: "1"
run: |
./ci/scripts/cpp_test.sh "$(pwd)/build"
Expand Down
4 changes: 3 additions & 1 deletion c/validation/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,9 @@ target_include_directories(adbc_validation_util SYSTEM
target_link_libraries(adbc_validation_util PUBLIC adbc_driver_common nanoarrow
GTest::gtest GTest::gmock)

add_library(adbc_validation OBJECT adbc_validation.cc)
add_library(adbc_validation OBJECT
adbc_validation.cc adbc_validation_connection.cc adbc_validation_database.cc
adbc_validation_statement.cc)
adbc_configure_target(adbc_validation)
target_compile_features(adbc_validation PRIVATE cxx_std_17)
target_include_directories(adbc_validation SYSTEM
Expand Down
Loading

0 comments on commit c391344

Please sign in to comment.