Skip to content

Commit

Permalink
initial run_all tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alchem0x2A committed Jan 18, 2024
1 parent a6f6658 commit 057469f
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/build-test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,5 +87,6 @@ jobs:
- name: Run socket unit tests
run: |
echo
cd tests/Socket_tests
bash run_all.sh
12 changes: 12 additions & 0 deletions tests/Socket_tests/run_all.sh
Original file line number Diff line number Diff line change
@@ -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

0 comments on commit 057469f

Please sign in to comment.