summaryrefslogtreecommitdiff
path: root/tests/shell_interaction.expect
diff options
context:
space:
mode:
Diffstat (limited to 'tests/shell_interaction.expect')
-rwxr-xr-xtests/shell_interaction.expect15
1 files changed, 15 insertions, 0 deletions
diff --git a/tests/shell_interaction.expect b/tests/shell_interaction.expect
new file mode 100755
index 0000000..325e476
--- /dev/null
+++ b/tests/shell_interaction.expect
@@ -0,0 +1,15 @@
+#!/usr/bin/expect
+set args [lrange $argv 0 end]
+set timeout 300
+spawn debvm-run {*}$args
+expect "root@testvm:~#"
+set timeout 10
+send "echo 6coF0JBW\$((2+3))\r"
+expect {
+ "6coF0JBW5" { }
+ timeout { exit 1 }
+}
+expect "root@testvm:~#"
+send "poweroff\r"
+set timeout 120
+expect eof