diff options
Diffstat (limited to 'test/environment')
-rwxr-xr-x | test/environment/csh.exp | 34 | ||||
-rwxr-xr-x | test/environment/dash.exp | 44 | ||||
-rwxr-xr-x | test/environment/environment.sh | 27 | ||||
-rwxr-xr-x | test/environment/zsh.exp | 34 |
4 files changed, 0 insertions, 139 deletions
diff --git a/test/environment/csh.exp b/test/environment/csh.exp deleted file mode 100755 index 31bfbfa40..000000000 --- a/test/environment/csh.exp +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | cd /home | ||
8 | spawn $env(SHELL) | ||
9 | match_max 100000 | ||
10 | |||
11 | send -- "firejail --private --shell=/bin/csh\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
15 | } | ||
16 | sleep 1 | ||
17 | |||
18 | send -- "env | grep SHELL;pwd\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | "SHELL" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 2\n";exit} | ||
25 | "/bin/csh" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 3\n";exit} | ||
29 | "home" | ||
30 | } | ||
31 | send -- "exit\r" | ||
32 | after 100 | ||
33 | |||
34 | puts "\nall done\n" | ||
diff --git a/test/environment/dash.exp b/test/environment/dash.exp deleted file mode 100755 index 4dd5cac9f..000000000 --- a/test/environment/dash.exp +++ /dev/null | |||
@@ -1,44 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | cd /home | ||
8 | spawn $env(SHELL) | ||
9 | match_max 100000 | ||
10 | |||
11 | send -- "firejail --private --tracelog --shell=/bin/dash\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
15 | } | ||
16 | sleep 1 | ||
17 | |||
18 | #send -- "ls -al;pwd\r" | ||
19 | #expect { | ||
20 | # timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | # ".zshrc" | ||
22 | #} | ||
23 | #expect { | ||
24 | # timeout {puts "TESTING ERROR 1.1\n";exit} | ||
25 | # "home" | ||
26 | #} | ||
27 | |||
28 | send -- "env | grep SHELL;pwd\r" | ||
29 | expect { | ||
30 | timeout {puts "TESTING ERROR 2\n";exit} | ||
31 | "SHELL" | ||
32 | } | ||
33 | expect { | ||
34 | timeout {puts "TESTING ERROR 2.1\n";exit} | ||
35 | "/bin/dash" | ||
36 | } | ||
37 | expect { | ||
38 | timeout {puts "TESTING ERROR 2.2\n";exit} | ||
39 | "home" | ||
40 | } | ||
41 | send -- "exit\r" | ||
42 | after 100 | ||
43 | |||
44 | puts "\n" | ||
diff --git a/test/environment/environment.sh b/test/environment/environment.sh index 9e58fdf95..da9c170b9 100755 --- a/test/environment/environment.sh +++ b/test/environment/environment.sh | |||
@@ -36,33 +36,6 @@ echo "TESTING: extract command (extract_command.exp)" | |||
36 | echo "TESTING: environment variables (test/environment/env.exp)" | 36 | echo "TESTING: environment variables (test/environment/env.exp)" |
37 | ./env.exp | 37 | ./env.exp |
38 | 38 | ||
39 | which dash 2>/dev/null | ||
40 | if [ "$?" -eq 0 ]; | ||
41 | then | ||
42 | echo "TESTING: dash (test/environment/dash.exp)" | ||
43 | ./dash.exp | ||
44 | else | ||
45 | echo "TESTING SKIP: dash not found" | ||
46 | fi | ||
47 | |||
48 | which csh 2>/dev/null | ||
49 | if [ "$?" -eq 0 ]; | ||
50 | then | ||
51 | echo "TESTING: csh (test/environment/csh.exp)" | ||
52 | ./csh.exp | ||
53 | else | ||
54 | echo "TESTING SKIP: csh not found" | ||
55 | fi | ||
56 | |||
57 | which zsh 2>/dev/null | ||
58 | if [ "$?" -eq 0 ]; | ||
59 | then | ||
60 | echo "TESTING: zsh (test/environment/zsh.exp)" | ||
61 | ./zsh.exp | ||
62 | else | ||
63 | echo "TESTING SKIP: zsh not found" | ||
64 | fi | ||
65 | |||
66 | echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" | 39 | echo "TESTING: firejail in firejail - single sandbox (test/environment/firejail-in-firejail.exp)" |
67 | ./firejail-in-firejail.exp | 40 | ./firejail-in-firejail.exp |
68 | 41 | ||
diff --git a/test/environment/zsh.exp b/test/environment/zsh.exp deleted file mode 100755 index 9f871ea54..000000000 --- a/test/environment/zsh.exp +++ /dev/null | |||
@@ -1,34 +0,0 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2022 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | set timeout 10 | ||
7 | cd /home | ||
8 | spawn $env(SHELL) | ||
9 | match_max 100000 | ||
10 | |||
11 | send -- "firejail --private --shell=/bin/zsh\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 0\n";exit} | ||
14 | -re "Child process initialized in \[0-9\]+.\[0-9\]+ ms" | ||
15 | } | ||
16 | sleep 1 | ||
17 | |||
18 | send -- "env | grep SHELL;pwd\r" | ||
19 | expect { | ||
20 | timeout {puts "TESTING ERROR 1\n";exit} | ||
21 | "SHELL" | ||
22 | } | ||
23 | expect { | ||
24 | timeout {puts "TESTING ERROR 2\n";exit} | ||
25 | "/bin/zsh" | ||
26 | } | ||
27 | expect { | ||
28 | timeout {puts "TESTING ERROR 3\n";exit} | ||
29 | "home" | ||
30 | } | ||
31 | send -- "exit\r" | ||
32 | after 100 | ||
33 | |||
34 | puts "\nall done\n" | ||