From 2f18f2e68927946d13933419d4f66540d16c867d Mon Sep 17 00:00:00 2001 From: Joseph Hunkeler Date: Tue, 30 Jun 2026 12:19:40 -0400 Subject: Split RT tests from Unit tests * Enable verbose output for RT side * Truncate huge skyscraper-length html output --- .github/workflows/cmake-multi-platform.yml | 31 +++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) (limited to '.github/workflows/cmake-multi-platform.yml') diff --git a/.github/workflows/cmake-multi-platform.yml b/.github/workflows/cmake-multi-platform.yml index 2191559..9ab157c 100644 --- a/.github/workflows/cmake-multi-platform.yml +++ b/.github/workflows/cmake-multi-platform.yml @@ -68,8 +68,8 @@ jobs: -DCMAKE_BUILD_TYPE=${{ matrix.build_type }} -DASAN=ON -DTESTS=ON - -DTESTS_VERBOSE=ON -DTESTS_RT=ON + -DTESTS_VERBOSE=ON -DDEBUG_MESSAGES=ON -S ${{ github.workspace }} @@ -78,7 +78,25 @@ jobs: PKG_CONFIG_PATH: /opt/homebrew/lib/pkgconfig:/usr/lib/x86_64-linux-gnu/pkgconfig run: cmake --build ${{ steps.strings.outputs.build-output-dir }} --config ${{ matrix.build_type }} - - name: Test + - name: Test (Unit) + working-directory: ${{ steps.strings.outputs.build-output-dir }} + run: | + export ASAN_OPTIONS="verify_asan_link_order=0 strict_string_checks=1 detect_stack_use_after_return=1" + if [[ "$RUNNER_OS" == "macOS" ]]; then + ASAN_OPTIONS="$ASAN_OPTIONS detect_leaks=0" + else + ASAN_OPTIONS="$ASAN_OPTIONS detect_leaks=1" + fi + ctest --tests-regex '^test_.*' \ + --build-config ${{ matrix.build_type }} \ + --output-on-failure \ + --output-junit results_unit.xml \ + --test-output-size-passed 65536 \ + --test-output-size-failed 65536 + env: + STASIS_SYSCONFDIR: ../../.. + + - name: Test (RT) working-directory: ${{ steps.strings.outputs.build-output-dir }} run: | export ASAN_OPTIONS="verify_asan_link_order=0 strict_string_checks=1 detect_stack_use_after_return=1" @@ -87,6 +105,13 @@ jobs: else ASAN_OPTIONS="$ASAN_OPTIONS detect_leaks=1" fi - ctest --build-config ${{ matrix.build_type }} --output-on-failure --output-junit results.xml --test-output-size-passed 65536 --test-output-size-failed 65536 + ctest --tests-regex '^rt_.*' \ + -V \ + --build-config ${{ matrix.build_type }} \ + --output-junit results_rt.xml \ + --test-output-size-passed 65536 \ + --test-output-size-failed 65536 env: STASIS_SYSCONFDIR: ../../.. + STASIS_TEST_ALWAYS_SHOW_OUTPUT: 1 + STASIS_TEST_ALWAYS_SHOW_INDEXER_OUTPUT: 0 -- cgit