diff options
Diffstat (limited to 'test/features/2.2.exp')
-rwxr-xr-x | test/features/2.2.exp | 47 |
1 files changed, 25 insertions, 22 deletions
diff --git a/test/features/2.2.exp b/test/features/2.2.exp index c562328fd..186da98fb 100755 --- a/test/features/2.2.exp +++ b/test/features/2.2.exp | |||
@@ -6,6 +6,7 @@ | |||
6 | set timeout 10 | 6 | set timeout 10 |
7 | spawn $env(SHELL) | 7 | spawn $env(SHELL) |
8 | match_max 100000 | 8 | match_max 100000 |
9 | set overlay [lindex $argv 0] | ||
9 | 10 | ||
10 | # | 11 | # |
11 | # N | 12 | # N |
@@ -38,29 +39,31 @@ sleep 1 | |||
38 | # | 39 | # |
39 | # O | 40 | # O |
40 | # | 41 | # |
41 | send -- "firejail --noprofile --dns=4.2.2.1 --overlay\r" | 42 | if { $overlay == "overlay" } { |
42 | expect { | 43 | send -- "firejail --noprofile --dns=4.2.2.1 --overlay\r" |
43 | timeout {puts "TESTING ERROR 2\n";exit} | 44 | expect { |
44 | "Child process initialized" | 45 | timeout {puts "TESTING ERROR 2\n";exit} |
46 | "Child process initialized" | ||
47 | } | ||
48 | sleep 1 | ||
49 | |||
50 | send -- "dig google.com\r" | ||
51 | expect { | ||
52 | timeout {puts "TESTING ERROR 3\n";exit} | ||
53 | "ANSWER SECTION" | ||
54 | } | ||
55 | expect { | ||
56 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
57 | "google.com" | ||
58 | } | ||
59 | expect { | ||
60 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
61 | "SERVER: 4.2.2.1" | ||
62 | } | ||
63 | after 100 | ||
64 | send -- "exit\r" | ||
65 | sleep 1 | ||
45 | } | 66 | } |
46 | sleep 1 | ||
47 | |||
48 | send -- "dig google.com\r" | ||
49 | expect { | ||
50 | timeout {puts "TESTING ERROR 3\n";exit} | ||
51 | "ANSWER SECTION" | ||
52 | } | ||
53 | expect { | ||
54 | timeout {puts "TESTING ERROR 3.1\n";exit} | ||
55 | "google.com" | ||
56 | } | ||
57 | expect { | ||
58 | timeout {puts "TESTING ERROR 3.3\n";exit} | ||
59 | "SERVER: 4.2.2.1" | ||
60 | } | ||
61 | after 100 | ||
62 | send -- "exit\r" | ||
63 | sleep 1 | ||
64 | 67 | ||
65 | # | 68 | # |
66 | # C | 69 | # C |