parent
19344b0c0b
commit
afc0a4ed41
@ -1,19 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# 测试所有 .sy 文件的解析
|
||||
# 确定脚本所在目录
|
||||
SCRIPT_DIR="$(dirname "$(realpath "$0")")"
|
||||
TEST_DIR="$SCRIPT_DIR/nudt-compiler-cpp/test/test_case"
|
||||
COMPILER="$SCRIPT_DIR/nudt-compiler-cpp/build/bin/compiler"
|
||||
|
||||
# 遍历所有 .sy 文件
|
||||
find "$TEST_DIR" -name "*.sy" | sort | while read -r file; do
|
||||
echo "Testing $file..."
|
||||
"$COMPILER" --emit-parse-tree "$file"
|
||||
if [ $? -eq 0 ]; then
|
||||
echo "✓ $file: SUCCESS"
|
||||
else
|
||||
echo "✗ $file: FAILED"
|
||||
fi
|
||||
echo ""
|
||||
done
|
||||
Loading…
Reference in new issue