#!/usr/bin/expect -f set timeout 10 spawn $env(SHELL) match_max 100000 send -- "./symrun.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#" }