diff --git a/.github/workflows/build-test.yml b/.github/workflows/build-test.yml index 6ca89179..afe5b995 100644 --- a/.github/workflows/build-test.yml +++ b/.github/workflows/build-test.yml @@ -87,5 +87,6 @@ jobs: - name: Run socket unit tests run: | - echo + cd tests/Socket_tests + bash run_all.sh diff --git a/tests/Socket_tests/run_all.sh b/tests/Socket_tests/run_all.sh new file mode 100644 index 00000000..fc45274d --- /dev/null +++ b/tests/Socket_tests/run_all.sh @@ -0,0 +1,12 @@ +#!/bin/bash +PWD=$(pwd) +for dir in $PWD/*/ +do + dir=${dir%*/} + + if [[ -f "$dir/test_all.py" ]]; then + echo "Running test_all.py in $dir" + # Change into the directory and run the script + (cd "$dir" && python test_all.py) + fi +done