Commit Graph

230 Commits

Author SHA1 Message Date
ozaki-r 458add7bf4 Add tests for XRESOLVE flag 2015-05-20 01:30:42 +00:00
ozaki-r 4203465ea1 Handle child's exit status precisely 2015-05-19 04:14:04 +00:00
ozaki-r f3005e6ac8 Use EXIT_FAILURE instead of 1 2015-05-19 03:19:27 +00:00
ozaki-r 2754f5946a Add tests for route flags 2015-05-18 06:27:04 +00:00
ozaki-r d43069ef3e KNF
Tweaks of whitespaces and tabs.
2015-05-18 00:55:09 +00:00
ozaki-r bdf24ea091 Save errno for errx 2015-05-17 15:48:57 +00:00
ozaki-r 9fbb6a243a Enable IPv6 negative tests
As ping6 timeout feature (-X option) is added, we can do negative
tests without wasting time.

1 sec delay is added after network setup to avoid false positives.
2015-05-16 14:29:37 +00:00
martin 07b432ed22 Before pinging, wait for addresses to come out of tentative state 2015-05-13 12:01:24 +00:00
ozaki-r a8d41e5542 Add basic tests for IP forwarding 2015-05-13 10:04:44 +00:00
martin 39780a1ced Cosmetics: hide an error message from sysctl (machdep.cpu_brand is not
available on most architectures)
2015-05-04 10:57:17 +00:00
martin b6df10e8a5 Bump timeout for a poll() call slightly, so the test has a chance to work
on slow machines.
2015-02-27 13:15:49 +00:00
martin 88c71edd30 Bump timeout to 20 seconds for slower machines. 2015-02-26 13:06:10 +00:00
martin 270998d298 Do not use artificial low timeouts - slow machines might be still paging
in all the rump environment. Bump timeout from 4 seconds to 20 (my shark
needs ~9).
2015-02-26 13:03:21 +00:00
alnsn e3ced4adff Add two more bpfjit_jmp_jeq_x_noinit_XX tests. 2015-02-14 22:34:33 +00:00
alnsn 73969c29cc Improve bpfjit_jmp_jeq_x test. 2015-02-14 20:25:08 +00:00
alnsn 86cd3d4d52 BPF_JMP+BPF_JEQ+BPF_X doesn't compare X with k, it compares X with A.
Fix it in the bpfjit_jmp_jeq_x_noinit_ax test.
2015-02-14 19:55:05 +00:00
alnsn 009978ddb6 Avoid testing for zero rv in bpfjit_jmp_x_uninitialised. Unitialised
X isn't a problem for bpf_validate().
2015-02-14 17:28:19 +00:00
alnsn 35489d090f Add bpfjit_jmp_x_uninitialised test.
Found by http://lcamtuf.coredump.cx/afl/.
2015-02-14 16:48:30 +00:00
alnsn 542a94c076 Add bpfilternegjmp test. 2015-02-11 23:39:07 +00:00
alnsn c57239cf9d Add bpfjit_jmp_ja_overflow test. 2015-02-11 23:29:48 +00:00
alnsn fe765d6008 Add bpfjit_ret_k, bpfjit_bad_ret_k, bpfjit_jmp_ja_invalid tests. 2015-02-11 22:37:55 +00:00
alnsn 8f06b72616 Add bpfilterbadjmp and bpfilterbadret tests. 2015-02-11 19:37:37 +00:00
ozaki-r ac80d197aa Add tests for brconfig maxaddr 2015-01-08 06:33:11 +00:00
ozaki-r fdb884f32b Add some tests for rtable operations of if_bridge 2015-01-07 08:55:01 +00:00
joerg 707bb266b1 panic is printflike. 2015-01-06 21:36:38 +00:00
christos c8990bd93c need immediate assignment 2015-01-06 16:08:06 +00:00
christos d2c586bb77 simplify. 2015-01-06 16:04:58 +00:00
martin 87706a3247 Invoke the helper program from the test installation directory (instead
of the current/temporary).
Properly register failure.
2015-01-06 15:13:16 +00:00
christos 74e389883f fix helper program installation 2015-01-06 03:41:42 +00:00
christos 0900ce68ab fix directory 2015-01-06 03:20:24 +00:00
christos 2568fa481f assym.h moved. 2015-01-06 02:49:21 +00:00
christos 003f1382bf Form the sources in a better way. 2015-01-05 23:48:46 +00:00
christos 82329ad88d Too hard to cross-build mkassym.c correctly, use a standard assym.h 2015-01-05 23:46:49 +00:00
christos 6d5379c9ea add a dummy mkassym
look in more places for cpu_in_cksum
2015-01-05 23:25:10 +00:00
christos fca19cad2d Port the in_cksum test from regress. 2015-01-05 22:38:36 +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
alnsn 215bab86a5 Add BPF_MOD tests. Plus one tiny change. 2014-11-20 11:36:13 +00:00
alnsn b61069b6e9 Add BPF_XOR tests. 2014-11-19 22:56:35 +00:00
christos 0e3249fea3 fix typo, use different address 2014-10-27 21:28:58 +00:00
christos c57b8469e4 - deal with MacOS/X not having clock_*()
- change multicast address
- set the interface
XXX: Now the ipv6 code works on MacOS/X but does not work for us still.
2014-10-26 18:33:43 +00:00
martin cb0ae2ce0b timespec.tv_nsec is long, so use %ld instead of %jd as printf format. 2014-10-13 06:57:08 +00:00
christos 793de535ef typo 2014-10-13 04:57:11 +00:00
christos 35954f72d1 Oops need to bind, also make the message more interesting and check that
it arrives correctly.
2014-10-13 04:56:26 +00:00
christos 76ec08071f Explain what works, what does not and why.
Provide compatible code so that it compiles on Linux and MacOS/X with -DTEST.
We should check more OS's and see if they are broken too.
2014-10-12 19:49:01 +00:00
christos 0de04e721e now we support the v6 ioctls for mapped addresses too. 2014-10-12 18:56:57 +00:00
christos 3242dd1614 Explain a bit more what's going on with the multicast setsockopts. 2014-10-12 14:53:46 +00:00
christos dce98dc1a7 Add the simple unconnected tests too. 2014-10-12 13:48:25 +00:00
christos dec90ca99d add a multicast test (what to do with v6?) 2014-10-11 23:04:42 +00:00
ozaki-r 5937935b47 Add net/if_bridge test 2014-09-18 15:13:27 +00:00
gson 09436ed198 The t_ldp_regen test frequently fails under qemu, but reliably passes
on real hardware.  The failures are hardly surprising given that qemu
timing is off by a is off by a factor of two as reported in
PR kern/43997.  Disabling the test on qemu for now; it should be
re-enabled once 43997 has been fixed to see if it still fails then.
2014-09-01 06:38:35 +00:00
alnsn 2b2f4a0ebe Add bpfjit_cop_copx and bpfjit_copx_cop tests. 2014-07-13 21:35:33 +00:00
alnsn 674ca560ce Fix copy/paste error: s/rump_unschedule/rump_schedule/. 2014-07-09 15:56:12 +00:00
alnsn 467461f7c4 Add t_cop and t_extmem kernel bpfjit tests to the build. 2014-07-09 13:50:48 +00:00
alnsn f80c8c7700 Add t_cop and t_extmem kernel bpfjit tests. 2014-07-09 13:49:49 +00:00
alnsn 0240ba3c8b Add t_mbuf tests to the build. 2014-07-08 21:47:21 +00:00
alnsn f2b7757e98 Move bpfjit mbuf tests to t_mbuf.c. 2014-07-08 21:45:55 +00:00
alnsn e1f7888b18 Clone libbpfjit tests to check kernel implementation of bpfjit.
Old content of t_bpfjit.c will be moved to t_mbuf.c shortly.
Change packet buffers to unsigned char[] type.
2014-07-08 21:44:26 +00:00
alnsn 6cabebfe85 Add bpf/t_mbuf test to the build. 2014-07-07 19:41:22 +00:00
alnsn c129c2d504 Add rump tests for checking how bpf_validate() works with mbuf chains. 2014-07-07 19:40:28 +00:00
alnsn a8013faa06 Add some helper functions for bpf/bpfjit rump tests. 2014-07-07 19:34:32 +00:00
alnsn 66c2729de9 Fix test directory. 2014-06-30 21:34:22 +00:00
alnsn d32d6008b1 Add bpfjit kernel tests for loading from mbuf chain. 2014-06-30 21:30:51 +00:00
alnsn 65b8637bc0 Zap trailing spaces. 2014-06-24 11:32:36 +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
riastradh 6cb10275d0 Merge riastradh-drm2 to HEAD. 2014-03-18 18:20:35 +00:00
pooka 7e5de72e53 ldpd wants inet6 2014-01-03 13:14:50 +00:00
alnsn 202116b0b6 Add bpfilterbadmem, bpfilternoinitA and bpfilternoinitX tests. 2013-12-18 22:39:16 +00:00
christos fa1e6d6374 CID 1107543, 230676, 1107543, 976795, 230676, 976795, 1125885, etc. 2013-11-13 21:41:23 +00:00
kefren f7c77f192b Retire t_ldp_static. It's too heavy weighted for releng's anita and mostly
unsuited for atf.
2013-11-12 12:22:33 +00:00
christos f59006a79a write fail as a proper macro 2013-10-20 17:36:36 +00:00
christos d56fcfc956 fix unused variable warnings 2013-10-19 17:45:00 +00:00
christos 11fdff5426 CID 1107548: resource leak 2013-10-17 12:53:28 +00:00
christos 73a690f0f7 CID 1107550: resource leak 2013-10-17 12:52:09 +00:00
christos 0703489a8c more tests 2013-10-12 17:26:32 +00:00
christos ee07b6a10b new test to check if non-blocking sockets are reset to blocking on the
accepted file descriptor.
2013-10-12 15:29:16 +00:00
christos 4b23c29b39 make this work on linux 2013-10-10 16:01:55 +00:00
christos dc8626c22e Improve tests so that they check the sockaddr's returned by accept(2) and
getsockname(2). Test for accept success after closed client socket.
2013-10-08 18:05:31 +00:00
kefren 6ca68e7c50 Disable ip forwarding at penultimate hop
Raise the ping wait time a little bit in order for changes to propagate
over ldp
2013-07-27 14:39:24 +00:00
kefren 6ea87284a2 don't expect failure anymore 2013-07-27 14:36:39 +00:00
kefren 2276864e5a add a couple of tests for dynamic MPLS routes generation using ldpd 2013-07-25 14:28:29 +00:00
kefren f9bf6846c4 Use . for shm bus path and rump_server url instead of /tmp
Exit after first reply in mpls_fw
2013-07-23 12:41:01 +00:00
martin 4ddc14a004 Move all shm files from /tmp into . so ATF can automatically do cleanup
for us. Ok: kefren
2013-07-23 12:14:49 +00:00
kefren 96e1b99106 Add a test for RFC4182 2013-07-23 11:26:33 +00:00
kefren ff6f2bd928 Add a couple of basic IP/MPLS forwarding tests 2013-07-19 04:00:40 +00:00
pooka 528e47fc44 Remove makevirtif(), it's not likely to be used in testing.
(and this file should go away anyway in favor of using ifconfig etc.)
2013-07-03 19:13:33 +00:00
nakayama f7f884f97e Enable tests which does not require rump if MKRUMP=no.
Pointed out by christos on source-changes-d.
2013-07-03 14:01:29 +00:00
christos 9e823bd0f7 add a pktinfo test 2013-06-27 20:01:24 +00:00
pooka f467be3ba1 Rump kernel hypercalls are not necessary here. 2013-03-01 13:49:42 +00:00
joerg 94bcefa490 Check for RUMP programs before using them. 2013-02-19 21:08:24 +00:00
christos 353430cc63 fix messages. 2013-01-06 02:22:50 +00:00
christos 436fdc82bd new udp test 2013-01-06 00:35:22 +00:00
martin c7ba7e0c07 Try to make this test gracefully fail when npftest is not available 2012-09-18 08:28:15 +00:00
joerg 69d9b49983 Workaround infrastructure bug where additional rpath flags are added for
/lib, resulting in linker warnings for the compat case.
2012-09-13 21:13:34 +00:00
martin 001611b06f ATF wrapping of the npf tests 2012-09-12 14:06:31 +00:00
adam af67173111 Fix building with MKCOMPAT=no 2012-09-10 11:29:06 +00:00
alnsn b8a85c6989 Replace usleep(500000) with a synchronization over a pipe. 2012-09-04 22:31:58 +00:00
alnsn db95257927 Fix test timeout. 2012-09-03 21:27:14 +00:00
pgoyette af44ca577f There's a known-but-unresolved race condition in here somewhere that
causes these tests to sometimes deadlock.  Since they run really fast
when they are successful, it doesn't do any good to wait for the
default 5-minute timeout.  So explicitly set timeout for these tests
to just 30 seconds.
2012-08-31 04:02:21 +00:00
alnsn d52ebd2ff5 Close pipes on exit. 2012-08-16 20:16:06 +00:00