diff options
author | netblue30 <netblue30@yahoo.com> | 2015-12-17 12:09:42 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-12-17 12:09:42 -0500 |
commit | 2da675a42183f2c9fa7f652f31799e1a41ed5ee4 (patch) | |
tree | 7b37b02cec7ce12e091f8d36bf6499ef00e142bb /test/option-join-profile.exp | |
parent | add support for sandbox name in profile files (diff) | |
download | firejail-2da675a42183f2c9fa7f652f31799e1a41ed5ee4.tar.gz firejail-2da675a42183f2c9fa7f652f31799e1a41ed5ee4.tar.zst firejail-2da675a42183f2c9fa7f652f31799e1a41ed5ee4.zip |
testing
Diffstat (limited to 'test/option-join-profile.exp')
-rwxr-xr-x | test/option-join-profile.exp | 39 |
1 files changed, 39 insertions, 0 deletions
diff --git a/test/option-join-profile.exp b/test/option-join-profile.exp new file mode 100755 index 000000000..d208a7f23 --- /dev/null +++ b/test/option-join-profile.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 --profile=name.profile\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=svntesting;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=svntesting;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 | "svntesting" {puts "TESTING ERROR 5\n";exit} | ||
35 | "home" | ||
36 | } | ||
37 | sleep 1 | ||
38 | |||
39 | puts "\nall done\n" | ||