diff options
| author | Theo Buehler <tb@openbsd.org> | 2026-08-14 06:37:37 +0200 |
|---|---|---|
| committer | Theo Buehler <tb@openbsd.org> | 2026-08-14 06:37:37 +0200 |
| commit | 0e1a7af560f468066d08f95760306ccfed3c4bd9 (patch) | |
| tree | fd492fce7d5465fa0559b167a14bba4bf99c438e | |
| parent | efe89d62d32e71a720dfd7ebae57d5cd2f204bf2 (diff) | |
| parent | 5630baeb4d32dbfc4461cf5a3475b701cdfb1d18 (diff) | |
| download | portable-0e1a7af560f468066d08f95760306ccfed3c4bd9.tar.gz portable-0e1a7af560f468066d08f95760306ccfed3c4bd9.tar.bz2 portable-0e1a7af560f468066d08f95760306ccfed3c4bd9.zip | |
Land #1363 - run ctest in parallel
| -rw-r--r-- | .github/workflows/emscripten.yml | 4 | ||||
| -rw-r--r-- | .github/workflows/fedora-rawhide.yml | 2 | ||||
| -rw-r--r-- | .github/workflows/windows.yml | 2 | ||||
| -rwxr-xr-x | scripts/test | 1 |
4 files changed, 5 insertions, 4 deletions
diff --git a/.github/workflows/emscripten.yml b/.github/workflows/emscripten.yml index 6087aba..914446b 100644 --- a/.github/workflows/emscripten.yml +++ b/.github/workflows/emscripten.yml | |||
| @@ -43,7 +43,7 @@ jobs: | |||
| 43 | run: cmake --build build --config Release --parallel 4 | 43 | run: cmake --build build --config Release --parallel 4 |
| 44 | 44 | ||
| 45 | - name: "Test" | 45 | - name: "Test" |
| 46 | run: ctest --test-dir build -C Release --output-on-failure | 46 | run: ctest --test-dir build -C Release --parallel --output-on-failure |
| 47 | 47 | ||
| 48 | # Test ASAN with and without ASM enabled. | 48 | # Test ASAN with and without ASM enabled. |
| 49 | test-asan: | 49 | test-asan: |
| @@ -80,4 +80,4 @@ jobs: | |||
| 80 | run: cmake --build build --config Release --parallel 4 | 80 | run: cmake --build build --config Release --parallel 4 |
| 81 | 81 | ||
| 82 | - name: "Test" | 82 | - name: "Test" |
| 83 | run: ctest --test-dir build -C Release --output-on-failure | 83 | run: ctest --test-dir build -C Release --parallel --output-on-failure |
diff --git a/.github/workflows/fedora-rawhide.yml b/.github/workflows/fedora-rawhide.yml index 078bc02..c3dd8a8 100644 --- a/.github/workflows/fedora-rawhide.yml +++ b/.github/workflows/fedora-rawhide.yml | |||
| @@ -37,4 +37,4 @@ jobs: | |||
| 37 | ninja | 37 | ninja |
| 38 | - name: Test | 38 | - name: Test |
| 39 | run: | | 39 | run: | |
| 40 | ninja test | 40 | CTEST_PARALLEL_LEVEL="" ninja test |
diff --git a/.github/workflows/windows.yml b/.github/workflows/windows.yml index 729ff46..908e081 100644 --- a/.github/workflows/windows.yml +++ b/.github/workflows/windows.yml | |||
| @@ -88,7 +88,7 @@ jobs: | |||
| 88 | 88 | ||
| 89 | - name: "Test" | 89 | - name: "Test" |
| 90 | shell: cmd | 90 | shell: cmd |
| 91 | run: ctest --test-dir build -C Release --output-on-failure | 91 | run: ctest --test-dir build -C Release --parallel --output-on-failure |
| 92 | 92 | ||
| 93 | - name: "Upload build artifacts" | 93 | - name: "Upload build artifacts" |
| 94 | if: always() | 94 | if: always() |
diff --git a/scripts/test b/scripts/test index 7e64bf1..2cff531 100755 --- a/scripts/test +++ b/scripts/test | |||
| @@ -11,6 +11,7 @@ if [ "$ARCH" = "mingw32" -o "$ARCH" = "mingw64" -o "$ARCH" = "arm32" ]; then | |||
| 11 | fi | 11 | fi |
| 12 | 12 | ||
| 13 | ENABLE_ASM="${ENABLE_ASM:=ON}" | 13 | ENABLE_ASM="${ENABLE_ASM:=ON}" |
| 14 | export CTEST_PARALLEL_LEVEL="${CTEST_PARALLEL_LEVEL-}" | ||
| 14 | 15 | ||
| 15 | # setup_cross_compiler sets up environment variables for cross-compilation with the given prefix. | 16 | # setup_cross_compiler sets up environment variables for cross-compilation with the given prefix. |
| 16 | setup_cross_compiler() { | 17 | setup_cross_compiler() { |
