diff --git a/.github/workflows/docker-image-upload.yml b/.github/workflows/docker-image-upload.yml index f8fa7cf..3d62a2d 100644 --- a/.github/workflows/docker-image-upload.yml +++ b/.github/workflows/docker-image-upload.yml @@ -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 diff --git a/test/runTests.sh b/test/runTests.sh index 2bfc9a9..c3670cb 100755 --- a/test/runTests.sh +++ b/test/runTests.sh @@ -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 @@ -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/ ! @@ -26,6 +27,7 @@ su2branch="" testbranch="" tutorialbranch="" script="parallel_regression.py" +args="" while [ "`echo $1 | cut -c1`" = "-" ] do @@ -46,6 +48,10 @@ do script=$2 shift 2 ;; + -a) + args=$2 + shift 2 + ;; *) echo "$usage" >&2 exit 1 @@ -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"