chore: checkpoint before Python removal

This commit is contained in:
2026-03-26 22:33:59 +00:00
parent 683cec9307
commit e568ddf82a
29972 changed files with 11269302 additions and 2 deletions

View File

@@ -0,0 +1,21 @@
#!/bin/bash
mkdir -p results
echo "*" > results/.gitignore
echo "macro,directives,field_braces,surrounding,fmt_args,field_key,field_value,result" > results/result.csv
for test_file in $(ls tests/); do
test_name=${test_file%".rs"}
echo "$test_file -> $test_name"
cargo check --test "${test_name}" 2>&1 \
| perl -n -e 'if (/DEBUG:(.+)$/) { print "$1\n" }' \
> results/failures-${test_name}.csv
cat tests/${test_file} \
| perl -n -e "if (/DEBUG:(.+)$/) { \$line = \$1; system(\"grep \'\$line\' results/failures-${test_name}.csv 2>&1 >/dev/null\"); my \$result = \$? == 0 ? 'fail' : 'pass'; print \"\$line,\$result\\n\" }" \
> results/result-${test_name}.csv
cat results/result-${test_name}.csv >> results/result.csv
done