Create expect.sh

This commit is contained in:
Lup Yuen Lee 2024-01-24 22:54:40 +08:00 committed by GitHub
parent 675f332971
commit c14a7cd589
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

11
expect.sh Normal file
View file

@ -0,0 +1,11 @@
#!/usr/bin/expect
set send_slow {1 0.001}
spawn ./temu root-riscv64.cfg
expect "nsh> "
send -s "uname -a\r"
expect "nsh> "
send -s "ostest\r"
expect "ostest_main: Exiting with status -1"
expect "nsh> "