diff options
author | netblue30 <netblue30@yahoo.com> | 2016-04-24 06:32:15 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2016-04-24 06:32:15 -0400 |
commit | 020c5449036c461ea1829e854da43429322059d6 (patch) | |
tree | 46ca4f358fcc1c50be77586ccdb0e02170d81e1d /test/env.exp | |
parent | testing (diff) | |
download | firejail-020c5449036c461ea1829e854da43429322059d6.tar.gz firejail-020c5449036c461ea1829e854da43429322059d6.tar.zst firejail-020c5449036c461ea1829e854da43429322059d6.zip |
testing
Diffstat (limited to 'test/env.exp')
-rwxr-xr-x | test/env.exp | 55 |
1 files changed, 0 insertions, 55 deletions
diff --git a/test/env.exp b/test/env.exp deleted file mode 100755 index d7aee3c64..000000000 --- a/test/env.exp +++ /dev/null | |||
@@ -1,55 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | |||
3 | set timeout 10 | ||
4 | spawn $env(SHELL) | ||
5 | match_max 100000 | ||
6 | |||
7 | #*********************************************** | ||
8 | send -- "firejail --env=ENV1=env1 --env=ENV2=env2 --env=ENV3=env3\r" | ||
9 | expect { | ||
10 | timeout {puts "TESTING ERROR 0\n";exit} | ||
11 | "Child process initialized" | ||
12 | } | ||
13 | sleep 1 | ||
14 | |||
15 | send -- "env | grep ENV1\r" | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "ENV1" | ||
19 | } | ||
20 | send -- "env | grep ENV2\r" | ||
21 | expect { | ||
22 | timeout {puts "TESTING ERROR 2\n";exit} | ||
23 | "ENV2" | ||
24 | } | ||
25 | send -- "env | grep ENV3\r" | ||
26 | expect { | ||
27 | timeout {puts "TESTING ERROR 3\n";exit} | ||
28 | "ENV3" | ||
29 | } | ||
30 | send -- "exit\r" | ||
31 | sleep 1 | ||
32 | |||
33 | #*********************************************** | ||
34 | send -- "firejail --profile=env.profile\r" | ||
35 | expect { | ||
36 | timeout {puts "TESTING ERROR 4\n";exit} | ||
37 | "Child process initialized" | ||
38 | } | ||
39 | sleep 1 | ||
40 | send -- "env | grep LD_LIBRARY_PATH\r" | ||
41 | expect { | ||
42 | timeout {puts "TESTING ERROR 5\n";exit} | ||
43 | "/opt/test/lib" | ||
44 | } | ||
45 | send -- "env | grep CFLAGS\r" | ||
46 | expect { | ||
47 | timeout {puts "TESTING ERROR 6\n";exit} | ||
48 | "Wall" | ||
49 | } | ||
50 | expect { | ||
51 | timeout {puts "TESTING ERROR 7\n";exit} | ||
52 | "Werror" | ||
53 | } | ||
54 | |||
55 | puts "\nall done\n" | ||