refactor(test): 简化验证脚本命名并统一测试输出目录

This commit is contained in:
Lane0218
2026-03-11 21:06:27 +08:00
parent 62dde8d7ab
commit a3b5018a17
8 changed files with 16 additions and 18 deletions

View File

@@ -33,7 +33,7 @@ sudo apt install -y build-essential cmake git openjdk-11-jre
### 2.3 安装 LLVM 工具链
`scripts/verify_ir_with_llvm.sh``--run` 模式下会调用 LLVM 工具链(`llc``clang`)将生成的 IR 编译并运行。
`scripts/verify_ir.sh``--run` 模式下会调用 LLVM 工具链(`llc``clang`)将生成的 IR 编译并运行。
```bash
sudo apt update
@@ -91,7 +91,7 @@ cmake --build build -j "$(nproc)"
跑完整编译流程自检:从 SysY 源码生成 AArch64 汇编,完成汇编、链接,并在 QEMU 下运行结果程序:
```bash
./scripts/verify_asm_with_qemu.sh test/test_case/simple_add.sy out/asm --run
./scripts/verify_asm.sh test/test_case/simple_add.sy test/test_result/asm --run
```
如果最终看到 `退出码: 3`,说明当前最小子集示例 `return a + b` 的完整链路已经跑通。