-
Notifications
You must be signed in to change notification settings - Fork 108
Expand file tree
/
Copy pathrun.sh
More file actions
executable file
·32 lines (28 loc) · 915 Bytes
/
run.sh
File metadata and controls
executable file
·32 lines (28 loc) · 915 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
#!/usr/bin/env bash
set -ex
TESTS=(
"aggregate_tests/main.py"
"aggregate_tests2/main.py"
"aggregate_tests3/main.py"
"aggregate_tests4/main.py"
"aggregate_tests5/main.py"
"aggregate_tests6/main.py"
"arithmetic_tests/main.py"
"asof_tests/main.py"
"complex_type_tests/main.py"
"illarg_tests/main.py"
"illarg_tests2/main.py"
"negative_tests/main.py"
"negative_tests2/main.py"
"orderby_tests/main.py"
"variant_tests/main.py"
)
function run_one() {
uv run --locked $PYTHONPATH/tests/runtime_aggtest/$1
}
if [ "${RUNTIME_AGGTEST_JOBS:-1}" -le 1 ]; then
for t in "${TESTS[@]}"; do run_one "$t"; done
else
echo "Running tests in parallel: ${RUNTIME_AGGTEST_JOBS} jobs"
printf '%s\n' "${TESTS[@]}" | xargs -P "${RUNTIME_AGGTEST_JOBS}" -I{} bash -e -c 'echo "Running: {}"; uv run --locked "$PYTHONPATH/tests/runtime_aggtest/{}"' || echo "{} failed"
fi