This commit is contained in:
Chranos
2026-02-04 17:39:32 +08:00
parent 8511fe8530
commit 79dfc69789
299 changed files with 55927 additions and 0 deletions

View File

@@ -0,0 +1,15 @@
#!/bin/bash
LOG_PATH=${LOG_PATH:-.}
files=($(ls benchmark_*.py))
for file in "${files[@]}"; do
echo "test ${file}..."
op_name=$(basename "$file" .py)
python "$file" > ${LOG_PATH}/${op_name}.log 2>&1
ret_tmp=$?
cat ${LOG_PATH}/${op_name}.log
if [ $ret_tmp != 0 ]; then
echo "${sc} test failed..."
exit $ret_tmp
fi
done