aboutsummaryrefslogtreecommitdiffstats
path: root/test/environment/machineid.exp
diff options
context:
space:
mode:
Diffstat (limited to 'test/environment/machineid.exp')
-rwxr-xr-xtest/environment/machineid.exp25
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
7set timeout 10
8spawn $env(SHELL)
9match_max 100000
10
11send -- "firejail --debug --machine-id\r"
12expect {
13 timeout {puts "TESTING ERROR 1\n";exit}
14 "Generating a new machine-id"
15}
16expect {
17 timeout {puts "TESTING ERROR 1\n";exit}
18 "Child process initialized"
19}
20after 100
21send -- "exit\r"
22after 100
23
24puts "\nall done\n"
25