From a74050ba71b3263e37f9d6eec38f6a70d776987c Mon Sep 17 00:00:00 2001 From: Lup Yuen Lee Date: Tue, 10 Dec 2024 19:09:03 +0800 Subject: [PATCH] Test with `ps` and `free` --- qemu-riscv-knsh.exp | 8 ++++++++ qemu-riscv-knsh64.exp | 8 ++++++++ qemu-riscv-leds64-rust.exp | 8 ++++++++ qemu-riscv-nsh.exp | 8 ++++++++ qemu-riscv-nsh64.exp | 8 ++++++++ 5 files changed, 40 insertions(+) diff --git a/qemu-riscv-knsh.exp b/qemu-riscv-knsh.exp index 440c625..8ae47cb 100755 --- a/qemu-riscv-knsh.exp +++ b/qemu-riscv-knsh.exp @@ -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" diff --git a/qemu-riscv-knsh64.exp b/qemu-riscv-knsh64.exp index 6a644c7..d3421ee 100755 --- a/qemu-riscv-knsh64.exp +++ b/qemu-riscv-knsh64.exp @@ -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" diff --git a/qemu-riscv-leds64-rust.exp b/qemu-riscv-leds64-rust.exp index 7a19b8d..31ad22f 100755 --- a/qemu-riscv-leds64-rust.exp +++ b/qemu-riscv-leds64-rust.exp @@ -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" diff --git a/qemu-riscv-nsh.exp b/qemu-riscv-nsh.exp index 1bfe412..1ad86de 100755 --- a/qemu-riscv-nsh.exp +++ b/qemu-riscv-nsh.exp @@ -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" diff --git a/qemu-riscv-nsh64.exp b/qemu-riscv-nsh64.exp index 6106803..0811785 100755 --- a/qemu-riscv-nsh64.exp +++ b/qemu-riscv-nsh64.exp @@ -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"