Skip to content

Commit b303b3f

Browse files
Victor-C-Zhangfacebook-github-bot
authored andcommitted
tests for materialized params
Summary: Tests that cover the full suite of functionality for materialized params, including an optimization for duplicate materialzations. Differential Revision: D89242003
1 parent 4b93313 commit b303b3f

File tree

4 files changed

+1121
-0
lines changed

4 files changed

+1121
-0
lines changed

tests/CMakeLists.txt

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,11 +66,22 @@ file(GLOB_RECURSE test_decompress_headers CONFIGURE_DEPENDS
6666
"${CMAKE_CURRENT_LIST_DIR}/decompress/*.h")
6767
add_zs_test(test_decompress ${test_decompress_srcs} ${test_decompress_headers})
6868

69+
# Collect all integrationtest files except the conditional ones
70+
file(GLOB_RECURSE integrationtest_srcs CONFIGURE_DEPENDS
71+
"${CMAKE_CURRENT_LIST_DIR}/integrationtest/*.cpp")
72+
73+
# Exclude the conditional test files
74+
list(FILTER integrationtest_srcs EXCLUDE REGEX ".*/CompressIntrospectionTest\\.cpp$")
75+
list(FILTER integrationtest_srcs EXCLUDE REGEX ".*/NoIntrospectionTest\\.cpp$")
76+
77+
# Add the appropriate conditional file
6978
if (OPENZL_ALLOW_INTROSPECTION)
7079
add_zs_test(integrationtest
80+
${integrationtest_srcs}
7181
${CMAKE_CURRENT_LIST_DIR}/integrationtest/CompressIntrospectionTest.cpp)
7282
else()
7383
add_zs_test(integrationtest
84+
${integrationtest_srcs}
7485
${CMAKE_CURRENT_LIST_DIR}/integrationtest/NoIntrospectionTest.cpp)
7586
endif()
7687
target_link_libraries(integrationtest PRIVATE openzl_cpp)

0 commit comments

Comments
 (0)