| if(EXISTS ${CMAKE_CURRENT_SOURCE_DIR}/${LIBC_TARGET_OS}) | |
| add_subdirectory(${LIBC_TARGET_OS}) | |
| endif() | |
| add_custom_target(stdlib-integration-tests) | |
| add_dependencies(libc-integration-tests stdlib-integration-tests) | |
| add_integration_test( | |
| getenv_test | |
| SUITE | |
| stdlib-integration-tests | |
| SRCS | |
| getenv_test.cpp | |
| DEPENDS | |
| libc.src.stdlib.getenv | |
| ENV | |
| FRANCE=Paris | |
| GERMANY=Berlin | |
| ) | |
| if(${LIBC_TARGET_OS} STREQUAL "linux") | |
| add_integration_test( | |
| secure_getenv_test | |
| SUITE | |
| stdlib-integration-tests | |
| SRCS | |
| secure_getenv_test.cpp | |
| DEPENDS | |
| libc.hdr.sys_auxv_macros | |
| libc.src.__support.CPP.scope | |
| libc.src.__support.OSUtil.linux.auxv | |
| libc.src.stdlib.secure_getenv | |
| ENV | |
| FRANCE=Paris | |
| GERMANY=Berlin | |
| ) | |
| add_integration_test( | |
| setenv_test | |
| SUITE | |
| stdlib-integration-tests | |
| SRCS | |
| setenv_test.cpp | |
| DEPENDS | |
| libc.src.errno.errno | |
| libc.src.stdlib.getenv | |
| libc.src.stdlib.setenv | |
| ) | |
| add_integration_test( | |
| putenv_test | |
| SUITE | |
| stdlib-integration-tests | |
| SRCS | |
| putenv_test.cpp | |
| DEPENDS | |
| libc.src.errno.errno | |
| libc.src.stdlib.getenv | |
| libc.src.stdlib.putenv | |
| libc.src.unistd.environ | |
| ) | |
| add_integration_test( | |
| unsetenv_test | |
| SUITE | |
| stdlib-integration-tests | |
| SRCS | |
| unsetenv_test.cpp | |
| DEPENDS | |
| libc.src.__support.alloc_checker | |
| libc.src.errno.errno | |
| libc.src.stdlib.getenv | |
| libc.src.stdlib.setenv | |
| libc.src.stdlib.unsetenv | |
| libc.src.string.memory_utils.inline_memcpy | |
| libc.src.unistd.environ | |
| ) | |
| add_integration_test( | |
| abort_test | |
| SUITE | |
| stdlib-integration-tests | |
| SRCS | |
| abort_test.cpp | |
| DEPENDS | |
| libc.include.signal | |
| libc.include.sys_wait | |
| libc.include.unistd | |
| libc.src.signal.signal | |
| libc.src.stdlib._Exit | |
| libc.src.stdlib.abort | |
| libc.src.sys.wait.waitpid | |
| libc.src.unistd.close | |
| libc.src.unistd.fork | |
| libc.src.unistd.pipe | |
| libc.src.unistd.read | |
| libc.src.unistd.write | |
| ) | |
| endif() |