1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-22 08:06:17 +04:00

Use C-a x to quit qemu in tests. Add usertests

This commit is contained in:
Jiajie Chen 2019-03-11 16:44:32 +08:00
parent 8dc7c7bd3c
commit 14a1046c57
4 changed files with 16 additions and 6 deletions

View File

@ -4,10 +4,9 @@ spawn make run arch=x86_64
sleep 2 sleep 2
expect ">>" expect ">>"
sleep 2 sleep 2
send "biscuit/fork\n" send -- "biscuit/fork\r"
sleep 2 sleep 2
expect "hello from 100" expect "hello from 100"
expect "parent done!" expect "parent done!"
sleep 2 send -- "^Ax"
send "busybox halt -f\n" wait -nowait
expect ">>"

View File

@ -1,2 +1,2 @@
#!/bin/bash #!/bin/bash
expect *.exp expect *.exp

11
tests/usertests.exp Normal file
View File

@ -0,0 +1,11 @@
set timeout -1
cd ../kernel
spawn make run arch=x86_64
sleep 2
expect ">>"
sleep 2
send -- "biscuit/usertests\r"
sleep 2
expect "exec test"
send -- "^Ax"
wait -nowait

2
user

@ -1 +1 @@
Subproject commit 9ba5207eecc6f3685dd976d1a5aa6f23b5066f0b Subproject commit 091b95fae21bf42c8ee403056bda830f65255286