Skip to content
Open
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
659 changes: 39 additions & 620 deletions CMakeLists.txt

Large diffs are not rendered by default.

23 changes: 23 additions & 0 deletions folly/algorithm/simd/detail/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/algorithm/simd/detail/test/

folly_define_tests(
DIRECTORY algorithm/simd/detail/test/
TEST algorithm_simd_detail_simd_any_of_test SOURCES SimdAnyOfTest.cpp
TEST algorithm_simd_detail_simd_for_each_test SOURCES SimdForEachTest.cpp
TEST algorithm_simd_detail_simd_traits_test SOURCES TraitsTest.cpp
TEST algorithm_simd_detail_unroll_utils_test SOURCES UnrollUtilsTest.cpp
)
23 changes: 23 additions & 0 deletions folly/algorithm/simd/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/algorithm/simd/test/

folly_define_tests(
DIRECTORY algorithm/simd/test/
TEST algorithm_simd_contains_test SOURCES ContainsTest.cpp
TEST algorithm_simd_find_first_of_test SOURCES find_first_of_test.cpp
TEST algorithm_simd_find_fixed_test SOURCES FindFixedTest.cpp
TEST algorithm_simd_movemask_test SOURCES MovemaskTest.cpp
)
21 changes: 21 additions & 0 deletions folly/chrono/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/chrono/test/

folly_define_tests(
DIRECTORY chrono/test/
TEST chrono_conv_test WINDOWS_DISABLED
SOURCES ConvTest.cpp
)
20 changes: 20 additions & 0 deletions folly/cli/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/cli/test/

folly_define_tests(
DIRECTORY cli/test/
TEST cli_args_test SOURCES ArgsTest.cpp
)
21 changes: 21 additions & 0 deletions folly/codec/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/codec/test/

folly_define_tests(
DIRECTORY codec/test/
TEST codec_hex_test SOURCES hex_test.cpp
TEST codec_uuid_test SOURCES UuidTest.cpp
)
23 changes: 23 additions & 0 deletions folly/compression/elias_fano/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/compression/elias_fano/test/

folly_define_tests(
DIRECTORY compression/elias_fano/test/
TEST compression_alias_fano_bit_vector_coding_test
SOURCES BitVectorCodingTest.cpp
TEST compression_alias_fano_elias_fano_test
SOURCES EliasFanoCodingTest.cpp
)
22 changes: 22 additions & 0 deletions folly/compression/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/compression/test/

folly_define_tests(
DIRECTORY compression/test/
TEST compression_compression_test SLOW SOURCES CompressionTest.cpp
TEST compression_quotient_multiset_test SOURCES QuotientMultiSetTest.cpp
TEST compression_select64_test SOURCES Select64Test.cpp
)
21 changes: 21 additions & 0 deletions folly/concurrency/container/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/concurrency/container/test/

folly_define_tests(
DIRECTORY concurrency/container/test/
TEST concurrency_container_lock_free_ring_buffer_test
SOURCES LockFreeRingBufferTest.cpp
)
39 changes: 39 additions & 0 deletions folly/concurrency/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/concurrency/test/

folly_define_tests(
DIRECTORY concurrency/test/
TEST concurrency_atomic_shared_ptr_test SOURCES AtomicSharedPtrTest.cpp
TEST concurrency_cache_locality_test WINDOWS_DISABLED
SOURCES CacheLocalityTest.cpp
TEST concurrency_core_cached_shared_ptr_test
SOURCES CoreCachedSharedPtrTest.cpp
BENCHMARK concurrency_concurrent_hash_map_bench WINDOWS_DISABLED
SOURCES ConcurrentHashMapBench.cpp
TEST concurrency_concurrent_hash_map_stress_test SLOW WINDOWS_DISABLED
SOURCES ConcurrentHashMapStressTest.cpp
TEST concurrency_concurrent_hash_map_test WINDOWS_DISABLED
SOURCES ConcurrentHashMapTest.cpp
TEST concurrency_dynamic_bounded_queue_test WINDOWS_DISABLED
SOURCES DynamicBoundedQueueTest.cpp
TEST concurrency_priority_unbounded_queue_set_test
SOURCES PriorityUnboundedQueueSetTest.cpp
BENCHMARK concurrency_thread_cached_synchronized_bench
SOURCES ThreadCachedSynchronizedBench.cpp
TEST concurrency_thread_cached_synchronized_test
SOURCES ThreadCachedSynchronizedTest.cpp
TEST concurrency_unbounded_queue_test SOURCES UnboundedQueueTest.cpp
)
50 changes: 50 additions & 0 deletions folly/container/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,50 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/container/test/

folly_define_tests(
DIRECTORY container/test/
TEST container_access_test SOURCES AccessTest.cpp
TEST container_array_test SOURCES ArrayTest.cpp
BENCHMARK container_bit_iterator_bench SOURCES BitIteratorBench.cpp
TEST container_bit_iterator_test SOURCES BitIteratorTest.cpp
TEST container_enumerate_test SOURCES EnumerateTest.cpp
BENCHMARK container_evicting_cache_map_bench
SOURCES EvictingCacheMapBench.cpp
TEST container_evicting_cache_map_test SOURCES EvictingCacheMapTest.cpp
TEST container_f14_fwd_test SOURCES F14FwdTest.cpp
TEST container_f14_map_test SOURCES F14MapTest.cpp
TEST container_f14_set_test SOURCES F14SetTest.cpp
BENCHMARK container_fbvector_benchmark
SOURCES FBVectorBenchmark.cpp
HEADERS FBVectorBenchmarks.cpp.h
TEST container_fbvector_test SOURCES FBVectorTest.cpp
BENCHMARK container_foreach_benchmark SOURCES ForeachBenchmark.cpp
TEST container_foreach_test SOURCES ForeachTest.cpp
BENCHMARK container_hash_maps_bench SOURCES HashMapsBench.cpp
TEST container_heap_vector_types_test SOURCES heap_vector_types_test.cpp
TEST container_map_util_test WINDOWS_DISABLED SOURCES MapUtilTest.cpp
TEST container_merge_test SOURCES MergeTest.cpp
TEST container_regex_match_cache_test SOURCES RegexMatchCacheTest.cpp
TEST container_small_vector_test WINDOWS_DISABLED
SOURCES small_vector_test.cpp
TEST container_sorted_vector_types_test SOURCES sorted_vector_test.cpp
TEST container_span_test SOURCES span_test.cpp
TEST container_std_bitset_test SOURCES StdBitsetTest.cpp
BENCHMARK container_sparse_byte_set_benchmark
SOURCES SparseByteSetBenchmark.cpp
TEST container_sparse_byte_set_test SOURCES SparseByteSetTest.cpp
TEST container_util_test SOURCES UtilTest.cpp
)
24 changes: 24 additions & 0 deletions folly/crypto/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/crypto/test/

if (${LIBSODIUM_FOUND})
folly_define_tests(
DIRECTORY crypto/test/
TEST crypto_blake2xb_test SOURCES Blake2xbTest.cpp
BENCHMARK crypto_lt_hash_benchmark SOURCES LtHashBenchmark.cpp
TEST crypto_lt_hash_test SOURCES LtHashTest.cpp
)
endif()
24 changes: 24 additions & 0 deletions folly/detail/base64_detail/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/detail/base64_detail/test/

folly_define_tests(
DIRECTORY detail/base64_detail/test/
TEST detail_base64_detail_test WINDOWS_DISABLED
SOURCES
Base64AgainstScalarTest.cpp
Base64PlatformTest.cpp
Base64SpecialCasesTest.cpp
)
26 changes: 26 additions & 0 deletions folly/detail/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/detail/test/

folly_define_tests(
DIRECTORY detail/test/
TEST detail_simple_simd_string_utils_test
SOURCES SimpleSimdStringUtilsTest.cpp
TEST detail_split_string_simd_test WINDOWS_DISABLED
SOURCES SplitStringSimdTest.cpp
TEST detail_static_singleton_manager_test
SOURCES StaticSingletonManagerTest.cpp
TEST detail_type_list_test SOURCES TypeListTest.cpp
)
34 changes: 34 additions & 0 deletions folly/executors/task_queue/test/CMakeLists.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
# Copyright (c) Meta Platforms, Inc. and affiliates.
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
# http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.

# Test definitions for folly/executors/task_queue/test/

folly_define_tests(
DIRECTORY executors/task_queue/test/
TEST executors_task_queue_priority_unbounded_blocking_queue_test
SOURCES PriorityUnboundedBlockingQueueTest.cpp
BENCHMARK executors_task_queue_unbounded_blocking_queue_bench
SOURCES UnboundedBlockingQueueBench.cpp
TEST executors_task_queue_unbounded_blocking_queue_test
SOURCES UnboundedBlockingQueueTest.cpp

#DIRECTORY experimental/test/
#TEST nested_command_line_app_test SOURCES NestedCommandLineAppTest.cpp
#TEST program_options_test SOURCES ProgramOptionsTest.cpp
# Depends on liburcu
#TEST read_mostly_shared_ptr_test SOURCES ReadMostlySharedPtrTest.cpp
#TEST ref_count_test SOURCES RefCountTest.cpp

#DIRECTORY experimental/io/test/
)
Loading