aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-28 20:47:36 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-28 20:47:36 -0400
commit051e84a0068a503a4531712ab7f882240b003b15 (patch)
tree298329f7fa3804aaa97ffe44c8cfcbbece187b30 /test
parentMerge pull request #488 from reinerh/master (diff)
downloadfirejail-051e84a0068a503a4531712ab7f882240b003b15.tar.gz
firejail-051e84a0068a503a4531712ab7f882240b003b15.tar.zst
firejail-051e84a0068a503a4531712ab7f882240b003b15.zip
removed pwd from test/utils
Diffstat (limited to 'test')
-rwxr-xr-xtest/utils/join-profile.exp26
-rwxr-xr-xtest/utils/join.exp25
-rwxr-xr-xtest/utils/join2.exp25
-rwxr-xr-xtest/utils/join3.exp25
-rwxr-xr-xtest/utils/shutdown.exp15
5 files changed, 49 insertions, 67 deletions
diff --git a/test/utils/join-profile.exp b/test/utils/join-profile.exp
index 9200980a1..a4262b999 100755
--- a/test/utils/join-profile.exp
+++ b/test/utils/join-profile.exp
@@ -4,36 +4,32 @@ set timeout 10
4spawn $env(SHELL) 4spawn $env(SHELL)
5match_max 100000 5match_max 100000
6 6
7
7send -- "firejail --profile=name.profile\r" 8send -- "firejail --profile=name.profile\r"
8expect { 9expect {
9 timeout {puts "TESTING ERROR 0\n";exit} 10 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized" 11 "Child process initialized"
11} 12}
12sleep 3 13sleep 2
13 14
14spawn $env(SHELL) 15spawn $env(SHELL)
15send -- "firejail --join=jointesting;pwd\r" 16send -- "firejail --join=jointesting\r"
16expect { 17expect {
17 timeout {puts "TESTING ERROR 1\n";exit} 18 timeout {puts "TESTING ERROR 1\n";exit}
18 "Switching to pid" 19 "Switching to pid"
19} 20}
20sleep 3 21sleep 1
21 22send -- "ps aux\r"
22
23spawn $env(SHELL)
24send -- "firejail --shutdown=jointesting;pwd\r"
25expect { 23expect {
26 timeout {puts "TESTING ERROR 3\n";exit} 24 timeout {puts "TESTING ERROR 2\n";exit}
27 "home" 25 "/bin/bash"
28} 26}
29sleep 5
30
31send -- "firejail --list;pwd\r"
32expect { 27expect {
33 timeout {puts "TESTING ERROR 4\n";exit} 28 timeout {puts "TESTING ERROR 3\n";exit}
34 "jointesting" {puts "TESTING ERROR 5\n";exit} 29 "/bin/bash"
35 "home"
36} 30}
31
32send -- "exit"
37sleep 1 33sleep 1
38 34
39puts "\nall done\n" 35puts "\nall done\n"
diff --git a/test/utils/join.exp b/test/utils/join.exp
index e1cd37fcb..ab4917f7d 100755
--- a/test/utils/join.exp
+++ b/test/utils/join.exp
@@ -8,36 +8,31 @@ cd /home
8spawn $env(SHELL) 8spawn $env(SHELL)
9match_max 100000 9match_max 100000
10 10
11send -- "firejail --name=svntesting\r" 11send -- "firejail --name=jointesting\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
15} 15}
16sleep 3 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "firejail --join=svntesting;pwd\r" 19send -- "firejail --join=jointesting\r"
20expect { 20expect {
21 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid" 22 "Switching to pid"
23} 23}
24sleep 1 24sleep 1
25 25send -- "ps aux\r"
26
27spawn $env(SHELL)
28send -- "firejail --shutdown=svntesting;pwd\r"
29expect { 26expect {
30 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 2\n";exit}
31 "home" 28 "/bin/bash"
32} 29}
33sleep 1
34
35send -- "firejail --list;pwd\r"
36expect { 30expect {
37 timeout {puts "TESTING ERROR 4\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
38 "svntesting" {puts "TESTING ERROR 5\n";exit} 32 "/bin/bash"
39 "home"
40} 33}
34
35send -- "exit"
41sleep 1 36sleep 1
42 37
43puts "\nall done\n" 38puts "\nall done\n"
diff --git a/test/utils/join2.exp b/test/utils/join2.exp
index 820c43174..82540fe39 100755
--- a/test/utils/join2.exp
+++ b/test/utils/join2.exp
@@ -8,36 +8,31 @@ cd /home
8spawn $env(SHELL) 8spawn $env(SHELL)
9match_max 100000 9match_max 100000
10 10
11send -- "firejail --name=\"svn testing\"\r" 11send -- "firejail --name=\"join testing\"\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
15} 15}
16sleep 3 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "firejail --join=\"svn testing\";pwd\r" 19send -- "firejail --join=\"join testing\"\r"
20expect { 20expect {
21 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid" 22 "Switching to pid"
23} 23}
24sleep 1 24sleep 1
25 25send -- "ps aux\r"
26
27spawn $env(SHELL)
28send -- "firejail --shutdown=\"svn testing\";pwd\r"
29expect { 26expect {
30 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 2\n";exit}
31 "home" 28 "/bin/bash"
32} 29}
33sleep 1
34
35send -- "firejail --list;pwd\r"
36expect { 30expect {
37 timeout {puts "TESTING ERROR 4\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
38 "svn testing" {puts "TESTING ERROR 5\n";exit} 32 "/bin/bash"
39 "home"
40} 33}
34
35send -- "exit"
41sleep 1 36sleep 1
42 37
43puts "\nall done\n" 38puts "\nall done\n"
diff --git a/test/utils/join3.exp b/test/utils/join3.exp
index 96d3e5186..e92045dd1 100755
--- a/test/utils/join3.exp
+++ b/test/utils/join3.exp
@@ -8,36 +8,31 @@ cd /home
8spawn $env(SHELL) 8spawn $env(SHELL)
9match_max 100000 9match_max 100000
10 10
11send -- "firejail --name=svn\\ testing\r" 11send -- "firejail --name=join\\ testing\r"
12expect { 12expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
15} 15}
16sleep 3 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "firejail --join=svn\\ testing;pwd\r" 19send -- "firejail --join=join\\ testing\r"
20expect { 20expect {
21 timeout {puts "TESTING ERROR 1\n";exit} 21 timeout {puts "TESTING ERROR 1\n";exit}
22 "Switching to pid" 22 "Switching to pid"
23} 23}
24sleep 1 24sleep 1
25 25send -- "ps aux\r"
26
27spawn $env(SHELL)
28send -- "firejail --shutdown=svn\\ testing;pwd\r"
29expect { 26expect {
30 timeout {puts "TESTING ERROR 3\n";exit} 27 timeout {puts "TESTING ERROR 2\n";exit}
31 "home" 28 "/bin/bash"
32} 29}
33sleep 1
34
35send -- "firejail --list;pwd\r"
36expect { 30expect {
37 timeout {puts "TESTING ERROR 4\n";exit} 31 timeout {puts "TESTING ERROR 3\n";exit}
38 "svn testing" {puts "TESTING ERROR 5\n";exit} 32 "/bin/bash"
39 "home"
40} 33}
34
35send -- "exit"
41sleep 1 36sleep 1
42 37
43puts "\nall done\n" 38puts "\nall done\n"
diff --git a/test/utils/shutdown.exp b/test/utils/shutdown.exp
index ca321b3c9..15a9a62c8 100755
--- a/test/utils/shutdown.exp
+++ b/test/utils/shutdown.exp
@@ -13,22 +13,23 @@ expect {
13 timeout {puts "TESTING ERROR 0\n";exit} 13 timeout {puts "TESTING ERROR 0\n";exit}
14 "Child process initialized" 14 "Child process initialized"
15} 15}
16sleep 3 16sleep 2
17 17
18spawn $env(SHELL) 18spawn $env(SHELL)
19send -- "firejail --shutdown=shutdowntesting;pwd\r" 19send -- "firejail --shutdown=shutdowntesting; echo done\r"
20expect { 20expect {
21 timeout {puts "TESTING ERROR 4\n";exit} 21 timeout {puts "TESTING ERROR 4\n";exit}
22 "home" 22 "done"
23} 23}
24sleep 1 24sleep 5
25 25
26send -- "firejail --list;pwd\r" 26spawn $env(SHELL)
27send -- "firejail --list;echo done\r"
27expect { 28expect {
28 timeout {puts "TESTING ERROR 5\n";exit} 29 timeout {puts "TESTING ERROR 5\n";exit}
29 "shutdowntesting" {puts "TESTING ERROR 6\n";exit} 30 "shutdowntesting" {puts "TESTING ERROR 6\n";exit}
30 "home" 31 "done"
31} 32}
32sleep 1 33sleep 1
33 34
34puts "\nalldone\n" 35puts "\nall done\n"