From c6ea2db9110feb68fe181188384c31254cdec945 Mon Sep 17 00:00:00 2001 From: netblue30 Date: Wed, 7 Dec 2016 21:14:23 -0500 Subject: testing --- test/network/net_macvlan2.exp | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100755 test/network/net_macvlan2.exp (limited to 'test/network/net_macvlan2.exp') diff --git a/test/network/net_macvlan2.exp b/test/network/net_macvlan2.exp new file mode 100755 index 000000000..7f21fc083 --- /dev/null +++ b/test/network/net_macvlan2.exp @@ -0,0 +1,43 @@ +#!/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 --net=eth0 --net=eth0 --net=eth0\r" +expect { + timeout {puts "TESTING ERROR 0.1\n";exit} + "eth0-" +} +expect { + timeout {puts "TESTING ERROR 0.2\n";exit} + "eth1-" +} +expect { + timeout {puts "TESTING ERROR 0.3\n";exit} + "eth2-" +} +expect { + timeout {puts "TESTING ERROR 0.4\n";exit} + "eth3-" +} +expect { + timeout {puts "TESTING ERROR 0.5\n";exit} + "Default gateway 192.168.1.1" +} +expect { + timeout {puts "TESTING ERROR 0.6\n";exit} + "Child process initialized" +} +after 100 +send -- "exit\r" +sleep 1 + + +after 100 + +puts "\nall done\n" + -- cgit v1.2.3-54-g00ecf