Skip to content

Commit

Permalink
Removed parallel execution for cli_tests on Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
maxirmx committed Nov 18, 2023
1 parent 7586660 commit 5b08cd7
Showing 1 changed file with 7 additions and 3 deletions.
10 changes: 7 additions & 3 deletions .github/workflows/windows-native.yml
Original file line number Diff line number Diff line change
Expand Up @@ -176,17 +176,21 @@ jobs:
- name: Test
shell: bash
# Sometimes running cli_tests in parallel causes instability [???]
# ctest --test-dir build -R cli_tests -C Debug --output-on-failure
# ctest --parallel ${{ env.CORES }} --test-dir build -R rnp_tests -C Debug --output-on-failure
# ctest --test-dir build -R cli_tests -C Release --output-on-failure
# ctest --parallel ${{ env.CORES }} --test-dir build -R rnp_tests -C Release --output-on-failure
# ctest --parallel ${{ env.CORES }} --test-dir build -C Release --output-on-failure
run: |
export PATH=${{ env.VCPKG_DIR_U }}/installed/${{ matrix.arch.triplet }}/bin:$PATH
mkdir -p "build/Testing/Temporary"
cp "cmake/CTestCostData.txt" "build/Testing/Temporary"
ctest --parallel ${{ env.CORES }} --test-dir build -C Release --output-on-failure
ctest --test-dir build -R cli_tests -C Release --output-on-failure
ctest --parallel ${{ env.CORES }} --test-dir build -R rnp_tests -C Release --output-on-failure
# Local build hints:
# cmd /k "C:\Program Files (x86)\Microsoft Visual Studio\2019\BuildTools\VC\Auxiliary\Build\vcvars64.bat"
# cmake -B build -G "Visual Studio 16 2019" -A x64 -T v142 -DENABLE_SANITIZERS=OFF ^
# -DBUILD_SHARED_LIBS=OFF -DCRYPTO_BACKEND=botan -DCMAKE_TOOLCHAIN_FILE=C:/vcpkg/scripts/buildsystems/vcpkg.cmake .
# set PATH=C:\vcpkg\installed\x64-windows\bin;%PATH%
# cmake --build build --parallel 4 --config Release
# ctest --test-dir build -R cli_tests -C Release --output-on-failure
# ctest --parallel ${{ env.CORES }} --test-dir build -R rnp_tests -C Release --output-on-failure

0 comments on commit 5b08cd7

Please sign in to comment.