firejail/test/arguments/bashrun.exp
2016-07-25 12:29:00 -04:00

86 lines
1.4 KiB
Text
Executable file

#!/usr/bin/expect -f
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "./bashrun.sh\r"
expect {
timeout {puts "TESTING ERROR 1.1.1\n";exit}
"Arguments:"
}
expect {
timeout {puts "TESTING ERROR 1.1.2\n";exit}
"#arg1#"
}
expect {
timeout {puts "TESTING ERROR 1.1.3\n";exit}
"#arg2#"
}
expect {
timeout {puts "TESTING ERROR 1.2.1\n";exit}
"Arguments:"
}
expect {
timeout {puts "TESTING ERROR 1.2.2\n";exit}
"#arg1 tail#"
}
expect {
timeout {puts "TESTING ERROR 1.2.3\n";exit}
"#arg2 tail#"
}
expect {
timeout {puts "TESTING ERROR 1.3.1\n";exit}
"Arguments:"
}
expect {
timeout {puts "TESTING ERROR 1.3.2\n";exit}
"#arg1 tail#"
}
expect {
timeout {puts "TESTING ERROR 1.3.3\n";exit}
"#arg2 tail#"
}
expect {
timeout {puts "TESTING ERROR 1.4.1\n";exit}
"Arguments:"
}
expect {
timeout {puts "TESTING ERROR 1.4.2\n";exit}
"#arg1 tail#"
}
expect {
timeout {puts "TESTING ERROR 1.4.3\n";exit}
"#arg2 tail#"
}
expect {
timeout {puts "TESTING ERROR 1.5.1\n";exit}
"Arguments:"
}
expect {
timeout {puts "TESTING ERROR 1.5.2\n";exit}
"#arg1&tail#"
}
expect {
timeout {puts "TESTING ERROR 1.5.3\n";exit}
"#arg2&tail#"
}
expect {
timeout {puts "TESTING ERROR 1.6.1\n";exit}
"Arguments:"
}
expect {
timeout {puts "TESTING ERROR 1.6.2\n";exit}
"#arg1&tail#"
}
expect {
timeout {puts "TESTING ERROR 1.6.3\n";exit}
"#arg2&tail#"
}
puts "\nall done\n"