-
Notifications
You must be signed in to change notification settings - Fork 481
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9c04e10
commit 1666375
Showing
2 changed files
with
20 additions
and
25 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |