aboutsummaryrefslogtreecommitdiffstats
path: root/test/profile_syntax.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-21 14:37:53 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-21 14:37:53 -0400
commitad2f7bc496e3cc83bca2381515312dd2ef6fc7f1 (patch)
tree0a923afb486b1f13ab35d26138cdbf51e0961aec /test/profile_syntax.exp
parent--read-write option (diff)
downloadfirejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.gz
firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.tar.zst
firejail-ad2f7bc496e3cc83bca2381515312dd2ef6fc7f1.zip
make test-profiles
Diffstat (limited to 'test/profile_syntax.exp')
-rwxr-xr-xtest/profile_syntax.exp63
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --profile=test.profile\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12
13sleep 2
14send -- "cat /sbin/iptables\r"
15expect {
16 timeout {puts "TESTING ERROR 2\n";exit}
17 "No such file" {puts "\nTESTING /sbin/iptables not found\n"}
18 "Permission denied"
19}
20
21sleep 1
22send -- "ls -l /etc/shadow\r"
23expect {
24 timeout {puts "TESTING ERROR 3\n";exit}
25 "root root 0"
26}
27
28sleep 1
29send -- "rmdir;pwd\r"
30expect {
31 timeout {puts "TESTING ERROR 4\n";exit}
32 "Permission denied"
33}
34expect {
35 timeout {puts "TESTING ERROR 5\n";exit}
36 "home"
37}
38
39sleep 1
40send -- "mount;pwd\r"
41expect {
42 timeout {puts "TESTING ERROR 6\n";exit}
43 "Permission denied"
44}
45expect {
46 timeout {puts "TESTING ERROR 7\n";exit}
47 "home"
48}
49
50sleep 1
51send -- "umount;pwd\r"
52expect {
53 timeout {puts "TESTING ERROR 8\n";exit}
54 "Permission denied"
55}
56expect {
57 timeout {puts "TESTING ERROR 9\n";exit}
58 "home"
59}
60send -- "exit\r"
61
62sleep 1
63puts "\n"