ladybird/AK/Tests/CMakeLists.txt
Andrew Kaster b4eb734204 AK: Add tests for type traits and IndexSequence
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 :).
2020-12-30 11:32:20 +01:00

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()