diff options
| author | Joseph Hunkeler <jhunkeler@users.noreply.github.com> | 2024-07-20 11:56:16 -0400 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2024-07-20 11:56:16 -0400 |
| commit | 9489d31f6314322d26ec43196284b94069d6cd3a (patch) | |
| tree | 3c314ff91b187faa2ba0f9ca2faf866d4fb97610 /tests/CMakeLists.txt | |
| parent | 07dc44efdc5c2fbc2b34c969e623d3b0bc0df15a (diff) | |
| download | stasis-9489d31f6314322d26ec43196284b94069d6cd3a.tar.gz | |
Regression tests, envctl, and bug fixes (#13)
* Found too many bugs
* Implements a regression test
* Moves and completely refactors the envctl code
* Allows the user to keep @STR@ values in output files (if you want full control over where external packages comes from post-build)
* Fixes wording in a few places
* envctl redaction is not implemented yet. The original redaction code hasn't been modified.
* Use generic.ini instead of bare_minimum.ini
Diffstat (limited to 'tests/CMakeLists.txt')
| -rw-r--r-- | tests/CMakeLists.txt | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/tests/CMakeLists.txt b/tests/CMakeLists.txt index f3a45e8..f06638e 100644 --- a/tests/CMakeLists.txt +++ b/tests/CMakeLists.txt @@ -2,15 +2,20 @@ include_directories( ${CMAKE_SOURCE_DIR}/include ${CMAKE_BINARY_DIR}/include ) +find_program(BASH_PROGRAM bash) set(EXECUTABLE_OUTPUT_PATH ${PROJECT_BINARY_DIR}/tests) set(CTEST_BINARY_DIRECTORY ${PROJECT_BINARY_DIR}/tests) set(nix_gnu_cflags -Wno-error -Wno-unused-parameter -Wno-discarded-qualifiers) set(nix_clang_cflags -Wno-unused-parameter -Wno-incompatible-pointer-types-discards-qualifiers) set(win_msvc_cflags /Wall) - +configure_file(${CMAKE_CURRENT_SOURCE_DIR}/data/generic.ini ${CMAKE_CURRENT_BINARY_DIR} COPYONLY) file(GLOB files "test_*.c") +if (BASH_PROGRAM) + add_test (rt_generic ${BASH_PROGRAM} ${CMAKE_CURRENT_SOURCE_DIR}/rt_generic.sh) +endif() + foreach(file ${files}) string(REGEX REPLACE "(^.*/|\\.[^.]*$)" "" file_without_ext ${file}) add_executable(${file_without_ext} ${file}) @@ -29,4 +34,6 @@ foreach(file ${files}) set_tests_properties(${file_without_ext} PROPERTIES SKIP_RETURN_CODE 127) + set_property(TEST ${file_without_ext} + PROPERTY ENVIRONMENT "STASIS_SYSCONFDIR=${CMAKE_SOURCE_DIR}") endforeach()
\ No newline at end of file |
