aboutsummaryrefslogtreecommitdiffstats
path: root/test/nice.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-04-24 07:50:35 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-04-24 07:50:35 -0400
commita3207cdca569d78ee6a9723c7c0dfdf10cd15845 (patch)
treeb1925e299c26d57edc4b471a342f8e1d8accf186 /test/nice.exp
parenttesting (diff)
downloadfirejail-a3207cdca569d78ee6a9723c7c0dfdf10cd15845.tar.gz
firejail-a3207cdca569d78ee6a9723c7c0dfdf10cd15845.tar.zst
firejail-a3207cdca569d78ee6a9723c7c0dfdf10cd15845.zip
testing
Diffstat (limited to 'test/nice.exp')
-rwxr-xr-xtest/nice.exp80
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
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail --nice=15\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14send -- "top -b -n 1\r"
15expect {
16 timeout {puts "TESTING ERROR 1\n";exit}
17 "netblue"
18}
19expect {
20 timeout {puts "TESTING ERROR 2\n";exit}
21 "15"
22}
23expect {
24 timeout {puts "TESTING ERROR 3\n";exit}
25 "bash"
26}
27expect {
28 timeout {puts "TESTING ERROR 4\n";exit}
29 "netblu"
30}
31expect {
32 timeout {puts "TESTING ERROR 5\n";exit}
33 "15"
34}
35expect {
36 timeout {puts "TESTING ERROR 6\n";exit}
37 "top"
38}
39
40sleep 1
41send -- "exit\r"
42sleep 1
43
44send -- "firejail --profile=nice.profile\r"
45expect {
46 timeout {puts "TESTING ERROR 10\n";exit}
47 "Child process initialized"
48}
49sleep 1
50
51send -- "top -b -n 1\r"
52expect {
53 timeout {puts "TESTING ERROR 11\n";exit}
54 "netblue"
55}
56expect {
57 timeout {puts "TESTING ERROR 12\n";exit}
58 "15"
59}
60expect {
61 timeout {puts "TESTING ERROR 13\n";exit}
62 "bash"
63}
64expect {
65 timeout {puts "TESTING ERROR 14\n";exit}
66 "netblu"
67}
68expect {
69 timeout {puts "TESTING ERROR 15\n";exit}
70 "15"
71}
72expect {
73 timeout {puts "TESTING ERROR 16\n";exit}
74 "top"
75}
76
77
78
79puts "\nall done\n"
80