Commit 8fdede58 authored by netblue30's avatar netblue30

testing

parent bfd93f60
......@@ -5,5 +5,5 @@ Run "make && sudo make install" to install it.
Run "make test" to run the tests.
Run "make uninstall" to remove the test program.
Run "sudo make uninstall" to remove the test program.
......@@ -66,7 +66,7 @@ expect {
"Seccomp:"
}
send -- "exit\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -156,4 +156,5 @@ expect {
timeout {puts "TESTING ERROR 24\n";exit}
"3"
}
after 100
puts "\nall done\n"
......@@ -180,6 +180,6 @@ expect {
timeout {puts "TESTING ERROR 4.9\n";exit}
"after socket"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -36,6 +36,6 @@ expect {
timeout {puts "TESTING ERROR 7\n";exit}
"Error: line 1 in seccomp-bad-empty2.profile is invalid"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -47,5 +47,5 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -47,5 +47,5 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -45,5 +45,5 @@ expect {
send -- "exit\r"
sleep 1
puts "\n"
after 100
puts "\nall done\n"
......@@ -51,4 +51,5 @@ expect {
"Parent is shutting down"
}
after 100
puts "\nall done\n"
......@@ -144,5 +144,6 @@ expect {
}
sleep 2
send -- "exit\r"
after 100
puts "\n"
......@@ -86,5 +86,5 @@ sleep 1
send -- "rm seccomp-test-file\r"
sleep 1
after 100
puts "all done\n"
......@@ -22,5 +22,5 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "all done\n"
......@@ -36,5 +36,5 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "all done\n"
......@@ -27,5 +27,5 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "\n"
......@@ -85,6 +85,6 @@ expect {
"done"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -85,6 +85,6 @@ expect {
"done"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -85,6 +85,6 @@ expect {
"done"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -9,7 +9,7 @@ expect {
timeout {puts "TESTING ERROR 0\n";exit}
"bind option is available only if running as root"
}
sleep 1
after 100
puts "\n"
......@@ -32,7 +32,7 @@ expect {
timeout {puts "TESTING ERROR 4\n";exit}
"done"
}
sleep 1
after 100
puts "\n"
......@@ -20,7 +20,7 @@ expect {
timeout {puts "TESTING ERROR 2\n";exit}
"done"
}
sleep 1
after 100
puts "\n"
......@@ -27,6 +27,7 @@ expect {
timeout {puts "TESTING ERROR 2\n";exit}
"Permission denied"
}
after 100
puts "\n"
......@@ -66,6 +66,6 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -35,4 +35,5 @@ expect {
"0"
}
after 100
puts "\nall done\n"
......@@ -40,6 +40,6 @@ expect {
"done"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -54,6 +54,6 @@ expect {
timeout {puts "TESTING ERROR 11\n";exit}
"done"
}
sleep 1
after 100
puts "all done\n"
......@@ -37,6 +37,6 @@ expect {
timeout {puts "TESTING ERROR 3\n";exit}
"0"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -49,5 +49,6 @@ expect {
"0"
}
after 100
puts "\nall done\n"
......@@ -167,7 +167,8 @@ expect {
timeout {puts "TESTING ERROR 10.2\n";exit}
"10.10.50.0/24 dev eth3 proto kernel scope link"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -171,7 +171,8 @@ expect {
"10.10.50.0/24 dev eth3 proto kernel scope link"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -60,6 +60,6 @@ expect {
"rate 80Kbit burst 10Kb" {puts "TESTING ERROR 9\n";exit}
"done"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -23,6 +23,7 @@ expect {
timeout {puts "TESTING ERROR 3\n";exit}
"done"
}
sleep 1
send -- "exit\r"
after 100
puts "all done\n"
......@@ -42,6 +42,8 @@ expect {
"scopeid 0x0<global>" { puts "Arch\n"}
}
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -13,7 +13,7 @@ expect {
timeout {puts "TESTING ERROR 0.0\n";exit}
"the IP address is not"
}
sleep 1
after 100
puts "\n"
......@@ -43,7 +43,8 @@ expect {
timeout {puts "TESTING ERROR 10.2\n";exit}
"10.10.20.0/29 dev eth0 proto kernel scope link"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -37,7 +37,8 @@ expect {
timeout {puts "TESTING ERROR 10.3\n";exit}
"10.10.30.0/24 dev eth1 proto kernel scope link"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -14,7 +14,8 @@ expect {
"default gateway 10.10.95.89 is not in the range of any network"
}
sleep 1
after 100
puts "\n"
......@@ -86,6 +86,8 @@ expect {
timeout {puts "TESTING ERROR 5.1\n";exit}
"UP"
}
send -- "exit\r"
after 100
puts "all done\n"
......@@ -69,7 +69,8 @@ expect {
timeout {puts "TESTING ERROR 10\n";exit}
"10.10.20.0/29 dev eth0 proto kernel scope link"
}
sleep 1
send -- "exit\r"
after 100
puts "\n"
......@@ -43,6 +43,8 @@ expect {
timeout {puts "TESTING ERROR 7\n";exit}
"255.0.0.0"
}
send -- "exit\r"
after 100
puts "all done\n"
......@@ -33,7 +33,8 @@ expect {
timeout {puts "TESTING ERROR 4\n";exit}
"Child process initialized"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -86,6 +86,8 @@ while { $i <= $MAXi } {
after 100
# sleep 1
}
send -- "exit\r"
after 100
puts "\n"
......@@ -28,6 +28,8 @@ expect {
timeout {puts "TESTING ERROR 4\n";exit}
"state UP"
}
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -38,6 +38,7 @@ expect {
timeout {puts "TESTING ERROR 6\n";exit}
"done"
}
send -- "exit\r"
after 100
puts "all done\n"
......
......@@ -38,6 +38,7 @@ expect {
timeout {puts "TESTING ERROR 6\n";exit}
"done"
}
send -- "exit\r"
after 100
puts "all done\n"
......
......@@ -66,6 +66,7 @@ expect {
"eth0" {puts "TESTING ERROR 5.1\n";exit}
"done"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -70,7 +70,8 @@ expect {
"state UP"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -46,5 +46,5 @@ expect {
"Child process initialized"
}
after 100
puts "\nall done\n"
......@@ -31,7 +31,8 @@ expect {
sleep 1
send -- "exit\r"
after 100
send -- "rm -fr /tmp/firejailtest*\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -9,5 +9,5 @@ expect {
timeout {puts "TESTING ERROR 0\n";exit}
"cannot access profile"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -28,9 +28,9 @@ expect {
"Read-only file system"
}
send -- "exit\r"
sleep 1
after 100
send -- "rm -fr /tmp/firejailtest*\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -50,5 +50,5 @@ expect {
}
send -- "exit\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -45,6 +45,6 @@ expect {
timeout {puts "TESTING ERROR 8\n";exit}
"Child process initialized"
}
sleep 1
send -- "exit\r"
after 100
puts "\nall done\n"
......@@ -28,5 +28,5 @@ expect {
timeout {puts "TESTING ERROR 3\n";exit}
"net_raw - disabled"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -20,5 +20,5 @@ expect {
timeout {puts "TESTING ERROR 1\n";exit}
"Cpus_allowed_list: 1-2"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -20,5 +20,5 @@ expect {
timeout {puts "TESTING ERROR 1\n";exit}
"nameserver 1.2.3.4"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -28,5 +28,5 @@ expect {
timeout {puts "TESTING ERROR 3\n";exit}
"blacklist /proc/kmsg"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -30,6 +30,6 @@ expect {
}
send -- "exit"
sleep 1
after 100
puts "\nall done\n"
......@@ -33,6 +33,6 @@ expect {
}
send -- "exit"
sleep 1
after 100
puts "\nall done\n"
......@@ -33,6 +33,6 @@ expect {
}
send -- "exit"
sleep 1
after 100
puts "\nall done\n"
......@@ -33,6 +33,6 @@ expect {
}
send -- "exit"
sleep 1
after 100
puts "\nall done\n"
......@@ -37,5 +37,5 @@ expect {
sleep 1
send -- "rm -f lstesting\r"
sleep 1
after 100
puts "\nall done\n"
......@@ -20,5 +20,5 @@ expect {
timeout {puts "TESTING ERROR 1\n";exit}
"unix,inet,inet6"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -32,5 +32,5 @@ expect {
timeout {puts "TESTING ERROR 4\n";exit}
"RETURN_ALLOW"
}
sleep 1
after 100
puts "\nall done\n"
......@@ -40,6 +40,6 @@ expect {
timeout {puts "TESTING ERROR 5\n";exit}
"5"
}
sleep 1
after 100
puts "\nalldone\n"
......@@ -60,6 +60,6 @@ expect {
timeout {puts "TESTING ERROR 10\n";exit}
"5"
}
sleep 1
after 100
puts "\nalldone\n"
......@@ -60,6 +60,6 @@ expect {
timeout {puts "TESTING ERROR 50\n";exit}
"50"
}
sleep 1
after 100
puts "\nalldone\n"
......@@ -110,5 +110,6 @@ expect {
"bash:access /etc/terminfo/" {puts "debian\n"}
"bash:access /usr/share/terminfo/" {puts "arch\n"}
}
after 100
puts "\nall done\n"
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment