Commit Graph

32 Commits

Author SHA1 Message Date
ozaki-r
2f33341a03 tests: extract all kernel logs, not just a panic message, from rump_server.core 2019-07-18 04:22:22 +00:00
bad
48e354a3ed Get rid of all the -lrumpdev and -lrumpvfs that are no longer needed
after moving rump's mainbus from rumpdev to rumpkern.

Produces the same atf-run results as before.
2019-05-13 17:55:07 +00:00
ozaki-r
7a4fe7b5fc tests: make utility funtions easy to use for tests that don't use the framework 2019-04-18 07:56:04 +00:00
knakahara
6e581475e6 Add ATF for ipsecif(4) pfil. 2019-01-17 02:49:11 +00:00
ozaki-r
810a5ee058 Fix typo 2018-04-07 12:36:58 +00:00
ozaki-r
9e4591fa4a Show outputs of commands if $DEBUG 2018-04-06 09:22:38 +00:00
ozaki-r
95dd9007db Commonalize and add tests of creating/destroying interfaces 2018-02-01 05:22:01 +00:00
kre
91d7a90044 Cosmetic changes, NFC intended.
1. get rid of the "$*" fetish.
2. more consistency (not complete .. yet) with RUMP_SERVER setting
3. white space (esp around pipe ('|') symbols.)
4. drop unnecessary \ line joining.
2017-11-24 03:28:49 +00:00
ozaki-r
7c8e9ac519 Stop using bpfjit
Because most architectures don't support it and npf still works without it.
2017-11-07 09:17:06 +00:00
ozaki-r
0de7b04927 Add test cases of NAT-T (transport mode)
A small C program is added to make a special socket (UDP_ENCAP_ESPINUDP)
and keep it to handle UDP-encapsulated ESP packets.
2017-10-30 15:59:23 +00:00
ozaki-r
d031869d08 Suppress name resolution 2017-10-20 03:45:02 +00:00
ozaki-r
25af614d05 Show packet counters 2017-10-20 03:42:53 +00:00
ozaki-r
b0de75e145 Skip ipsec_spi_*_*_preferred_new_timeout when running on qemu
Probably due to PR 43997
2017-07-24 02:07:43 +00:00
ozaki-r
9b188107de Do netstat -a for an appropriate protocol 2017-06-19 09:20:29 +00:00
ozaki-r
56383415f1 Add IPSEC_KEY_DEBUG
Enable the debugging feature of IPsec key (sysctl net.key.debug)
on rump kernels if the ATF test is run with IPSEC_KEY_DEBUG=true.
2017-06-02 01:18:51 +00:00
ozaki-r
0871e3e188 Enable debug logging of kernels such as ARP and ND if $DEUBG=true 2017-05-19 02:56:58 +00:00
ozaki-r
beade07f61 Add test cases of TCP communications with IPsec enabled
The test cases transfer data over TCP by using nc with IPsec just enabled
(no SA/SP is configured) and confirm the commit "Fix diagnostic assertion
failure in ipsec_init_policy" really fixes the issue.
2017-05-17 06:30:15 +00:00
ozaki-r
0b5da45aff Add tests for ipsec
- Check if setkey correctly handles algorithms for AH/ESP
- Check IPsec of transport mode with AH/ESP over IPv4/IPv6
- Check IPsec of tunnel mode with AH/ESP over IPv4/IPv6
2017-04-14 02:56:48 +00:00
ozaki-r
b9b3014049 Fix ONEDAYISH; it can be followed by one extra space 2017-03-06 07:15:47 +00:00
ozaki-r
8155a2ae5c Provide a more robust regexp for time formats of 1day-ish 2017-03-03 07:34:04 +00:00
ozaki-r
f5b4d3a19e Use nc instead of ftp/httpd
ftp with rumphijack is unstable probably because ftp uses siglongjmp from
a signal hander. So stop using ftp and use nc instead. This fixes test
failures of t_mtudisc on some environments such as my development machine
(amd64) and anita on sparc64.
2017-02-16 08:12:47 +00:00
ozaki-r
e23687f598 Test netstat -i -a and ifmcstat 2017-01-10 05:55:34 +00:00
ozaki-r
d6b5ca395c Test dumping states before destroying interfaces 2017-01-10 05:55:10 +00:00
ozaki-r
b8a0fa35f1 Use redirection instead of pipeline
This is a workaround for PR bin/51667.
2016-11-28 07:29:56 +00:00
ozaki-r
9ca7228bde Skip dumping if no bus is used 2016-11-26 03:20:42 +00:00
ozaki-r
5a83ceea44 Share rump_server start/stop and interface creation/destruction functions
The common functions store socks of rump_servers, interfaces of rump_servers
and buses that intefaces connect and allow to destroy them with common
functions without specifying which socks, interfaces and buses we should
destroy.

This change reduces lots of similar setup/cleanup codes.
2016-11-25 08:51:16 +00:00
ozaki-r
713e0a32de Share httpd start/stop code 2016-11-24 11:54:57 +00:00
ozaki-r
554c6ec338 Move get_macaddr to net_common.sh 2016-11-24 09:07:09 +00:00
ozaki-r
a97a8a65f3 Move get_lladdr to net_common.sh 2016-11-24 09:06:09 +00:00
ozaki-r
927b18c962 Move route check functions to net_common.sh 2016-11-24 09:05:16 +00:00
ozaki-r
5a2201ed49 Move HIJACKING definition to net_common.sh 2016-11-24 09:03:53 +00:00
ozaki-r
d64bc47ffa Reduce duplicate codes
Introduce net_common.sh that is to share common functions used in tests
for networking. This commit commonizes extract_new_packets. Other duplicate
codes will be moved to the file in further commits.
2016-11-24 08:52:19 +00:00