Commit Graph

32 Commits

Author SHA1 Message Date
christos
0dc8cda9a3 Centralize the base rump libraries into a variable used by all the other
Makefiles so that we can make changes to it centrally as needed and have
less mess. Fixes the sun2 build that needs rumpvfs after librump after
the latest changes.
2020-03-01 18:08:12 +00:00
ozaki-r
bce11250f5 tests: check if ifconfig (ioctl) works after a failure of ifconfig destroy
This is a test for PR kern/54434.
2019-08-15 04:21:33 +00:00
ozaki-r
24bc91d9f1 Add ATF test for a description.
From t-kusaba@IIJ
2019-07-04 02:46:40 +00:00
kre
9c62ddd5c1 Deal with fallout from the addition of
KERN_PROC_CWD in sysctl(3)
That is kern.proc.$$.KERN_PROC_CWD (I think - not that it matters here)

The effect is that -lrump now requires -lrumpvfs

This set of changes fixes (I believe) regular dynamic builds,
more might be required for static builds (will be verified soon).
2019-06-01 06:59:17 +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
bb335adb69 Add a test case of ifconfig <if_index>
I don't know if <if_index> is expected to be accepted instead of
an interface name. Please update the test case if the behavior is
just a bug and ifconfig gets fixed.
2017-03-16 09:43:56 +00:00
ozaki-r
edc02e28f0 Make the test more stable 2017-02-17 00:51:52 +00:00
ozaki-r
38a4600920 Add tests for ifconfig up/down 2017-02-14 08:43:06 +00:00
ozaki-r
ac86ae25b9 Protect if_clone data with if_clone_mtx
To this end, carpattach needs to be delayed from RUMP_COMPONENT_NET to
RUMP_COMPONENT_NET_IF on rump_server. Otherwise mutex_enter via carpattach
for if_clone_mtx is called before mutex_init for it in ifinit1.
2017-01-20 08:35:33 +00:00
kre
1445630bb9 Delete inappropriate \n from atd_tc_expect_fail() message 2016-11-12 15:12:59 +00:00
pgoyette
eedda22892 Add PR number to the expected-fail message 2016-11-07 21:46:21 +00:00
pgoyette
4276333739 Mark this test as "expected failure" since rump doesn't include the
COMPAT_43 code.
2016-11-07 02:59:29 +00:00
kre
1b0c0c88db Don't expect ping to complain about sending to a local address
assigned to an interface that's down - instead it just attempts
to send, and the interface never responds (as it would if it were
a remote address).
2016-10-01 22:15:04 +00:00
roy
d1f35c1abb Adjust tests to new output. Wait for DaD to finish before pinging. 2016-10-01 15:35:22 +00:00
christos
5642b8b65f Ignore case in deprecated/anycast 2016-09-14 16:18:31 +00:00
kre
113943956a + -lrumpdev 2016-08-10 22:30:02 +00:00
pgoyette
95d2314211 This one needs librump dev (and librumpvfs) too 2016-08-08 14:54:27 +00:00
ozaki-r
f91dfc925e Make a bunch of test names self-descriptive 2016-06-21 05:04:16 +00:00
ozaki-r
743ec2bd92 Don't depend on the order of interfaces
Instead add tests of querying varying number of interfaces
and tests of checking if removing interfaces is reflected.
2016-04-28 01:57:45 +00:00
ozaki-r
b7e089f63a Don't depend on the order of interfaces
The kernel guarantees nothing about it.
2016-04-28 01:20:31 +00:00
ozaki-r
09973b35ac Separate nexthop caches from the routing table
By this change, nexthop caches (IP-MAC address pair) are not stored
in the routing table anymore. Instead nexthop caches are stored in
each network interface; we already have lltable/llentry data structure
for this purpose. This change also obsoletes the concept of cloning/cloned
routes. Cloned routes no longer exist while cloning routes still exist
with renamed to connected routes.

Noticeable changes are:
- Nexthop caches aren't listed in route show/netstat -r
  - sysctl(NET_RT_DUMP) doesn't return them
  - If RTF_LLDATA is specified, it returns nexthop caches
- Several definitions of routing flags and messages are removed
  - RTF_CLONING, RTF_XRESOLVE, RTF_LLINFO, RTF_CLONED and RTM_RESOLVE
- RTF_CONNECTED is added
  - It has the same value of RTF_CLONING for backward compatibility
- route's -xresolve, -[no]cloned and -llinfo options are removed
  - -[no]cloning remains because it seems there are users
  - -[no]connected is introduced and recommended
    to be used instead of -[no]cloning
- route show/netstat -r drops some flags
  - 'L' and 'c' are not seen anymore
  - 'C' now indicates a connected route
- Gateway value of a route of an interface address is now not
  a L2 address but "link#N" like a connected (cloning) route
- Proxy ARP: "arp -s ... pub" doesn't create a route

You can know details of behavior changes by seeing diffs under tests/.

Proposed on tech-net and tech-kern:
  http://mail-index.netbsd.org/tech-net/2016/03/11/msg005701.html
2016-04-04 07:37:07 +00:00
ozaki-r
2640ddb67b Add tests deleting active/inactive links 2016-02-29 08:13:41 +00:00
ozaki-r
911c3d16a0 Set timeout of ping to reduce execution time 2015-11-20 05:05:40 +00:00
ozaki-r
3eb9896334 Improve test stability
"deprecated" flag may not be reflected immediately. We need to add some
delay before checking the result.
2015-11-06 02:54:37 +00:00
ozaki-r
a6c882931d Add tests for ifconfig parameters
From s-yamaguchi@IIJ
2015-11-05 02:57:36 +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
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
5fbfc68952 Add tests of interface creation/destruction 2015-07-01 08:33:31 +00:00
ozaki-r
ba54e088ff Fix LDADD.t_compat
This unbreaks the build.
2014-12-08 07:34:31 +00:00
ozaki-r
b5aa5c8930 Add basic tests for ifconf (SIOCGIFCONF) 2014-12-08 04:23:03 +00:00
he
f693807fd8 Fix static linking for the tests: -lrump is also used by -lrumpuser,
so we also need -lrump after -lrumpuser.  Fixes build for sun2.
2014-06-10 04:28:39 +00:00
pooka
7119e5be14 convert program in PR kern/44054 to an atf test case 2010-11-07 19:53:42 +00:00