mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
cb3348191b
`AK::Trie` can be keyed by any given hashable type, and can store any metadata (including nothing at all). Also adds a test.
60 lines
1.3 KiB
CMake
60 lines
1.3 KiB
CMake
set(AK_TEST_SOURCES
|
|
TestAllOf.cpp
|
|
TestArray.cpp
|
|
TestAtomic.cpp
|
|
TestBase64.cpp
|
|
TestBinarySearch.cpp
|
|
TestBitmap.cpp
|
|
TestByteBuffer.cpp
|
|
TestChecked.cpp
|
|
TestCircularDeque.cpp
|
|
TestCircularDuplexStream.cpp
|
|
TestCircularQueue.cpp
|
|
TestDistinctNumeric.cpp
|
|
TestEndian.cpp
|
|
TestFormat.cpp
|
|
TestHashFunctions.cpp
|
|
TestHashMap.cpp
|
|
TestIPv4Address.cpp
|
|
TestJSON.cpp
|
|
TestLexicalPath.cpp
|
|
TestMACAddress.cpp
|
|
TestMemMem.cpp
|
|
TestMemoryStream.cpp
|
|
TestNeverDestroyed.cpp
|
|
TestNonnullRefPtr.cpp
|
|
TestNumberFormat.cpp
|
|
TestOptional.cpp
|
|
TestQueue.cpp
|
|
TestQuickSort.cpp
|
|
TestRefPtr.cpp
|
|
TestSourceGenerator.cpp
|
|
TestSpan.cpp
|
|
TestString.cpp
|
|
TestStringUtils.cpp
|
|
TestStringView.cpp
|
|
TestTrie.cpp
|
|
TestTypedTransfer.cpp
|
|
TestURL.cpp
|
|
TestUtf8.cpp
|
|
TestVector.cpp
|
|
TestWeakPtr.cpp
|
|
)
|
|
|
|
foreach(source ${AK_TEST_SOURCES})
|
|
get_filename_component(name ${source} NAME_WE)
|
|
add_executable(${name} ${source})
|
|
target_link_libraries(${name} LagomCore)
|
|
add_test(
|
|
NAME ${name}
|
|
COMMAND ${name}
|
|
WORKING_DIRECTORY ${CMAKE_CURRENT_SOURCE_DIR}
|
|
)
|
|
|
|
set_tests_properties(
|
|
${name}
|
|
PROPERTIES
|
|
FAIL_REGULAR_EXPRESSION
|
|
"FAIL"
|
|
)
|
|
endforeach()
|