diff --git a/tests/fork.exp b/tests/fork.exp index 207aadc..a105ea7 100644 --- a/tests/fork.exp +++ b/tests/fork.exp @@ -4,10 +4,9 @@ spawn make run arch=x86_64 sleep 2 expect ">>" sleep 2 -send "biscuit/fork\n" +send -- "biscuit/fork\r" sleep 2 expect "hello from 100" expect "parent done!" -sleep 2 -send "busybox halt -f\n" -expect ">>" +send -- "^Ax" +wait -nowait diff --git a/tests/test.sh b/tests/test.sh index 2fb7eb2..dd70e13 100755 --- a/tests/test.sh +++ b/tests/test.sh @@ -1,2 +1,2 @@ #!/bin/bash -expect *.exp \ No newline at end of file +expect *.exp diff --git a/tests/usertests.exp b/tests/usertests.exp new file mode 100644 index 0000000..8d318f1 --- /dev/null +++ b/tests/usertests.exp @@ -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 diff --git a/user b/user index 9ba5207..091b95f 160000 --- a/user +++ b/user @@ -1 +1 @@ -Subproject commit 9ba5207eecc6f3685dd976d1a5aa6f23b5066f0b +Subproject commit 091b95fae21bf42c8ee403056bda830f65255286