Skip to content

Commit 8c078a4

Browse files
committed
add hello-world tests
1 parent edc6605 commit 8c078a4

File tree

4 files changed

+27
-0
lines changed

4 files changed

+27
-0
lines changed

scripts/common-apps-functions-source.sh

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,28 @@ function test_qemu_riscv()
3939
run_app "${TEST_BIN_PATH}/qemu-system-riscv64" --version
4040

4141
run_app "${TEST_BIN_PATH}/qemu-system-riscv32" --help
42+
43+
pwd
44+
env | sort
45+
46+
run_app "${TEST_BIN_PATH}/qemu-system-riscv32" \
47+
--machine virt \
48+
--kernel "${tests_folder_path}/assets/hello-world-rv32imac.elf" \
49+
-smp 1 \
50+
-bios none \
51+
--nographic \
52+
-d unimp,guest_errors \
53+
--semihosting-config enable=on,target=native,arg=hello-world,arg=RV32
54+
55+
run_app "${TEST_BIN_PATH}/qemu-system-riscv64" \
56+
--machine virt \
57+
--kernel "${tests_folder_path}/assets/hello-world-rv64imafdc.elf" \
58+
-smp 1 \
59+
-bios none \
60+
--nographic \
61+
-d unimp,guest_errors \
62+
--semihosting-config enable=on,target=native,arg=hello-world,arg=RV64
63+
4264
}
4365

4466
# -----------------------------------------------------------------------------

tests/README.ms

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
## Files used for tests
2+
3+
The two files in the `assets` folder were generated with the
4+
[hello-world-qemu-template-xpack](https://github.com/micro-os-plus/hello-world-qemu-template-xpack/)
5+
project.
63.8 KB
Binary file not shown.
59.1 KB
Binary file not shown.

0 commit comments

Comments
 (0)