unit test

This commit is contained in:
Yaossg 2024-12-07 14:13:34 +08:00
parent 98d5a1a3bc
commit 54db58d362
18 changed files with 64 additions and 9 deletions

View file

@ -13,7 +13,7 @@
### 真机运行
编译运行程序src 为本语言源代码。可以编译 demo 文件夹下的实例。
编译运行程序src 为本语言源代码。可以编译 demo 或 test 文件夹下的实例。
```sh
$ sh run-native.sh <src>
@ -33,7 +33,7 @@ $ sh boot-native.sh
sudo apt install gcc-12-riscv64-linux-gnu qemu-user qemu-system-misc
```
编译运行程序src 为本语言源代码。可以编译 demo 文件夹下的实例。
编译运行程序src 为本语言源代码。可以编译 demo 或 test 文件夹下的实例。
```sh
$ sh run.sh <src>
@ -180,7 +180,11 @@ $ sh boot.sh
### 单元测试
TODO
直接运行
```sh
$ sh test.sh
```
### 覆盖率