mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-25 17:10:23 +00:00
b4eb734204
Use TypeLists to add test for IsIntegral, IsFloatingPoint, IsVoid, IsNullPointer, IsArithmetic, IsFundamental, and AddConst type traits. More can "easily" be added once the TypeList and macro magic is squinted at for long enough :).
62 lines
1.3 KiB
CMake
62 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
|
|
TestIndexSequence.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
|
|
TestTypeTraits.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()
|