diff options
Diffstat (limited to 'test/profile_syntax.exp')
-rwxr-xr-x | test/profile_syntax.exp | 63 |
1 files changed, 0 insertions, 63 deletions
diff --git a/test/profile_syntax.exp b/test/profile_syntax.exp deleted file mode 100755 index 559947276..000000000 --- a/test/profile_syntax.exp +++ /dev/null | |||
@@ -1,63 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --profile=test.profile\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | |||
13 | sleep 2 | ||
14 | send -- "cat /sbin/iptables\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 2\n";exit} | ||
17 | "No such file" {puts "\nTESTING /sbin/iptables not found\n"} | ||
18 | "Permission denied" | ||
19 | } | ||
20 | |||
21 | sleep 1 | ||
22 | send -- "ls -l /etc/shadow\r" | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "root root 0" | ||
26 | } | ||
27 | |||
28 | sleep 1 | ||
29 | send -- "rmdir;pwd\r" | ||
30 | expect { | ||
31 | timeout {puts "TESTING ERROR 4\n";exit} | ||
32 | "Permission denied" | ||
33 | } | ||
34 | expect { | ||
35 | timeout {puts "TESTING ERROR 5\n";exit} | ||
36 | "home" | ||
37 | } | ||
38 | |||
39 | sleep 1 | ||
40 | send -- "mount;pwd\r" | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 6\n";exit} | ||
43 | "Permission denied" | ||
44 | } | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 7\n";exit} | ||
47 | "home" | ||
48 | } | ||
49 | |||
50 | sleep 1 | ||
51 | send -- "umount;pwd\r" | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 8\n";exit} | ||
54 | "Permission denied" | ||
55 | } | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 9\n";exit} | ||
58 | "home" | ||
59 | } | ||
60 | send -- "exit\r" | ||
61 | |||
62 | sleep 1 | ||
63 | puts "\n" | ||