diff options
author | netblue30 <netblue30@yahoo.com> | 2015-12-23 12:38:13 -0500 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2015-12-23 12:38:13 -0500 |
commit | 686bc51e38b0718651e82818871b0bf1451c8b21 (patch) | |
tree | 521f5fc2123c4782493fc86b46cc41533acb85db /test/features/1.2.exp | |
parent | 0.9.36 testing (diff) | |
download | firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.gz firejail-686bc51e38b0718651e82818871b0bf1451c8b21.tar.zst firejail-686bc51e38b0718651e82818871b0bf1451c8b21.zip |
0.9.36 testing
Diffstat (limited to 'test/features/1.2.exp')
-rwxr-xr-x | test/features/1.2.exp | 79 |
1 files changed, 41 insertions, 38 deletions
diff --git a/test/features/1.2.exp b/test/features/1.2.exp index 399e9948b..d487537e4 100755 --- a/test/features/1.2.exp +++ b/test/features/1.2.exp | |||
@@ -6,6 +6,7 @@ | |||
6 | set timeout 10 | 6 | set timeout 10 |
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | set overlay [lindex $argv 0] | ||
9 | 10 | ||
10 | # | 11 | # |
11 | # N | 12 | # N |
@@ -54,45 +55,47 @@ sleep 1 | |||
54 | # | 55 | # |
55 | # O | 56 | # O |
56 | # | 57 | # |
57 | send -- "firejail --noprofile --overlay\r" | 58 | if { $overlay == "overlay" } { |
58 | expect { | 59 | send -- "firejail --noprofile --overlay\r" |
59 | timeout {puts "TESTING ERROR 2\n";exit} | 60 | expect { |
60 | "Child process initialized" | 61 | timeout {puts "TESTING ERROR 2\n";exit} |
61 | } | 62 | "Child process initialized" |
62 | sleep 1 | 63 | } |
63 | 64 | sleep 1 | |
64 | send -- "cat /proc/mounts | grep proc\r" | 65 | |
65 | expect { | 66 | send -- "cat /proc/mounts | grep proc\r" |
66 | timeout {puts "TESTING ERROR 3.1\n";exit} | 67 | expect { |
67 | "proc /proc proc" | 68 | timeout {puts "TESTING ERROR 3.1\n";exit} |
69 | "proc /proc proc" | ||
70 | } | ||
71 | expect { | ||
72 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
73 | "proc /proc proc" | ||
74 | } | ||
75 | expect { | ||
76 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
77 | "proc /proc/sys proc" | ||
78 | } | ||
79 | expect { | ||
80 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
81 | "proc /proc/sysrq-trigger proc" | ||
82 | } | ||
83 | expect { | ||
84 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
85 | "proc /proc/sys/kernel/hotplug" | ||
86 | } | ||
87 | expect { | ||
88 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
89 | "proc /proc/irq proc" | ||
90 | } | ||
91 | expect { | ||
92 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
93 | "proc /proc/bus proc" | ||
94 | } | ||
95 | after 100 | ||
96 | send -- "exit\r" | ||
97 | sleep 1 | ||
68 | } | 98 | } |
69 | expect { | ||
70 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
71 | "proc /proc proc" | ||
72 | } | ||
73 | expect { | ||
74 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
75 | "proc /proc/sys proc" | ||
76 | } | ||
77 | expect { | ||
78 | timeout {puts "TESTING ERROR 3.4\n";exit} | ||
79 | "proc /proc/sysrq-trigger proc" | ||
80 | } | ||
81 | expect { | ||
82 | timeout {puts "TESTING ERROR 3.5\n";exit} | ||
83 | "proc /proc/sys/kernel/hotplug" | ||
84 | } | ||
85 | expect { | ||
86 | timeout {puts "TESTING ERROR 3.6\n";exit} | ||
87 | "proc /proc/irq proc" | ||
88 | } | ||
89 | expect { | ||
90 | timeout {puts "TESTING ERROR 3.7\n";exit} | ||
91 | "proc /proc/bus proc" | ||
92 | } | ||
93 | after 100 | ||
94 | send -- "exit\r" | ||
95 | sleep 1 | ||
96 | 99 | ||
97 | # | 100 | # |
98 | # C | 101 | # C |