aboutsummaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2017-08-19 12:45:38 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2017-08-19 12:45:38 -0400
commit828e35086834abd2886151d2a05952976a9a0a9b (patch)
tree3b3df67f774fd43f079355860f4e8b8c4ebbc3ff /test
parentMerges (diff)
downloadfirejail-828e35086834abd2886151d2a05952976a9a0a9b.tar.gz
firejail-828e35086834abd2886151d2a05952976a9a0a9b.tar.zst
firejail-828e35086834abd2886151d2a05952976a9a0a9b.zip
testing
Diffstat (limited to 'test')
-rwxr-xr-xtest/fs/whitelist-dev.exp62
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
33send -- "ls -l /dev | wc -l\r" 33send -- "ls -l /dev | wc -l\r"
34expect { 34expect {
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}
39after 100 39after 100
40
41send -- "ls -l /dev\r"
42expect {
43 timeout {puts "TESTING ERROR 4\n";exit}
44 "dvd" {puts "OK\n"}
45}
46after 100
47
48send -- "ls -l /dev\r"
49expect {
50 timeout {puts "TESTING ERROR 5\n";exit}
51 "dri" {puts "OK\n"}
52}
53after 100
54
55send -- "ls -l /dev\r"
56expect {
57 timeout {puts "TESTING ERROR 6\n";exit}
58 "snd" {puts "OK\n"}
59}
60after 100
61
40send -- "exit\r" 62send -- "exit\r"
41sleep 1 63sleep 1
42 64
65send -- "firejail --private-dev --nosound ls /dev\r"
66expect {
67 timeout {puts "TESTING ERROR 7\n";exit}
68 "Child process initialized"
69}
70expect {
71 timeout {puts "TESTING ERROR 8\n";exit}
72 "snd" {puts "TESTING ERROR 9\n";exit}
73 "Parent is shutting down"
74}
75sleep 1
43 76
77send -- "firejail --private-dev --nodvd ls /dev\r"
78expect {
79 timeout {puts "TESTING ERROR 10\n";exit}
80 "Child process initialized"
81}
82expect {
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}
91sleep 1
44 92
93send -- "firejail --private-dev --no3d ls /dev\r"
94expect {
95 timeout {puts "TESTING ERROR 17\n";exit}
96 "Child process initialized"
97}
98expect {
99 timeout {puts "TESTING ERROR 18\n";exit}
100 "dri" {puts "TESTING ERROR 19\n";exit}
101 "Parent is shutting down"
102}
45 103
46after 100 104after 100
47puts "\nall done\n" 105puts "\nall done\n"