Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .github/.licenserc.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ header:
- 'NOTICE'
- 'src/iceberg/expected.h'
- 'src/iceberg/util/murmurhash3_internal.*'
- 'test/resources/**'
- 'src/iceberg/test/resources/**'

comment: on-failure
2 changes: 1 addition & 1 deletion .pre-commit-config.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ repos:
rev: v20.1.8
hooks:
- id: clang-format
exclude: ^test/resources/.*\.json$
exclude: ^src/iceberg/test/resources/.*\.json$

- repo: https://github.com/cheshirekow/cmake-format-precommit
rev: v0.6.10
Expand Down
4 changes: 1 addition & 3 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -66,11 +66,9 @@ include(IcebergSanitizer)
include(IcebergThirdpartyToolchain)
include(GenerateExportHeader)

add_subdirectory(src)

if(ICEBERG_BUILD_TESTS)
enable_testing()
add_subdirectory(test)
endif()

add_subdirectory(src)
install(FILES LICENSE NOTICE DESTINATION ${ICEBERG_INSTALL_DOCDIR})
4 changes: 4 additions & 0 deletions src/iceberg/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -182,3 +182,7 @@ if(ICEBERG_BUILD_BUNDLE)
endif()

iceberg_install_cmake_package(Iceberg iceberg_targets)

if(ICEBERG_BUILD_TESTS)
add_subdirectory(test)
endif()
5 changes: 2 additions & 3 deletions test/CMakeLists.txt → src/iceberg/test/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -23,10 +23,9 @@ fetchcontent_declare(googletest
GTest)
fetchcontent_makeavailable(googletest)

set(ICEBERG_TEST_RESOURCES "${CMAKE_SOURCE_DIR}/test/resources")
set(ICEBERG_TEST_RESOURCES "${CMAKE_SOURCE_DIR}/src/iceberg/test/resources")

configure_file("${CMAKE_SOURCE_DIR}/test/test_config.h.in"
"${CMAKE_BINARY_DIR}/iceberg/test/test_config.h")
configure_file("test_config.h.in" "test_config.h")

function(add_iceberg_test test_name)
set(options USE_BUNDLE)
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading