From 723dde8d085f6b2510fcf210721d0de8e8f14a86 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Tue, 3 May 2016 10:33:10 -0400 Subject: networking features testing --- test/network/hostname.exp | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) (limited to 'test/network/hostname.exp') diff --git a/test/network/hostname.exp b/test/network/hostname.exp index 4e5c7e073..53f24f7b1 100755 --- a/test/network/hostname.exp +++ b/test/network/hostname.exp @@ -1,24 +1,27 @@ #!/usr/bin/expect -f +# This file is part of Firejail project +# Copyright (C) 2014-2016 Firejail Authors +# License GPL v2 set timeout 10 spawn $env(SHELL) match_max 100000 -send -- "firejail --hostname=baluba --noprofile\r" +send -- "firejail --hostname=bingo --noprofile\r" expect { timeout {puts "TESTING ERROR 1\n";exit} "Child process initialized" } sleep 1 -send -- "ping -c 3 baluba;pwd\r" +send -- "ping -c 3 bingo; echo done\r" expect { timeout {puts "TESTING ERROR 2\n";exit} "3 packets transmitted, 3 received" } expect { timeout {puts "TESTING ERROR 3\n";exit} - "home" + "done" } sleep 1 -- cgit v1.2.3-70-g09d2