Skip to content

Commit bb5c761

Browse files
authored
Make run_tests.py executable (#521)
1 parent 94f2a37 commit bb5c761

File tree

7 files changed

+26
-24
lines changed

7 files changed

+26
-24
lines changed

.github/workflows/mac.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,11 +68,11 @@ jobs:
6868
mkdir -p install
6969
tar -xzvf macos-clang-install.tar.gz -C install
7070
- name: Run func tests (MPI)
71-
run: python3 scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
71+
run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
7272
env:
7373
PPC_NUM_THREADS: 1
7474
- name: Run tests (threads)
75-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
75+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
7676
env:
7777
PPC_NUM_PROC: 1
7878
clang-test-extended:
@@ -99,6 +99,6 @@ jobs:
9999
mkdir -p install
100100
tar -xzvf macos-clang-install.tar.gz -C install
101101
- name: Run tests (threads extended)
102-
run: python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
102+
run: scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
103103
env:
104104
PPC_NUM_PROC: 1

.github/workflows/ubuntu.yml

Lines changed: 11 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -76,11 +76,11 @@ jobs:
7676
mkdir -p install
7777
tar -xzvf ubuntu-gcc-install-${{ matrix.os }}.tar.gz -C install
7878
- name: Run func tests (MPI)
79-
run: python3 scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
79+
run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
8080
env:
8181
PPC_NUM_THREADS: 1
8282
- name: Run func tests (threads)
83-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
83+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
8484
env:
8585
PPC_NUM_PROC: 1
8686
gcc-test-extended:
@@ -106,7 +106,7 @@ jobs:
106106
mkdir -p install
107107
tar -xzvf ubuntu-gcc-install-${{ matrix.os }}.tar.gz -C install
108108
- name: Run func tests (threads extended)
109-
run: python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
109+
run: scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
110110
env:
111111
PPC_NUM_PROC: 1
112112
clang-build:
@@ -178,11 +178,11 @@ jobs:
178178
mkdir -p install
179179
tar -xzvf ubuntu-clang-install-${{ matrix.os }}.tar.gz -C install
180180
- name: Run func tests (MPI)
181-
run: python3 scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
181+
run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
182182
env:
183183
PPC_NUM_THREADS: 1
184184
- name: Run tests (threads)
185-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
185+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
186186
env:
187187
PPC_NUM_PROC: 1
188188
clang-test-extended:
@@ -210,7 +210,7 @@ jobs:
210210
mkdir -p install
211211
tar -xzvf ubuntu-clang-install-${{ matrix.os }}.tar.gz -C install
212212
- name: Run tests (threads extended)
213-
run: python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
213+
run: scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
214214
env:
215215
PPC_NUM_PROC: 1
216216
clang-sanitizer-build:
@@ -288,14 +288,14 @@ jobs:
288288
mkdir -p install
289289
tar -xzvf ubuntu-clang-sanitizer-install-${{ matrix.os }}.tar.gz -C install
290290
- name: Run tests (MPI)
291-
run: python3 scripts/run_tests.py --running-type="processes" --counts 2 --additional-mpi-args="--oversubscribe"
291+
run: scripts/run_tests.py --running-type="processes" --counts 2 --additional-mpi-args="--oversubscribe"
292292
env:
293293
PPC_NUM_THREADS: 2
294294
PPC_ASAN_RUN: 1
295295
ASAN_OPTIONS: abort_on_error=1
296296
UBSAN_OPTIONS: halt_on_error=1
297297
- name: Run tests (threads)
298-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
298+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
299299
env:
300300
PPC_NUM_PROC: 1
301301
PPC_ASAN_RUN: 1
@@ -327,7 +327,7 @@ jobs:
327327
mkdir -p install
328328
tar -xzvf ubuntu-clang-sanitizer-install-${{ matrix.os }}.tar.gz -C install
329329
- name: Run tests (threads extended)
330-
run: python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
330+
run: scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
331331
env:
332332
PPC_NUM_PROC: 1
333333
PPC_ASAN_RUN: 1
@@ -361,12 +361,12 @@ jobs:
361361
run: |
362362
cmake --build build --parallel
363363
- name: Run tests (MPI)
364-
run: python3 scripts/run_tests.py --running-type="processes"
364+
run: scripts/run_tests.py --running-type="processes"
365365
env:
366366
PPC_NUM_PROC: 2
367367
PPC_NUM_THREADS: 2
368368
- name: Run tests (threads)
369-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
369+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
370370
env:
371371
PPC_NUM_PROC: 1
372372
- name: Generate gcovr Coverage Data

.github/workflows/windows.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@ jobs:
5151
run: Expand-Archive -Path .\windows-msvc-install.zip -DestinationPath . -Force
5252
shell: pwsh
5353
- name: Run func tests (MPI)
54-
run: python3 scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
54+
run: scripts/run_tests.py --running-type="processes" --counts 1 2 3 4
5555
env:
5656
PPC_NUM_THREADS: 1
5757
- name: Run tests (threads)
58-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
58+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
5959
env:
6060
PPC_NUM_PROC: 1
6161
msvc-test-extended:
@@ -76,7 +76,7 @@ jobs:
7676
run: Expand-Archive -Path .\windows-msvc-install.zip -DestinationPath . -Force
7777
shell: pwsh
7878
- name: Run tests (threads extended)
79-
run: python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
79+
run: scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
8080
env:
8181
PPC_NUM_PROC: 1
8282
clang-build:
@@ -135,7 +135,7 @@ jobs:
135135
run: Expand-Archive -Path .\windows-clang-install.zip -DestinationPath . -Force
136136
shell: pwsh
137137
- name: Run tests (threads)
138-
run: python3 scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
138+
run: scripts/run_tests.py --running-type="threads" --counts 1 2 3 4
139139
env:
140140
PPC_NUM_PROC: 1
141141
clang-test-extended:
@@ -156,6 +156,6 @@ jobs:
156156
run: Expand-Archive -Path .\windows-clang-install.zip -DestinationPath . -Force
157157
shell: pwsh
158158
- name: Run tests (threads extended)
159-
run: python3 scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
159+
run: scripts/run_tests.py --running-type="threads" --counts 5 7 11 13
160160
env:
161161
PPC_NUM_PROC: 1

docs/user_guide/ci.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -46,13 +46,13 @@ Example usage:
4646
export PPC_NUM_PROC=2
4747
4848
# Multithreaded functional tests
49-
python3 scripts/run_tests.py --running-type="threads"
49+
scripts/run_tests.py --running-type="threads"
5050
5151
# MPI functional tests
52-
python3 scripts/run_tests.py --running-type="processes"
52+
scripts/run_tests.py --running-type="processes"
5353
5454
# Performance benchmarks
55-
python3 scripts/run_tests.py --running-type="performance"
55+
scripts/run_tests.py --running-type="performance"
5656
5757
Additional MPI arguments can be supplied with ``--additional-mpi-args`` when
5858
running in ``processes`` mode.

scripts/generate_perf_results.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
@echo off
22
mkdir build\perf_stat_dir
3-
python3 scripts/run_tests.py --running-type="performance" > build\perf_stat_dir\perf_log.txt
3+
scripts/run_tests.py --running-type="performance" > build\perf_stat_dir\perf_log.txt
44
python scripts\create_perf_table.py --input build\perf_stat_dir\perf_log.txt --output build\perf_stat_dir

scripts/generate_perf_results.sh

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
set -euo pipefail
33

44
mkdir -p build/perf_stat_dir
5-
python3 scripts/run_tests.py --running-type="performance" | tee build/perf_stat_dir/perf_log.txt
5+
scripts/run_tests.py --running-type="performance" | tee build/perf_stat_dir/perf_log.txt
66
python3 scripts/create_perf_table.py --input build/perf_stat_dir/perf_log.txt --output build/perf_stat_dir

scripts/run_tests.py

100644100755
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
#!/usr/bin/env python3
2+
13
import os
24
import shlex
35
import subprocess

0 commit comments

Comments
 (0)