diff options
Diffstat (limited to 'test/features/2.1.exp')
-rwxr-xr-x | test/features/2.1.exp | 63 |
1 files changed, 33 insertions, 30 deletions
diff --git a/test/features/2.1.exp b/test/features/2.1.exp index a2ae321ce..5f188988b 100755 --- a/test/features/2.1.exp +++ b/test/features/2.1.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 |
@@ -46,37 +47,39 @@ sleep 1 | |||
46 | # | 47 | # |
47 | # O | 48 | # O |
48 | # | 49 | # |
49 | send -- "firejail --noprofile --hostname=bingo --overlay\r" | 50 | if { $overlay == "overlay" } { |
50 | expect { | 51 | send -- "firejail --noprofile --hostname=bingo --overlay\r" |
51 | timeout {puts "TESTING ERROR 2\n";exit} | 52 | expect { |
52 | "Child process initialized" | 53 | timeout {puts "TESTING ERROR 2\n";exit} |
53 | } | 54 | "Child process initialized" |
54 | sleep 1 | 55 | } |
55 | 56 | sleep 1 | |
56 | send -- "hostname\r" | 57 | |
57 | expect { | 58 | send -- "hostname\r" |
58 | timeout {puts "TESTING ERROR 3\n";exit} | 59 | expect { |
59 | "bingo" | 60 | timeout {puts "TESTING ERROR 3\n";exit} |
60 | } | 61 | "bingo" |
61 | after 100 | 62 | } |
62 | send -- "cat /etc/hostname\r" | 63 | after 100 |
63 | expect { | 64 | send -- "cat /etc/hostname\r" |
64 | timeout {puts "TESTING ERROR 3.0\n";exit} | 65 | expect { |
65 | "bingo" | 66 | timeout {puts "TESTING ERROR 3.0\n";exit} |
66 | } | 67 | "bingo" |
67 | after 100 | 68 | } |
68 | send -- "getent hosts bingo\r" | 69 | after 100 |
69 | expect { | 70 | send -- "getent hosts bingo\r" |
70 | timeout {puts "TESTING ERROR 3.1\n";exit} | 71 | expect { |
71 | "127.0.0.1" | 72 | timeout {puts "TESTING ERROR 3.1\n";exit} |
73 | "127.0.0.1" | ||
74 | } | ||
75 | expect { | ||
76 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
77 | "bingo" | ||
78 | } | ||
79 | after 100 | ||
80 | send -- "exit\r" | ||
81 | sleep 1 | ||
72 | } | 82 | } |
73 | expect { | ||
74 | timeout {puts "TESTING ERROR 3.2\n";exit} | ||
75 | "bingo" | ||
76 | } | ||
77 | after 100 | ||
78 | send -- "exit\r" | ||
79 | sleep 1 | ||
80 | 83 | ||
81 | # | 84 | # |
82 | # C | 85 | # C |