diff options
author | netblue30 <netblue30@yahoo.com> | 2016-02-21 08:46:37 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-02-21 08:46:37 -0500 |
commit | bd5f96b1f000d995a712926f3e02aa11a0fb1679 (patch) | |
tree | adc3cc282089624947f0ab62ba4f157436bc081e | |
parent | moved .config/dconf handling from epiphany and polari profiles into whitelist... (diff) | |
download | firejail-bd5f96b1f000d995a712926f3e02aa11a0fb1679.tar.gz firejail-bd5f96b1f000d995a712926f3e02aa11a0fb1679.tar.zst firejail-bd5f96b1f000d995a712926f3e02aa11a0fb1679.zip |
testing
-rwxr-xr-x | test/option-join2.exp | 39 | ||||
-rwxr-xr-x | test/option-join3.exp | 39 | ||||
-rwxr-xr-x | test/test.sh | 6 |
3 files changed, 84 insertions, 0 deletions
diff --git a/test/option-join2.exp b/test/option-join2.exp new file mode 100755 index 000000000..630b62d9e --- /dev/null +++ b/test/option-join2.exp | |||
@@ -0,0 +1,39 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=\"svn testing\"\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 3 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --join=\"svn testing\";pwd\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Switching to pid" | ||
19 | } | ||
20 | sleep 1 | ||
21 | |||
22 | |||
23 | spawn $env(SHELL) | ||
24 | send -- "firejail --shutdown=\"svn testing\";pwd\r" | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 3\n";exit} | ||
27 | "home" | ||
28 | } | ||
29 | sleep 1 | ||
30 | |||
31 | send -- "firejail --list;pwd\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 4\n";exit} | ||
34 | "svn testing" {puts "TESTING ERROR 5\n";exit} | ||
35 | "home" | ||
36 | } | ||
37 | sleep 1 | ||
38 | |||
39 | puts "\nall done\n" | ||
diff --git a/test/option-join3.exp b/test/option-join3.exp new file mode 100755 index 000000000..aa8a445df --- /dev/null +++ b/test/option-join3.exp | |||
@@ -0,0 +1,39 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --name=svn\\ testing\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 3 | ||
13 | |||
14 | spawn $env(SHELL) | ||
15 | send -- "firejail --join=svn\\ testing;pwd\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Switching to pid" | ||
19 | } | ||
20 | sleep 1 | ||
21 | |||
22 | |||
23 | spawn $env(SHELL) | ||
24 | send -- "firejail --shutdown=svn\\ testing;pwd\r" | ||
25 | expect { | ||
26 | timeout {puts "TESTING ERROR 3\n";exit} | ||
27 | "home" | ||
28 | } | ||
29 | sleep 1 | ||
30 | |||
31 | send -- "firejail --list;pwd\r" | ||
32 | expect { | ||
33 | timeout {puts "TESTING ERROR 4\n";exit} | ||
34 | "svn testing" {puts "TESTING ERROR 5\n";exit} | ||
35 | "home" | ||
36 | } | ||
37 | sleep 1 | ||
38 | |||
39 | puts "\nall done\n" | ||
diff --git a/test/test.sh b/test/test.sh index 93e38edfb..ddb8431c8 100755 --- a/test/test.sh +++ b/test/test.sh | |||
@@ -105,6 +105,12 @@ echo "TESTING: shutdown (option_shutdown.exp)" | |||
105 | echo "TESTING: join (opton-join.exp)" | 105 | echo "TESTING: join (opton-join.exp)" |
106 | ./option-join.exp | 106 | ./option-join.exp |
107 | 107 | ||
108 | echo "TESTING: join2 (opton-join2.exp)" | ||
109 | ./option-join2.exp | ||
110 | |||
111 | echo "TESTING: join3 (opton-join3.exp)" | ||
112 | ./option-join3.exp | ||
113 | |||
108 | echo "TESTING: join profile (option-join-profile.exp)" | 114 | echo "TESTING: join profile (option-join-profile.exp)" |
109 | ./option-join-profile.exp | 115 | ./option-join-profile.exp |
110 | 116 | ||