Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 0 additions & 3 deletions .github/workflows/docker-image-upload.yml
Original file line number Diff line number Diff line change
Expand Up @@ -66,9 +66,6 @@ jobs:

- name: Set up Docker Buildx
uses: docker/setup-buildx-action@v2
# with:
# buildkitd-flags: --debug
# driver-opts: image=moby/buildkit:v0.9.1

- name: Login to Github Docker Registry
uses: docker/login-action@v2
Expand Down
12 changes: 9 additions & 3 deletions test/runTests.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# $4 : Path of the installation directory
# $5 : Test script to execute

usage="$(basename "$0") [-h] [-t tutorial_branch] [-b su2_branch] [-c testcases_branch] [-s test_script]
usage="$(basename "$0") [-h] [-t tutorial_branch] [-b su2_branch] [-c testcases_branch] [-s test_script] [-a args]
where:
-h show this help text
-t branch of su2code/su2code.github.io repo
Expand All @@ -15,7 +15,8 @@ where:
(if not provided, it is assumed that it is mounted at /src/Tutorials)
-c branch of su2code/TestCases repo.
(if not provided, it is assumed that it is mounted at /src/TestData)
-s name of the test script to execute (default: parallel_regression.py).
-s name of the test script to execute (default: parallel_regression.py)
-a arguments that should be passed to the test script (default: empty)

Compiled binaries must be mounted at /install/ !

Expand All @@ -26,6 +27,7 @@ su2branch=""
testbranch=""
tutorialbranch=""
script="parallel_regression.py"
args=""

while [ "`echo $1 | cut -c1`" = "-" ]
do
Expand All @@ -46,6 +48,10 @@ do
script=$2
shift 2
;;
-a)
args=$2
shift 2
;;
*)
echo "$usage" >&2
exit 1
Expand Down Expand Up @@ -122,7 +128,7 @@ alias mpirun='mpirun --allow-run-as-root'

# Run Test Script
cd tests/TestCases
python $script
python $script $args

if [ $? -eq 0 ]; then
echo "Tests passed"
Expand Down