[Fuego] [PATCH 09/33] Add test case of command gdb.

Wang Mingyu wangmy at cn.fujitsu.com
Wed May 8 08:00:17 UTC 2019


This test case is used to check if the 'gdb' prompt can be outputed after the version information is displayed.

Signed-off-by: Wang Mingyu <wangmy at cn.fujitsu.com>
---
 tests/Functional.misc/tests/gdb.sh | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100644 tests/Functional.misc/tests/gdb.sh

diff --git a/tests/Functional.misc/tests/gdb.sh b/tests/Functional.misc/tests/gdb.sh
new file mode 100644
index 0000000..2db77f4
--- /dev/null
+++ b/tests/Functional.misc/tests/gdb.sh
@@ -0,0 +1,15 @@
+#!/bin/sh
+
+#  In target, run comannd gdb.
+
+test="gdb"
+
+expect <<-EOF
+spawn gdb
+expect {
+ ".*(gdb) " {
+           send_user " -> $test: TEST-PASS\n"
+          }
+ default { send_user " -> $test: TEST-FAIL\n" } }
+send "quit\r"
+EOF
-- 
1.8.3.1





More information about the Fuego mailing list