firejail/test/arguments/bashrun.exp
2018-09-27 08:43:21 -04:00

110 lines
1.9 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.0\n";exit}
"Child process initialized"
}
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.0\n";exit}
"Child process initialized"
}
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.0\n";exit}
"Child process initialized"
}
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.0\n";exit}
"Child process initialized"
}
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.0\n";exit}
"Child process initialized"
}
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.0\n";exit}
"Child process initialized"
}
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"