1
0
mirror of https://github.com/rcore-os/rCore.git synced 2024-11-23 00:16:17 +04:00
rCore/tests/fork.exp

18 lines
276 B
Plaintext
Raw Normal View History

set timeout -1
2019-03-11 17:15:27 +04:00
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
expect ">>"
sleep 2
send -- "biscuit/fork\r"
2019-03-11 13:55:39 +04:00
sleep 5
expect "hello from 100"
expect "parent done!"
2019-03-11 17:15:27 +04:00
send -- "busybox halt -f\r"