Skip to content

Commit

Permalink
make checks in one
Browse files Browse the repository at this point in the history
  • Loading branch information
coolkingcole committed Nov 30, 2023
1 parent 9c04e10 commit 1666375
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 25 deletions.
23 changes: 3 additions & 20 deletions .github/workflows/parallel_tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -87,25 +87,8 @@ jobs:
- test_type: "pypanda"
test_script: "all"
- test_type: "make_check"
test_script: "check-qtest-x86_64"
- test_type: "make_check"
test_script: "check-qtest-i386"
- test_type: "make_check"
test_script: "check-qtest-arm"
- test_type: "make_check"
test_script: "check-qtest-mips"
- test_type: "make_check"
test_script: "check-qtest-mipsel"
- test_type: "make_check"
test_script: "check-qtest-ppc"
- test_type: "make_check"
test_script: "check-block"
- test_type: "make_check"
test_script: "check-unit"
- test_type: "make_check"
test_script: "check-qapi-schema"


test_script: "all"

steps:
# Given a container with PANDA installed at /panda, run the taint tests
- name: Update
Expand Down Expand Up @@ -156,7 +139,7 @@ jobs:
docker run --name panda_test_${{ matrix.test_script }}_${GITHUB_RUN_ID}
-e PANDA_TEST=yes --cap-add SYS_NICE
--rm -t "ghcr.io/${{ github.repository_owner }}/panda_local:${{ github.sha }}" bash -c
"cd /panda/build && make ${{ matrix.test_script }}"
"cd /panda/build && make check"
cleanup:
# Cleanup after prior jobs finish - even if they fail
Expand Down
22 changes: 17 additions & 5 deletions panda/python/tests/run_all_tests.sh
Original file line number Diff line number Diff line change
@@ -1,10 +1,22 @@
#!/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"

# Define the list of test scripts to run
declare -a tests=("dyn_hooks" "copy_test" "file_fake" "file_hook" "generic_tests" "monitor_cmds" "multi_proc_cbs" "sleep_in_cb" "syscalls" "record_no_snap" "sig_suppress")

# Base directory for test scripts
TEST_DIR="/panda/panda/python/tests"

# Iterate over the test scripts array
for test_script in "${tests[@]}"; do
# Construct the full path to the script
full_script_path="$TEST_DIR/${test_script}.py"

echo "Running $full_script_path..."
python3 "$full_script_path"

# Check the exit status of the script
if [ $? -ne 0 ]; then
echo "Test $test_script failed"
echo "Test $full_script_path failed"
exit 1
fi
done

0 comments on commit 1666375

Please sign in to comment.