style(doc): 完善实验文档验证要求
This commit is contained in:
@@ -68,7 +68,7 @@ cmake --build build -j "$(nproc)"
|
||||
|
||||
## 7. Lab2 验证方式
|
||||
|
||||
项目编译后按提供测试输入回归:
|
||||
可先用单个样例检查 IR 输出是否基本正确:
|
||||
|
||||
```bash
|
||||
./build/bin/compiler --emit-ir test/test_case/simple_add.sy
|
||||
@@ -86,3 +86,5 @@ cmake --build build -j "$(nproc)"
|
||||
```bash
|
||||
./scripts/verify_ir.sh test/test_case/simple_add.sy test/test_result/ir --run
|
||||
```
|
||||
|
||||
但最终不能只检查 `simple_add`。完成 Lab2 后,应对 `test/test_case` 下全部测试用例逐个回归,确认 IR 生成与 `--run` 链路都能通过;如有需要,也可以自行编写批量测试脚本统一执行。
|
||||
|
||||
Reference in New Issue
Block a user