diff options
author | netblue30 <netblue30@yahoo.com> | 2017-03-24 07:55:44 -0400 |
---|---|---|
committer | netblue30 <netblue30@yahoo.com> | 2017-03-24 07:55:44 -0400 |
commit | 5ff53a2ca729ad687a323f782594420065148588 (patch) | |
tree | ba8241b684fc70cef6ef8b30ad50b25feabaf505 /test/environment/machineid.exp | |
parent | merge #1100 from zackw: xvfb support in /etc/firejail/firejail.config (diff) | |
download | firejail-5ff53a2ca729ad687a323f782594420065148588.tar.gz firejail-5ff53a2ca729ad687a323f782594420065148588.tar.zst firejail-5ff53a2ca729ad687a323f782594420065148588.zip |
testing
Diffstat (limited to 'test/environment/machineid.exp')
-rwxr-xr-x | test/environment/machineid.exp | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/test/environment/machineid.exp b/test/environment/machineid.exp new file mode 100755 index 000000000..85510247b --- /dev/null +++ b/test/environment/machineid.exp | |||
@@ -0,0 +1,25 @@ | |||
1 | #!/usr/bin/expect -f | ||
2 | # This file is part of Firejail project | ||
3 | # Copyright (C) 2014-2017 Firejail Authors | ||
4 | # License GPL v2 | ||
5 | |||
6 | |||
7 | set timeout 10 | ||
8 | spawn $env(SHELL) | ||
9 | match_max 100000 | ||
10 | |||
11 | send -- "firejail --debug --machine-id\r" | ||
12 | expect { | ||
13 | timeout {puts "TESTING ERROR 1\n";exit} | ||
14 | "Generating a new machine-id" | ||
15 | } | ||
16 | expect { | ||
17 | timeout {puts "TESTING ERROR 1\n";exit} | ||
18 | "Child process initialized" | ||
19 | } | ||
20 | after 100 | ||
21 | send -- "exit\r" | ||
22 | after 100 | ||
23 | |||
24 | puts "\nall done\n" | ||
25 | |||