Skip to content

Commit

Permalink
test bundle of the python tests
Browse files Browse the repository at this point in the history
  • Loading branch information
coolkingcole committed Nov 30, 2023
1 parent a98a0a5 commit a43dafc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 22 deletions.
24 changes: 2 additions & 22 deletions .github/workflows/parallel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -85,27 +85,7 @@ jobs:
- test_type: "sym_trace"
target: "x86_64"
- test_type: "pypanda"
test_script: "dyn_hooks"
- test_type: "pypanda"
test_script: "copy_test"
- test_type: "pypanda"
test_script: "file_fake"
- test_type: "pypanda"
test_script: "file_hook"
- test_type: "pypanda"
test_script: "generic_tests"
- test_type: "pypanda"
test_script: "monitor_cmds"
- test_type: "pypanda"
test_script: "multi_proc_cbs"
- test_type: "pypanda"
test_script: "sleep_in_cb"
- test_type: "pypanda"
test_script: "syscalls"
- test_type: "pypanda"
test_script: "record_no_snap"
- test_type: "pypanda"
test_script: "sig_suppress"
test_script: "all"
- test_type: "make_check"
test_script: "check-qtest-x86_64"
- test_type: "make_check"
Expand Down Expand Up @@ -168,7 +148,7 @@ jobs:
--mount type=bind,source=$(pwd)/ubuntu_1604_x86.qcow,target=/root/.panda/ubuntu_1604_x86.qcow
-e PANDA_TEST=yes --cap-add SYS_NICE
--rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c
"cd /panda/panda/python/tests/ && make && pip3 install -r requirements.txt && python3 ${{ matrix.test_script }}.py"
"cd /panda/panda/python/tests/ && make && pip3 install -r requirements.txt && ./run_all_tests.sh"
- name: Run make Tests
if: matrix.test_type == 'make_check'
Expand Down
10 changes: 10 additions & 0 deletions panda/python/tests/run_all_tests.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/bin/bash
# Iterate over all Python test scripts and execute them
for test_script in /panda/panda/python/tests/*.py; do
echo "Running $test_script..."
python3 "$test_script"
if [ $? -ne 0 ]; then
echo "Test $test_script failed"
exit 1
fi
done

0 comments on commit a43dafc

Please sign in to comment.