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:
parent
b7aee438db
commit
91ae86ad3f
@ -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"
|
||||
|
@ -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"
|
||||
|
@ -1,2 +1,6 @@
|
||||
#!/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
|
2
user
2
user
@ -1 +1 @@
|
||||
Subproject commit 095cfa8e66792544e491945eec18daad3e6d58b3
|
||||
Subproject commit 5b6efc54fbecf5f08517be0e03c434484f7efe90
|
Loading…
Reference in New Issue
Block a user