diff options
author | netblue30 <netblue30@yahoo.com> | 2017-08-19 12:45:38 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-08-19 12:45:38 -0400 |
commit | 828e35086834abd2886151d2a05952976a9a0a9b (patch) | |
tree | 3b3df67f774fd43f079355860f4e8b8c4ebbc3ff /test/fs/whitelist-dev.exp | |
parent | Merges (diff) | |
download | firejail-828e35086834abd2886151d2a05952976a9a0a9b.tar.gz firejail-828e35086834abd2886151d2a05952976a9a0a9b.tar.zst firejail-828e35086834abd2886151d2a05952976a9a0a9b.zip |
testing
Diffstat (limited to 'test/fs/whitelist-dev.exp')
-rwxr-xr-x | test/fs/whitelist-dev.exp | 62 |
1 files changed, 60 insertions, 2 deletions
diff --git a/test/fs/whitelist-dev.exp b/test/fs/whitelist-dev.exp index 7575faee0..bc0970091 100755 --- a/test/fs/whitelist-dev.exp +++ b/test/fs/whitelist-dev.exp | |||
@@ -33,15 +33,73 @@ sleep 1 | |||
33 | send -- "ls -l /dev | wc -l\r" | 33 | send -- "ls -l /dev | wc -l\r" |
34 | expect { | 34 | expect { |
35 | timeout {puts "TESTING ERROR 3\n";exit} | 35 | timeout {puts "TESTING ERROR 3\n";exit} |
36 | "13" {puts "OK\n"} | 36 | "18" {puts "OK\n"} |
37 | "12" {puts "OK\n"} | 37 | "17" {puts "OK\n"} |
38 | } | 38 | } |
39 | after 100 | 39 | after 100 |
40 | |||
41 | send -- "ls -l /dev\r" | ||
42 | expect { | ||
43 | timeout {puts "TESTING ERROR 4\n";exit} | ||
44 | "dvd" {puts "OK\n"} | ||
45 | } | ||
46 | after 100 | ||
47 | |||
48 | send -- "ls -l /dev\r" | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 5\n";exit} | ||
51 | "dri" {puts "OK\n"} | ||
52 | } | ||
53 | after 100 | ||
54 | |||
55 | send -- "ls -l /dev\r" | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 6\n";exit} | ||
58 | "snd" {puts "OK\n"} | ||
59 | } | ||
60 | after 100 | ||
61 | |||
40 | send -- "exit\r" | 62 | send -- "exit\r" |
41 | sleep 1 | 63 | sleep 1 |
42 | 64 | ||
65 | send -- "firejail --private-dev --nosound ls /dev\r" | ||
66 | expect { | ||
67 | timeout {puts "TESTING ERROR 7\n";exit} | ||
68 | "Child process initialized" | ||
69 | } | ||
70 | expect { | ||
71 | timeout {puts "TESTING ERROR 8\n";exit} | ||
72 | "snd" {puts "TESTING ERROR 9\n";exit} | ||
73 | "Parent is shutting down" | ||
74 | } | ||
75 | sleep 1 | ||
43 | 76 | ||
77 | send -- "firejail --private-dev --nodvd ls /dev\r" | ||
78 | expect { | ||
79 | timeout {puts "TESTING ERROR 10\n";exit} | ||
80 | "Child process initialized" | ||
81 | } | ||
82 | expect { | ||
83 | timeout {puts "TESTING ERROR 11\n";exit} | ||
84 | "dvd" {puts "TESTING ERROR 12\n";exit} | ||
85 | "cdrom" {puts "TESTING ERROR 13\n";exit} | ||
86 | "dvdrom" {puts "TESTING ERROR 14\n";exit} | ||
87 | "cdrw" {puts "TESTING ERROR 15\n";exit} | ||
88 | "dvdrw" {puts "TESTING ERROR 16\n";exit} | ||
89 | "Parent is shutting down" | ||
90 | } | ||
91 | sleep 1 | ||
44 | 92 | ||
93 | send -- "firejail --private-dev --no3d ls /dev\r" | ||
94 | expect { | ||
95 | timeout {puts "TESTING ERROR 17\n";exit} | ||
96 | "Child process initialized" | ||
97 | } | ||
98 | expect { | ||
99 | timeout {puts "TESTING ERROR 18\n";exit} | ||
100 | "dri" {puts "TESTING ERROR 19\n";exit} | ||
101 | "Parent is shutting down" | ||
102 | } | ||
45 | 103 | ||
46 | after 100 | 104 | after 100 |
47 | puts "\nall done\n" | 105 | puts "\nall done\n" |