xref: /llvm-project/libc/test/integration/src/stdio/gpu/CMakeLists.txt (revision 40effc7af5679b7d54d3176a5eef2cdee1962ecd)
1add_custom_target(stdio-gpu-integration-tests)
2add_dependencies(libc-integration-tests stdio-gpu-integration-tests)
3
4# Create an output directory for any temporary test files.
5file(MAKE_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}/testdata)
6
7# These tests are not for correctness testing, but are instead a convenient way
8# to generate hermetic binaries for comparitive binary size testing.
9add_integration_test(
10  printf_test
11  SUITE
12    stdio-gpu-integration-tests
13  SRCS
14    printf_test.cpp
15  DEPENDS
16    libc.src.stdio.fprintf
17    libc.src.stdio.fopen
18  LOADER_ARGS
19    --threads 32
20    --blocks 4
21)
22