ladybird/AK/Tests/CMakeLists.txt
Lenny Maiorani 6d6b3f9523 Badge: Access to underlying type
Problem:
- Access to the underlying type is not provided. This limits
  metaprogramming and usage in function templates.

Solution:
- Provide public access to the underlying type.
- Add test to ensure the underlying type is accessible.
2021-01-15 09:44:21 +01:00

68 lines
1.4 KiB
CMake

set(AK_TEST_SOURCES
TestAllOf.cpp
TestAnyOf.cpp
TestArray.cpp
TestAtomic.cpp
TestBadge.cpp
TestBase64.cpp
TestBinarySearch.cpp
TestBitmap.cpp
TestByteBuffer.cpp
TestChecked.cpp
TestCircularDeque.cpp
TestCircularDuplexStream.cpp
TestCircularQueue.cpp
TestDistinctNumeric.cpp
TestDoublyLinkedList.cpp
TestEndian.cpp
TestFind.cpp
TestFormat.cpp
TestHashFunctions.cpp
TestHashMap.cpp
TestIPv4Address.cpp
TestIndexSequence.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
TestSinglyLinkedList.cpp
TestSourceGenerator.cpp
TestSpan.cpp
TestString.cpp
TestStringUtils.cpp
TestStringView.cpp
TestTrie.cpp
TestTypeTraits.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()