1
0
mirror of https://github.com/rcore-os/rCore.git synced 2025-01-19 01:07:05 +04:00

Improve test stability

This commit is contained in:
Jiajie Chen 2019-03-11 21:15:27 +08:00
parent b7aee438db
commit 91ae86ad3f
5 changed files with 20 additions and 17 deletions

View File

@ -1,4 +1,10 @@
set timeout -1
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
cd ../kernel
spawn make run arch=x86_64
sleep 2
@ -8,5 +14,4 @@ send -- "biscuit/fork\r"
sleep 5
expect "hello from 100"
expect "parent done!"
send -- "^Ax"
wait
send -- "busybox halt -f\r"

View File

@ -1,4 +1,10 @@
set timeout -1
set send_slow {1 .1}
proc send {ignore arg} {
sleep .1
exp_send -s -- $arg
}
cd ../kernel
spawn make run arch=x86_64
sleep 2
@ -7,5 +13,4 @@ sleep 2
send -- "biscuit/killtest\r"
sleep 2
expect "success"
send -- "^Ax"
wait
send -- "busybox halt -f\r"

View File

@ -1,2 +1,6 @@
#!/bin/bash
expect *.exp
for f in *.exp
do
echo run $f
timeout 30s expect $f
done

View File

@ -1,11 +0,0 @@
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 095cfa8e66792544e491945eec18daad3e6d58b3
Subproject commit 5b6efc54fbecf5f08517be0e03c434484f7efe90