Test with ps and free

This commit is contained in:
Lup Yuen Lee 2024-12-10 19:09:03 +08:00
parent b8c12f9d04
commit a74050ba71
5 changed files with 40 additions and 0 deletions

View file

@ -24,6 +24,14 @@ send -s "uname -a\r"
expect "nsh> "
send -s "free\r"
## Wait for the prompt and enter `ps`
expect "nsh> "
send -s "ps\r"
## Wait for the prompt and enter `ls -l /dev`
expect "nsh> "
send -s "ls -l /dev\r"
## Wait for the prompt and enter `hello`
expect "nsh> "
send -s "hello\r"

View file

@ -23,6 +23,14 @@ send -s "uname -a\r"
expect "nsh> "
send -s "free\r"
## Wait for the prompt and enter `ps`
expect "nsh> "
send -s "ps\r"
## Wait for the prompt and enter `ls -l /dev`
expect "nsh> "
send -s "ls -l /dev\r"
## Wait for the prompt and enter `hello`
expect "nsh> "
send -s "hello\r"

View file

@ -24,6 +24,14 @@ send -s "uname -a\r"
expect "nsh> "
send -s "free\r"
## Wait for the prompt and enter `ps`
expect "nsh> "
send -s "ps\r"
## Wait for the prompt and enter `ls -l /dev`
expect "nsh> "
send -s "ls -l /dev\r"
## Wait for the prompt and enter `hello`
expect "nsh> "
send -s "hello\r"

View file

@ -24,6 +24,14 @@ send -s "uname -a\r"
expect "nsh> "
send -s "free\r"
## Wait for the prompt and enter `ps`
expect "nsh> "
send -s "ps\r"
## Wait for the prompt and enter `ls -l /dev`
expect "nsh> "
send -s "ls -l /dev\r"
## Wait for the prompt and enter `hello`
expect "nsh> "
send -s "hello\r"

View file

@ -24,6 +24,14 @@ send -s "uname -a\r"
expect "nsh> "
send -s "free\r"
## Wait for the prompt and enter `ps`
expect "nsh> "
send -s "ps\r"
## Wait for the prompt and enter `ls -l /dev`
expect "nsh> "
send -s "ls -l /dev\r"
## Wait for the prompt and enter `hello`
expect "nsh> "
send -s "hello\r"