41 lines · plain
1if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS})2 add_subdirectory(${LIBC_TARGET_OS})3endif()4add_custom_target(stdio-integration-tests)5add_dependencies(libc-integration-tests stdio-integration-tests)6 7# These tests are not for correctness testing, but are instead a convenient way8# to generate hermetic binaries for comparitive binary size testing.9# FIXME: This test fails on AMDGPU so we disable it temporarily.10if(NOT LIBC_TARGET_ARCHITECTURE_IS_AMDGPU)11 add_integration_test(12 sprintf_size_test13 SUITE14 stdio-integration-tests15 SRCS16 sprintf_size_test.cpp17 DEPENDS18 libc.src.stdio.sprintf19 ARGS20 "%s %c %d"21 "First arg"22 "a"23 "0"24 )25endif()26 27add_integration_test(28 sprintf_size_test_no_sprintf29 SUITE30 stdio-integration-tests31 SRCS32 sprintf_size_test.cpp33 ARGS34 "%s %c %d"35 "First arg"36 "a"37 "0"38 COMPILE_OPTIONS39 -DINTEGRATION_DISABLE_PRINTF40)41