Commit Graph

230 Commits

Author SHA1 Message Date
ozaki-r 837fd81e06 Let ftp use a different output file from httpd's one
Previously the target file served by httpd and the output file of ftp
were identical (both index.html) on the filesystem.
2015-09-29 08:27:24 +00:00
ozaki-r dacbac7968 Add simple tests for fastforward
The tests just do TCP communication via HTTP GET.
2015-09-28 01:54:14 +00:00
ozaki-r c656a96f13 Improve test stability
ifconfig -a -v after ifconfig -a -z is expected to show '0 packets' for
all interface. However, shmif0 can receive packets between the two
operations. So we have to keep shmif0 down during such tests.
2015-09-15 09:51:01 +00:00
ozaki-r f2a7b1339e Add tests for IPv6 ICMP redirect
Note that tests for redirect timeout doesn't work for now due to
PR kern/50240.

From s-yamaguchi@IIJ (with some fixes and tweaks by ozaki-r)
2015-09-14 05:22:56 +00:00
ozaki-r cc31cfa669 Add tests to check if nexthop route lookup works
These tests reproduce a panic on assertion "ro->_ro_rt ==NULL ||
ro->_ro_rt->rt_refcnt > 0" failure that had been fixed.
2015-09-04 05:24:57 +00:00
ozaki-r 933f94aa13 Add tests for ifconfig options
From s-yamaguchi@IIJ (with some tweaks by me)
2015-09-03 10:22:52 +00:00
ozaki-r 0dac802154 Reflect the current ARP cache implementation in tests
net.inet.arp.prune and net.inet.arp.refresh were obsoleted.
2015-08-31 08:08:20 +00:00
ozaki-r 4e97073b73 Add tests for ICMP redirect timeout 2015-08-31 06:16:08 +00:00
ozaki-r 67b961d3c9 Give a chance to send a DAD announce packet
ifconfig -w ensures IP addresses have left tentative state, however,
it doesn't guarantee that a DAD announce packet is sent. The kernel
clears tentative flag and then sends the packet so that ifconfig -w
can return before the kernel sends the packet.
2015-08-25 02:24:34 +00:00
ozaki-r 1a07436188 Disable another tentative state check
It's too ephemeral to check robustly.
2015-08-24 02:02:25 +00:00
ozaki-r c8aae55351 Make a test a bit easy
Accept just 24h of expiration time in addition to 24h - a few seconds.
2015-08-18 00:58:35 +00:00
ozaki-r c75b32f0a0 Improve test stability
A test for ndp -c was sometimes failed because between the deletion
and the check NS/NA messages were exchanged and a NDP cache was
recreated unexpectedly. To provent this situation, we do ifconfig
shmif0 down of the peer before the test, so the test won't be
interfered by the messages.
2015-08-17 07:47:21 +00:00
ozaki-r e266b2d0dd Improve test stability
- Take a diff between packet dumps and use it for packet checking
  - it's resistant against packet reorder
- Seep 2 sec to make sure a NS message is sent
- Disable tentative state check for now
  - it's too ephemeral to check robustly
2015-08-17 07:06:58 +00:00
ozaki-r 14dcf9ff75 Reflect a fix on rt_refcnt
The test was adjusted based on wrong behavior.
2015-08-13 10:22:21 +00:00
ozaki-r 3e44abc850 Fix head and cleanup definitions for cache_expiration tests 2015-08-10 09:32:01 +00:00
ozaki-r 94e6f63fa9 Fix cleanup 2015-08-10 09:31:13 +00:00
ozaki-r 17bcc6ffef Check MAC address of ARP caches additionally 2015-08-07 05:32:12 +00:00
ozaki-r 7284c53128 Use rump.ping6 instead of ping6 with rumphijack(3) 2015-08-07 00:50:12 +00:00
ozaki-r 1f31785d33 Add basic tests for IPv6 Address Lifetime Expiry 2015-08-06 08:23:14 +00:00
ozaki-r 2179c9b76f Check the output of ndp -d strictly 2015-08-04 07:43:25 +00:00
ozaki-r 2f55a7d3ed Add tests for NDP 2015-08-03 09:54:20 +00:00
ozaki-r 25711fd317 Return 0 explicitly to avoid unexpected failures when $DEBUG=false 2015-07-31 10:16:36 +00:00
ozaki-r 6abe86b9fd Add tests of cache overwriting 2015-07-31 02:39:12 +00:00
ozaki-r bf665d2f84 Add tests for temp option 2015-07-31 02:35:09 +00:00
ozaki-r 5d6a850962 Remove remaining debug code 2015-07-31 00:23:54 +00:00
ozaki-r 5e8861aca5 Fix cleanup; halt all running rump_servers 2015-07-31 00:22:44 +00:00
ozaki-r 7a175f4063 Add tests for arp -a option 2015-07-30 08:41:18 +00:00
ozaki-r 3fd3aaa9ea Fix TESTS_SH assignment 2015-07-30 05:43:42 +00:00
ozaki-r 0f1639b8cc Add tests for IPv4 DAD 2015-07-30 02:52:53 +00:00
ozaki-r b4bfe1a892 Add tests for GARP 2015-07-30 02:51:05 +00:00
ozaki-r 8fd2ad14ac Add tests for ARP
Forgot to commit this. Should fix the build.
2015-07-29 12:05:10 +00:00
ozaki-r d4516589be Add tests for ARP 2015-07-29 06:10:09 +00:00
ozaki-r 7dd2779b49 Reflect a fix for bridge
Due to PR 48104, some tests of ping/ping6 were failed but the tests now
should be successful. So reverse atf_check.

Bonus: the fix for PR 48104 also fixes another uknown failure.
2015-07-23 11:05:34 +00:00
ozaki-r 5fbfc68952 Add tests of interface creation/destruction 2015-07-01 08:33:31 +00:00
matt b9e582e94c Don't build tests that depend on RUMP if BSD_MK_COMPAT_FILE is defined. 2015-06-22 00:05:23 +00:00
ozaki-r 95529645e4 Add missing cleanup 2015-06-10 03:29:37 +00:00
ozaki-r 978c966b4f Add tests for bridge members with an IP address
The tests include checks for PR#48104 which is not fixed yet.

Note that one test unexpectedly fails for some reason
(unrelated to PR#48104). We have to fix it somehow.
2015-06-09 00:39:53 +00:00
ozaki-r 11f40b0843 Check if tests surely failed with TTL exceeded 2015-06-02 07:32:50 +00:00
ozaki-r b420830aee Improve stability of route_flags_xresolve tests
Insert delays to give route monitor a chance to complete its work.
2015-06-01 01:36:30 +00:00
ozaki-r 8192754c00 Disable test_ping_failure which is conducted before setup_bridge
It randomly fails (esp, often on a slow or loaded machine) due to
PR kern/49219, so disable it for now.

I forgot why I didn't include the test when I committed the test
at first and wrongly added it at v1.4.
2015-05-29 10:08:52 +00:00
ozaki-r 3030e5a0ee Bump timeout for ping and ping6 to 5 sec
Hope the wait is enough for slow machines, e.g., qemu/anita/i386.
2015-05-29 02:06:46 +00:00
ozaki-r 2f78640437 Get rid of unnecessary shebang
It will be added when it's built.
2015-05-29 01:54:56 +00:00
ozaki-r 5fd5216cf8 Make the test stable under load or when running on a slow machine
Let sender and receiver synchronize explicitly via a socketpair
and don't rely on sleep.
2015-05-28 10:19:17 +00:00
ozaki-r 92795cceb3 Detail an error message 2015-05-28 08:32:53 +00:00
kefren 8b3cf81fd9 Add another simple MPLS test but using this time a mixed IPv4/IPv6 LSR
This test encapsulates IPv6 packets, pass them over MPLS to an IPv6
neighbour that switches label and passes forward to an IPv4
neighbour. There, the IPv6 packet is decapsulated and passed to IPv6 stack
For the return path we test both implicit and explicit null encapsulations
2015-05-27 18:13:14 +00:00
kefren 60a33c5ba8 Add a simple IPv6/MPLS test 2015-05-27 16:40:33 +00:00
ozaki-r 148b6434a5 Add timeout to ping6 positive tests too
For when they fail.
2015-05-27 01:12:04 +00:00
ozaki-r 8a6480b1eb Run mcast tests on rump kernels
The tests on anita qemus failed due to that the host network environment
didn't meet the tests.

The change makes the tests independent from host environments
and the tests will pass on any environments including anita qemus.

Discussed on tech-kern and tech-net.
2015-05-26 00:42:07 +00:00
ozaki-r 8255dae8f6 Fix specifying an interface for IPV6_JOIN_GROUP
Using always an interface of index=1 is not good idea; it varies
depending on runtime environments. We can use index=0 instead,
which allows the kernel to pick an appropriate interface for mcast.
2015-05-25 07:17:17 +00:00
christos f845fc8e2c MKRUMP=no fixes (Robert Swindells) 2015-05-20 17:39:04 +00:00