From 334c79edd83377a09c138800c0a2fefaf9c7981f Mon Sep 17 00:00:00 2001 From: netblue30 Date: Thu, 10 Nov 2016 07:18:24 -0500 Subject: testing --- test/network/netstats.exp | 39 +++++++++++++++++++++++++++++++++++++++ 1 file changed, 39 insertions(+) create mode 100755 test/network/netstats.exp (limited to 'test/network/netstats.exp') diff --git a/test/network/netstats.exp b/test/network/netstats.exp new file mode 100755 index 000000000..41232061d --- /dev/null +++ b/test/network/netstats.exp @@ -0,0 +1,39 @@ +#!/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 --net=eth0 --name=test1\r" +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "Child process initialized" +} +sleep 1 + +spawn $env(SHELL) +send -- "firejail --net=eth0 --name=test2\r" +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "Child process initialized" +} +sleep 1 + +spawn $env(SHELL) +send -- "firejail --netstats\r" +sleep 4 +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "name=test1" +} +expect { + timeout {puts "TESTING ERROR 9\n";exit} + "name=test2" +} +after 100 + +puts "\n" + -- cgit v1.2.3-70-g09d2