Improve test stability

master
Jiajie Chen 6 years ago
parent b7aee438db
commit 91ae86ad3f

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

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

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

@ -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

@ -1 +1 @@
Subproject commit 095cfa8e66792544e491945eec18daad3e6d58b3 Subproject commit 5b6efc54fbecf5f08517be0e03c434484f7efe90
Loading…
Cancel
Save