From 9b6ec477090613a920cf410c5e1694cf14bff17a Mon Sep 17 00:00:00 2001 From: Oliver Hamlet Date: Wed, 15 Jan 2025 18:17:31 +0000 Subject: [PATCH] Use ctest to run tests in CI --- .github/workflows/ci.yml | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 20afd034..ae1c9cc8 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -69,10 +69,7 @@ jobs: make all - name: Run tests - run: | - cd build - ./libloot_internals_tests - ./libloot_tests + run: ctest --test-dir build --output-on-failure - uses: actions/setup-python@v5 with: @@ -166,10 +163,7 @@ jobs: cmake --build . --config ${{ env.MSVC_CONFIG }} - name: Run tests - run: | - cd build/${{ env.MSVC_CONFIG }} - .\libloot_internals_tests.exe - .\libloot_tests.exe + run: ctest --test-dir build --build-config ${{ env.MSVC_CONFIG }} --output-on-failure - uses: actions/setup-python@v5 with: