firejail/test/network
smitsohu 7578e86ef8 testing: fix expect matching of numbers
The sandbox timestamp should not be available for matching
when output is already expected from the next command
(this is only a problem if numeric output if expected from the
first command in the sandbox).

A possible alternative would be to flush the expect output buffer
with 'expect "*"' after the sandbox is up.
2022-02-09 18:30:45 +01:00
..
4bridges_arp.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
4bridges_ip.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
bandwidth.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
configure 2022 copyright update 2022-01-07 12:23:47 -05:00
dns-print.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
firemon-arp.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
firemon-interfaces.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
firemon-route.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
hostname.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
interface.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
ip6.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
ip6.profile testing and cleanup 2016-11-29 10:04:43 -05:00
iprange.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
iprange.profile testing and cleanup 2016-11-29 10:04:43 -05:00
ipv6.net networking features testing 2016-05-03 08:41:24 -04:00
net-profile.profile strip trailing whitespace from test/ 2017-05-24 14:38:01 -05:00
net_arp.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_badip.exp 2022 copyright update 2022-01-07 12:23:47 -05:00
net_defaultgw.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_defaultgw2.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_defaultgw3.exp 2022 copyright update 2022-01-07 12:23:47 -05:00
net_ip.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_local.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_mac.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_macvlan2.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_mtu.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_netfilter.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_noip.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_noip2.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_none.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_none.profile networking features testing 2016-05-03 08:41:24 -04:00
net_profile.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_scan.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_unconfigured.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
net_veth.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
netfilter-template.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
netfilter.filter networking features testing 2016-05-03 08:41:24 -04:00
netfilter.profile networking features testing 2016-05-03 08:41:24 -04:00
netns.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
netstats.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
network.sh 2022 copyright update 2022-01-07 12:23:47 -05:00
README Misc. typos 2018-11-19 10:07:39 -05:00
tcpserver.c 2022 copyright update 2022-01-07 12:23:47 -05:00
veth-name.exp testing: fix expect matching of numbers 2022-02-09 18:30:45 +01:00
veth-name.profile testing and cleanup 2016-11-29 10:04:43 -05:00

Warning: this test requires root access to configure a number of bridge, mac
and vlan devices. Please take a look at configure file. By the time you are
finished testing, you'll probably have to reboot the computer to get your
networking subsystem back to normal.

Limitations - to be investigated and fixed:
	- the test is assuming an eth0 wired interface to be present
	- using netstat and ifconfig - this needs to be moved to iproute2
	- configure script inserts an entry in system netfilter configuration
	- the test will probably not work on grsecurity settings
	- macvlan interfaces don't seem to work correctly under VirtualBox

Run the test:
	$ ./network.sh | grep TESTING