diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-24 07:50:35 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-24 07:50:35 -0400 |
commit | a3207cdca569d78ee6a9723c7c0dfdf10cd15845 (patch) | |
tree | b1925e299c26d57edc4b471a342f8e1d8accf186 /test/nice.exp | |
parent | testing (diff) | |
download | firejail-a3207cdca569d78ee6a9723c7c0dfdf10cd15845.tar.gz firejail-a3207cdca569d78ee6a9723c7c0dfdf10cd15845.tar.zst firejail-a3207cdca569d78ee6a9723c7c0dfdf10cd15845.zip |
testing
Diffstat (limited to 'test/nice.exp')
-rwxr-xr-x | test/nice.exp | 80 |
1 files changed, 0 insertions, 80 deletions
diff --git a/test/nice.exp b/test/nice.exp deleted file mode 100755 index f4afb547d..000000000 --- a/test/nice.exp +++ /dev/null | |||
@@ -1,80 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | send -- "firejail --nice=15\r" | ||
8 | expect { | ||
9 | timeout {puts "TESTING ERROR 0\n";exit} | ||
10 | "Child process initialized" | ||
11 | } | ||
12 | sleep 1 | ||
13 | |||
14 | send -- "top -b -n 1\r" | ||
15 | expect { | ||
16 | timeout {puts "TESTING ERROR 1\n";exit} | ||
17 | "netblue" | ||
18 | } | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 2\n";exit} | ||
21 | "15" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 3\n";exit} | ||
25 | "bash" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 4\n";exit} | ||
29 | "netblu" | ||
30 | } | ||
31 | expect { | ||
32 | timeout {puts "TESTING ERROR 5\n";exit} | ||
33 | "15" | ||
34 | } | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 6\n";exit} | ||
37 | "top" | ||
38 | } | ||
39 | |||
40 | sleep 1 | ||
41 | send -- "exit\r" | ||
42 | sleep 1 | ||
43 | |||
44 | send -- "firejail --profile=nice.profile\r" | ||
45 | expect { | ||
46 | timeout {puts "TESTING ERROR 10\n";exit} | ||
47 | "Child process initialized" | ||
48 | } | ||
49 | sleep 1 | ||
50 | |||
51 | send -- "top -b -n 1\r" | ||
52 | expect { | ||
53 | timeout {puts "TESTING ERROR 11\n";exit} | ||
54 | "netblue" | ||
55 | } | ||
56 | expect { | ||
57 | timeout {puts "TESTING ERROR 12\n";exit} | ||
58 | "15" | ||
59 | } | ||
60 | expect { | ||
61 | timeout {puts "TESTING ERROR 13\n";exit} | ||
62 | "bash" | ||
63 | } | ||
64 | expect { | ||
65 | timeout {puts "TESTING ERROR 14\n";exit} | ||
66 | "netblu" | ||
67 | } | ||
68 | expect { | ||
69 | timeout {puts "TESTING ERROR 15\n";exit} | ||
70 | "15" | ||
71 | } | ||
72 | expect { | ||
73 | timeout {puts "TESTING ERROR 16\n";exit} | ||
74 | "top" | ||
75 | } | ||
76 | |||
77 | |||
78 | |||
79 | puts "\nall done\n" | ||
80 | |||