1add_libc_testsuite(libc_stdio_unittests) 2 3add_libc_unittest( 4 fileop_test 5 SUITE 6 libc_stdio_unittests 7 SRCS 8 fileop_test.cpp 9 DEPENDS 10 libc.src.stdio.fclose 11 libc.src.stdio.fflush 12 libc.src.stdio.fopen 13 libc.src.stdio.fread 14 libc.src.stdio.fseek 15 libc.src.stdio.fwrite 16) 17 18add_libc_unittest( 19 unlocked_fileop_test 20 SUITE 21 libc_stdio_unittests 22 SRCS 23 unlocked_fileop_test.cpp 24 DEPENDS 25 libc.src.stdio.fclose 26 libc.src.stdio.flockfile 27 libc.src.stdio.fopen 28 libc.src.stdio.fread_unlocked 29 libc.src.stdio.funlockfile 30 libc.src.stdio.fwrite_unlocked 31) 32 33add_libc_unittest( 34 fopencookie_test 35 SUITE 36 libc_stdio_unittests 37 SRCS 38 fopencookie_test.cpp 39 DEPENDS 40 libc.include.errno 41 libc.include.stdio 42 libc.include.stdlib 43 libc.src.stdio.fclose 44 libc.src.stdio.fflush 45 libc.src.stdio.fopencookie 46 libc.src.stdio.fread 47 libc.src.stdio.fseek 48 libc.src.stdio.fwrite 49) 50 51if(TARGET libc.test.src.stdio.fopencookie_test) 52 target_link_libraries( 53 libc.test.src.stdio.fopencookie_test PRIVATE LibcMemoryHelpers 54 ) 55endif() 56 57add_subdirectory(printf_core) 58 59add_subdirectory(testdata) 60