mirror of
https://github.com/RGBCube/serenity
synced 2025-07-28 14:07:45 +00:00
Tests: Convert remaining LibC tests to LibTest
Convert them to using outln instead of printf at the same time.
This commit is contained in:
parent
1d253880e6
commit
b3e3e4d45d
9 changed files with 135 additions and 178 deletions
|
@ -1,28 +1,24 @@
|
|||
set(TEST_SOURCES
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/snprintf-correctness.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/strlcpy-correctness.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCTime.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCMkTemp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCExec.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCDirEnt.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCInodeWatcher.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCSetjmp.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestLibCString.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestStackSmash.cpp
|
||||
${CMAKE_CURRENT_SOURCE_DIR}/TestIo.cpp
|
||||
TestIo.cpp
|
||||
TestLibCExec.cpp
|
||||
TestLibCDirEnt.cpp
|
||||
TestLibCInodeWatcher.cpp
|
||||
TestLibCMkTemp.cpp
|
||||
TestLibCSetjmp.cpp
|
||||
TestLibCString.cpp
|
||||
TestLibCTime.cpp
|
||||
TestMemmem.cpp
|
||||
TestQsort.cpp
|
||||
TestRealpath.cpp
|
||||
TestScanf.cpp
|
||||
TestSnprintf.cpp
|
||||
TestStackSmash.cpp
|
||||
TestStrlcpy.cpp
|
||||
TestStrtodAccuracy.cpp
|
||||
)
|
||||
|
||||
file(GLOB CMD_SOURCES CONFIGURE_DEPENDS "*.cpp")
|
||||
list(REMOVE_ITEM CMD_SOURCES ${TEST_SOURCES})
|
||||
set_source_files_properties(TestStrtodAccuracy.cpp PROPERTIES COMPILE_FLAGS "-fno-builtin-strtod")
|
||||
|
||||
# FIXME: These tests do not use LibTest
|
||||
foreach(CMD_SRC ${CMD_SOURCES})
|
||||
get_filename_component(CMD_NAME ${CMD_SRC} NAME_WE)
|
||||
add_executable(${CMD_NAME} ${CMD_SRC})
|
||||
target_link_libraries(${CMD_NAME} LibCore)
|
||||
install(TARGETS ${CMD_NAME} RUNTIME DESTINATION usr/Tests/LibC)
|
||||
endforeach()
|
||||
|
||||
foreach(source ${TEST_SOURCES})
|
||||
serenity_test(${source} LibC)
|
||||
foreach(source IN LISTS TEST_SOURCES)
|
||||
serenity_test("${source}" LibC)
|
||||
endforeach()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue