test(test): 添加测试用例
This commit is contained in:
@@ -91,7 +91,7 @@ cmake --build build -j "$(nproc)"
|
||||
跑完整编译流程自检:从 SysY 源码生成 AArch64 汇编,完成汇编、链接,在 QEMU 下运行结果程序,并与 `test/test_case` 下同名 `.out` 自动比对:
|
||||
|
||||
```bash
|
||||
./scripts/verify_asm.sh test/test_case/simple_add.sy test/test_result/asm --run
|
||||
./scripts/verify_asm.sh test/test_case/function/simple_add.sy test/test_result/function/asm --run
|
||||
```
|
||||
|
||||
如果最终看到 `输出匹配: test/test_case/simple_add.out`,说明当前示例用例 `return a + b` 的完整链路已经跑通。
|
||||
|
||||
Reference in New Issue
Block a user