Commit d0664e2d authored by netblue30's avatar netblue30

testing

parent 8da434d0
......@@ -13,7 +13,8 @@ expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "echo mytest > /dev/shm/ttt;echo done\r"
expect {
......@@ -43,8 +44,7 @@ expect {
"mytest" {puts "TESTING ERROR 6\n";exit}
"done"
}
sleep 1
after 100
send -- "exit\r"
sleep 1
......@@ -54,7 +54,8 @@ expect {
timeout {puts "TESTING ERROR 7\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "echo mytest > /dev/shm/ttt;echo done\r"
expect {
......
......@@ -13,7 +13,8 @@ expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "echo mytest > /var/lock/ttt;echo done\r"
expect {
......@@ -44,7 +45,7 @@ expect {
"done"
}
sleep 1
after 100
send -- "exit\r"
sleep 1
......@@ -54,7 +55,8 @@ expect {
timeout {puts "TESTING ERROR 7\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "echo mytest > /var/lock/ttt;echo done\r"
expect {
......
......@@ -13,7 +13,8 @@ expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "echo mytest > /var/tmp/ttt;echo done\r"
expect {
......@@ -44,7 +45,7 @@ expect {
"done"
}
sleep 1
after 100
send -- "exit\r"
sleep 1
......@@ -54,7 +55,8 @@ expect {
timeout {puts "TESTING ERROR 7\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "echo mytest > /var/tmp/ttt;echo done\r"
expect {
......
......@@ -12,7 +12,8 @@ expect {
timeout {puts "TESTING ERROR 0\n";exit}
"Child process initialized"
}
sleep 1
after 100
send -- "stty -echo\r"
send -- "ls -l /var;echo done\r"
expect {
......
......@@ -3,27 +3,30 @@
# Copyright (C) 2014-2017 Firejail Authors
# License GPL v2
set timeout 10
spawn $env(SHELL)
match_max 100000
send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo \r"
send -- "firejail --private-lib --private-bin=sh,bash,dash,ps,grep,ls,find,echo,stty \r"
expect {
timeout {puts "TESTING ERROR 1\n";exit}
"Child process initialized"
}
after 100
send -- "stty -echo\r"
send -- "cd /bin; find .; echo done\r"
send -- "cd /bin; find .\; echo done\r"
expect {
timeout {puts "TESTING ERROR 2\n";exit}
# "grep" {puts "TESTING ERROR 3\n";exit}
"rm" {puts "TESTING ERROR 3\n";exit}
"cp" {puts "TESTING ERROR 4\n";exit}
"done"
}
after 100
send -- "cd /lib; find .; echo done\r"
send -- "cd /lib; find .\r"
expect {
timeout {puts "TESTING ERROR 5\n";exit}
"modules" {puts "TESTING ERROR 6\n";exit}
......@@ -32,7 +35,7 @@ expect {
}
after 100
send -- "cd /usr/lib; find .; echo done\r"
send -- "cd /usr/lib; find .\r"
expect {
timeout {puts "TESTING ERROR 8\n";exit}
"grub" {puts "TESTING ERROR 9\n";exit}
......
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