aboutsummaryrefslogtreecommitdiffstats
path: root/test/pid.exp
diff options
context:
space:
mode:
authorLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
committerLibravatar netblue30 <netblue30@yahoo.com>2016-05-05 10:22:18 -0400
commit37a5a3545ef6d8d03dad8bbd888f53e13274c9e5 (patch)
tree5d56a4b0a0933963d97eb0a88dd00fec9ea58bf2 /test/pid.exp
parentrename generic.profile as default.profile (diff)
downloadfirejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.gz
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.tar.zst
firejail-37a5a3545ef6d8d03dad8bbd888f53e13274c9e5.zip
testing
Diffstat (limited to 'test/pid.exp')
-rwxr-xr-xtest/pid.exp49
1 files changed, 0 insertions, 49 deletions
diff --git a/test/pid.exp b/test/pid.exp
deleted file mode 100755
index cdeb9d5fb..000000000
--- a/test/pid.exp
+++ /dev/null
@@ -1,49 +0,0 @@
1#!/usr/bin/expect -f
2
3set timeout 10
4spawn $env(SHELL)
5match_max 100000
6
7send -- "firejail\r"
8expect {
9 timeout {puts "TESTING ERROR 0\n";exit}
10 "Child process initialized"
11}
12sleep 1
13
14# test processes
15send -- "bash\r"
16sleep 1
17send -- "ps aux; pwd\r"
18expect {
19 timeout {puts "TESTING ERROR 1\n";exit}
20 "/bin/bash"
21}
22expect {
23 timeout {puts "TESTING ERROR 2\n";exit}
24 "bash"
25}
26expect {
27 timeout {puts "TESTING ERROR 3\n";exit}
28 "ps aux"
29}
30expect {
31 timeout {puts "TESTING ERROR 4\n";exit}
32 "home"
33}
34sleep 1
35
36
37send -- "ps aux |wc -l; pwd\r"
38expect {
39 timeout {puts "TESTING ERROR 5\n";exit}
40 "6" {puts "normal system\n"}
41 "5" {puts "grsecurity\n"}
42}
43expect {
44 timeout {puts "TESTING ERROR 6\n";exit}
45 "home"
46}
47sleep 1
48
49puts "\nall done\n"