From 5ff53a2ca729ad687a323f782594420065148588 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Fri, 24 Mar 2017 07:55:44 -0400 Subject: testing --- test/environment/machineid.exp | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100755 test/environment/machineid.exp (limited to 'test/environment/machineid.exp') 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 @@ +#!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2017 Firejail Authors +# License GPL v2 + + +set timeout 10 +spawn $env(SHELL) +match_max 100000 + +send -- "firejail --debug --machine-id\r" +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Generating a new machine-id" +} +expect { + timeout {puts "TESTING ERROR 1\n";exit} + "Child process initialized" +} +after 100 +send -- "exit\r" +after 100 + +puts "\nall done\n" + -- cgit v1.2.3-70-g09d2