Skip to content

Commit

Permalink
Fix test definition for tests moved to json/ (#2139)
Browse files Browse the repository at this point in the history
Summary:
The commit cb47968 moved several JSON-related tests into the new directory folly/json/test/ but did not update the test definitions in CMakeLists.txt accordingly.

Detected in the [AUR package for folly](https://aur.archlinux.org/packages/folly).

Pull Request resolved: #2139

Reviewed By: Gownta

Differential Revision: D53688381

Pulled By: Orvid

fbshipit-source-id: b73c74e07d3d78e575b4ebeaecc94c69a997b63d
  • Loading branch information
carlsmedstad authored and facebook-github-bot committed Feb 14, 2024
1 parent 8cfc5d7 commit 0e81e77
Showing 1 changed file with 13 additions and 11 deletions.
24 changes: 13 additions & 11 deletions CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -706,14 +706,12 @@ if (BUILD_TESTS OR BUILD_BENCHMARKS)
TEST autotimer_test SOURCES AutoTimerTest.cpp
TEST bits_test_2 SOURCES BitsTest.cpp
TEST bitvector_test SOURCES BitVectorCodingTest.cpp
TEST dynamic_parser_test SOURCES DynamicParserTest.cpp
TEST eliasfano_test SOURCES EliasFanoCodingTest.cpp
TEST event_count_test SOURCES EventCountTest.cpp
# FunctionSchedulerTest has a lot of timing-dependent checks,
# and tends to fail on heavily loaded systems.
TEST function_scheduler_test BROKEN SOURCES FunctionSchedulerTest.cpp
TEST future_dag_test SOURCES FutureDAGTest.cpp
TEST json_schema_test SOURCES JSONSchemaTest.cpp
TEST lock_free_ring_buffer_test SOURCES LockFreeRingBufferTest.cpp
#TEST nested_command_line_app_test SOURCES NestedCommandLineAppTest.cpp
#TEST program_options_test SOURCES ProgramOptionsTest.cpp
Expand Down Expand Up @@ -1005,9 +1003,6 @@ if (BUILD_TESTS OR BUILD_BENCHMARKS)
TEST demangle_test SOURCES DemangleTest.cpp
TEST deterministic_schedule_test SOURCES DeterministicScheduleTest.cpp
TEST discriminated_ptr_test SOURCES DiscriminatedPtrTest.cpp
TEST dynamic_test SOURCES DynamicTest.cpp
TEST dynamic_converter_test SOURCES DynamicConverterTest.cpp
TEST dynamic_other_test SOURCES DynamicOtherTest.cpp
TEST endian_test SOURCES EndianTest.cpp
TEST exception_test SOURCES ExceptionTest.cpp
BENCHMARK exception_wrapper_benchmark WINDOWS_DISABLED
Expand Down Expand Up @@ -1045,12 +1040,6 @@ if (BUILD_TESTS OR BUILD_BENCHMARKS)
TEST indestructible_test SOURCES IndestructibleTest.cpp
TEST indexed_mem_pool_test BROKEN
SOURCES IndexedMemPoolTest.cpp
# MSVC Preprocessor stringizing raw string literals bug
TEST json_test WINDOWS_DISABLED SOURCES JsonTest.cpp
BENCHMARK json_benchmark SOURCES JsonBenchmark.cpp
TEST json_pointer_test SOURCES json_pointer_test.cpp
TEST json_patch_test SOURCES json_patch_test.cpp
TEST json_other_test SOURCES JsonOtherTest.cpp
TEST lazy_test SOURCES LazyTest.cpp
TEST locks_test SOURCES SpinLockTest.cpp
TEST math_test SOURCES MathTest.cpp
Expand Down Expand Up @@ -1108,6 +1097,19 @@ if (BUILD_TESTS OR BUILD_BENCHMARKS)
BENCHMARK uri_benchmark SOURCES UriBenchmark.cpp
TEST uri_test SOURCES UriTest.cpp
TEST varint_test SOURCES VarintTest.cpp

DIRECTORY json/test/
TEST dynamic_converter_test SOURCES DynamicConverterTest.cpp
TEST dynamic_other_test SOURCES DynamicOtherTest.cpp
TEST dynamic_parser_test SOURCES DynamicParserTest.cpp
TEST dynamic_test SOURCES DynamicTest.cpp
# MSVC Preprocessor stringizing raw string literals bug
TEST json_test WINDOWS_DISABLED SOURCES JsonTest.cpp
BENCHMARK json_benchmark SOURCES JsonBenchmark.cpp
TEST json_other_test SOURCES JsonOtherTest.cpp
TEST json_patch_test SOURCES json_patch_test.cpp
TEST json_pointer_test SOURCES json_pointer_test.cpp
TEST json_schema_test SOURCES JSONSchemaTest.cpp
)

if (${LIBSODIUM_FOUND})
Expand Down

0 comments on commit 0e81e77

Please sign in to comment.