From 23bd0c41457262e7ef5223a187e3c15e44be039c Mon Sep 17 00:00:00 2001 From: netblue30 Date: Mon, 25 Jul 2016 12:29:00 -0400 Subject: argument subsystem testing framework --- test/arguments/symrun.exp | 71 +++++++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 71 insertions(+) create mode 100755 test/arguments/symrun.exp (limited to 'test/arguments/symrun.exp') diff --git a/test/arguments/symrun.exp b/test/arguments/symrun.exp new file mode 100755 index 000000000..1466b791e --- /dev/null +++ b/test/arguments/symrun.exp @@ -0,0 +1,71 @@ +#!/usr/bin/expect -f + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "./bashrun.sh\r" +expect { + timeout {puts "TESTING ERROR 2.1.1\n";exit} + "Arguments:" +} +expect { + timeout {puts "TESTING ERROR 2.1.2\n";exit} + "#arg1#" +} +expect { + timeout {puts "TESTING ERROR 2.1.3\n";exit} + "#arg2#" +} + +expect { + timeout {puts "TESTING ERROR 2.3.1\n";exit} + "Arguments:" +} +expect { + timeout {puts "TESTING ERROR 2.3.2\n";exit} + "#arg1 tail#" +} +expect { + timeout {puts "TESTING ERROR 2.3.3\n";exit} + "#arg2 tail#" +} + +expect { + timeout {puts "TESTING ERROR 2.4.1\n";exit} + "Arguments:" +} +expect { + timeout {puts "TESTING ERROR 2.4.2\n";exit} + "#arg1 tail#" +} +expect { + timeout {puts "TESTING ERROR 2.4.3\n";exit} + "#arg2 tail#" +} + +expect { + timeout {puts "TESTING ERROR 2.5.1\n";exit} + "Arguments:" +} +expect { + timeout {puts "TESTING ERROR 2.5.2\n";exit} + "#arg1&tail#" +} +expect { + timeout {puts "TESTING ERROR 2.5.3\n";exit} + "#arg2&tail#" +} + +expect { + timeout {puts "TESTING ERROR 2.6.1\n";exit} + "Arguments:" +} +expect { + timeout {puts "TESTING ERROR 2.6.2\n";exit} + "#arg1&tail#" +} +expect { + timeout {puts "TESTING ERROR 2.6.3\n";exit} + "#arg2&tail#" +} -- cgit v1.2.3-70-g09d2