Commit Graph

2592 Commits

Author SHA1 Message Date
christos
ad2951bb03 make it work on linux, be pickier about errors, and correct variable type. 2016-03-04 18:52:01 +00:00
ozaki-r
8ce75dc03a Improve tests of proxy arp
The tests make it clear how it behaves though, I don't know if the current
behavior is what it should be.
2016-03-04 04:18:44 +00:00
ozaki-r
be7deda7eb Add tests for tap(4) 2016-03-04 02:44:45 +00:00
christos
06f9bef68e Improved handling of TEST_SH so that it is possible to define it
to the name of a shell, plus options that shell needs to run it
in the correct mode to be tested: eg: TEST_SH='bash -o posix'
Also finished the implementation of tests of "set -n" now that
the NetBSD shell supports that as it should. (from kre)
2016-03-01 12:39:35 +00:00
christos
1843eb8cb0 more tests from kre 2016-02-29 23:52:53 +00:00
ozaki-r
520486c340 Add tests on activating a new MAC address 2016-02-29 09:35:16 +00:00
ozaki-r
2640ddb67b Add tests deleting active/inactive links 2016-02-29 08:13:41 +00:00
joerg
dda31211fa When building the atomic op test on SPARC64 with Clang, skip the
sub-32bit tests for now. Clang currently doesn't synthesize a CAS
replacement nor does it create a libcall.
2016-02-27 18:50:39 +00:00
nat
449e51467a Fix soft volume audio distortion. OK jmcneil@.
Update atf pad expected output.
2016-02-26 13:08:28 +00:00
ozaki-r
f6036fa401 Add basic tests for Proxy ARP
The tests don't much enough and need more realitic tests, for example
tests for a setup using ppp found in PR 44032.
2016-02-25 03:23:15 +00:00
christos
22e9b677fe uncomment clean up 2016-02-24 14:42:50 +00:00
christos
b189a00530 Test improvements from kre 2016-02-24 14:42:06 +00:00
christos
c1ce7cf3ee Add t_option, from kre (with minor edits from me) 2016-02-23 16:20:42 +00:00
christos
dd10ee88d0 Add new redirection test, from kre 2016-02-23 14:21:37 +00:00
christos
7b91d0e80f PR/43469 has been fixed 2016-02-22 20:02:29 +00:00
christos
449b5d003c Add new test 2016-02-22 19:52:03 +00:00
christos
dd7e4e3700 undo accidental commit 2016-02-19 13:49:01 +00:00
christos
64d8e9d299 Add a test for PR/50827 2016-02-19 13:48:28 +00:00
christos
cfb3849454 This needs _KERNTYPES on some platforms. 2016-02-15 14:59:38 +00:00
ozaki-r
423847a240 Add tests for a gateway not on the local subnet
The tests are derived from the example at
http://www.netbsd.org/docs/network/#nonsubnetgateway ,
which has come up in PR 50717.
2016-01-29 04:15:46 +00:00
martin
c25f345cfe The test for PR 50608 works now, remove the expected failure. 2016-01-28 10:10:09 +00:00
pooka
11f923c4b5 include <stdbool.h> for bool 2016-01-25 12:21:42 +00:00
pooka
d35b86acad Don't include <rump/rumpvnode_if.h> from rump.h. It's not needed
unless you're doing something special, but requires register_t.
Adjust the few places which actually need rumpvnode_if.h.
2016-01-25 11:45:57 +00:00
gson
e9eb083c3b Add some tests of hypot() and hypotf() 2016-01-24 20:26:47 +00:00
christos
bdf1a7c5d1 t_lwp_create needs kernel types. 2016-01-24 15:11:08 +00:00
christos
ffeb8dbf4e Define _KERNTYPES for things that need it. 2016-01-23 21:22:45 +00:00
christos
55808dd15a XXX: use unused variables. 2016-01-23 21:18:27 +00:00
christos
abcb9cb972 bridge with the higher Makefile.inc 2016-01-23 18:54:15 +00:00
gson
79350377d6 Don't use a filename with an embedded newline in the create_many test
case.  Instead, add a separate test case "create_nonalphanum" for
filenames containing non-alphanumeric characters.  The bug of
PR kern/50608 now causes a failure in create_nonalphanum rather than
create_many.
2016-01-14 08:58:02 +00:00
pooka
8b742e7a22 create_many: remove PR kern/50607 xfail
Seems to have been fixed by ext2fs_lookup.c 1.79
(thanks, riastradh)
2016-01-13 12:05:49 +00:00
jakllsch
c38078a218 locate_item() doesn't need to have a flags argument, as the flags
are also in the hid item data structure.
2016-01-09 14:31:19 +00:00
jakllsch
03e19f6583 fix test program for hid item checks 2016-01-08 17:34:57 +00:00
jakllsch
ecbab7a38a rework build of t_hid to be more reliable, while working around ATF cruddyness 2016-01-08 17:27:48 +00:00
jakllsch
f9e98a931a Don't crash when the device's HID Report Descriptor Pops from an empty stack. 2016-01-07 16:10:49 +00:00
jakllsch
4887406fba Add tests for HID Parser Pop-on-empty-stack bug. 2016-01-07 15:58:23 +00:00
christos
2acf28e2e5 Unbreak the sun2 build: Don't use program-specific LDADD options because
those come after the general LDADD options and break static linking.
2016-01-06 15:34:54 +00:00
jakllsch
2ba22c9356 Add some tests for the kernel HID parser. 2016-01-05 17:22:38 +00:00
jakllsch
43fe984867 Move libusbhid tests' Report Descriptors and Report Data to seperate file,
so future tests of the kernel HID functions can use them too.
2016-01-04 22:07:16 +00:00
jakllsch
cf34dae03a reorganize constant test data 2016-01-03 15:26:39 +00:00
jakllsch
25812d50a0 Move MY*_ATF_CHECK_EQ debugging helper macros to before all functions. 2016-01-03 15:16:10 +00:00
pooka
419929ef27 create_many:
* add xfails for ext2 and udf
  * don't try to create a subdirectory for sysvbfs
2016-01-02 12:11:30 +00:00
jakllsch
aaf9a4516d Teach hid_parse_usage_in_page() how to understand hex literals, in
addition to the usual table lookup.
2016-01-02 01:24:44 +00:00
jakllsch
f5863ab3d2 Fix round-trip of hid_usage_in_page(hid_parse_usage_in_page()) when
the usage is a catch-all format string.

This should allow usbhidctl(1) to understand an item argument of
"Button:Button_65535".
2016-01-02 01:04:15 +00:00
jakllsch
f8f5861113 Rework unsigned range test cases.
If the USB HID 1.11 spec is interperted to the letter, there's no such
thing as a unsigned Logical/Physical Minimum/Maximum.  When the (signed)
Minimum is greater than the (signed) Maximum, it's a possibility that
the device is attempting to present unsigned report data.
2016-01-01 23:46:04 +00:00
jakllsch
c8b0c3452c Fix hid_get_data() for negative or 32-bit report data. 2016-01-01 22:59:12 +00:00
jakllsch
bc1f6fc421 value debugging for the Logical/Physical range checks 2016-01-01 22:47:34 +00:00
jakllsch
3a26fec827 tests for libusbhid (many of which fail) 2016-01-01 21:38:53 +00:00
pooka
10c4a4e077 use a shorter filename template in previous (for v7fs) 2016-01-01 15:18:39 +00:00
pooka
596d7c2283 Add a test which creates many directory entries. 2016-01-01 15:13:57 +00:00
dholland
bb7bd59051 Fix REL_CHECK error output; it had "expected" and "obtained" swapped.
While here, improve the general legibility of the printout. Not
actually relevant to PR 50574, but anyone looking at that should be
aware of this change.
2015-12-31 10:56:13 +00:00
dholland
6970e57cc6 When evaluated on a Sunday, "next Sunday" means 7 days in the future,
not 14. When evaluated on a Monday, it apparently means 13 days in the
future. There's not exactly a spec for parsedate.y, so conform to the
implementation.

PR 50574.

XXX: to me at least this is an odd notion of "next Sunday", but whatever...
2015-12-31 10:18:00 +00:00
dholland
9775679d6b Fix the "Tuesday midnight" test to match what parsedate.y does; in
particular it doesn't add a week if evaluating that on Wednesday.

Whether that's right is an open question, but there's not exactly a
spec for parsedate.y and there's no point having the test fail one
day in seven.

PR 50574.
2015-12-31 10:10:15 +00:00
christos
585297dcfb more robust ulimit test that works with most variants of bourne shells. 2015-12-30 22:24:44 +00:00
pgoyette
8125537222 Since we're expecting to autoload modules here, make sure that the
kernel (or rump-server) has autoload enabled.

This should finish fixing PR bin/49153

XXX The test still does not run successfully, due to another bug that
XXX was recently introduced.  This second bug is being worked on.
2015-12-29 07:17:19 +00:00
pgoyette
7e70dfdc14 Remove a left-over debugging variable. Fix the build. 2015-12-27 08:21:44 +00:00
pgoyette
bc9ef90a7d I was right - the output from gpt(8) did grow an extra space character!
Fix the test to expect it.  Test now passes on my local test bed.
2015-12-27 06:53:48 +00:00
pgoyette
738ca054ba When MODULAR kernels grew a MODULAR_DEFAULT_AUTOLOAD option, (in rev 1.98
of src/sys/kern/kern_module.c), the default was "off" for all kernels
including rump kernels.  While many (most?) kernel config files were
updated to include the new option, rump kernels weren't so lucky.  Thus,
rump kernels still had autoload disabled.

This commit uses rump_sysctl to change the module_autoload_on value to
true (ie, enabled) before trying to test if autoloading actually works.

For now, I am _not_ changing the default for all rump kernels.  I'll
leave that for another day, after all appropriate discussion has occurred.
2015-12-27 06:36:36 +00:00
pgoyette
9328be7df7 Revert - tested using wrong test case. :( 2015-12-27 01:50:39 +00:00
pgoyette
a161b63780 Update test - the attributes listed by the show command now have a space
in the comma-separated list.

This allows the test to once again pass.
2015-12-27 01:46:24 +00:00
pgoyette
5e02285975 Remove the "expected failure" from test n12, and change it not to use
the "-v" command line option to ipf_test.  The -v option causes it to
display additional information, some of which is not fixed (looks like
an internal data structure address).

One fewer on the expected-failures list.  :)
2015-12-26 08:01:58 +00:00
pgoyette
0bfb85b87f For the skipped ARC4 test, don't bother trying to run the test clean-up
code.  It runs rump.halt which returns an error status (since rump was
never started in the first place), and this causes atf to complain about
the cleanup routine's return status, logging the test as a failure!
2015-12-26 07:10:03 +00:00
ozaki-r
a9e6d8e441 Add some tests for sysctl net.inet.ip.*
- net.inet.ip.redirect
- net.inet.ip.directed-broadcast (and net.inet.icmp.bmcastecho)
- net.inet.ip.ttl

From suzu-ken@IIJ (with tweaks by me)
2015-12-25 08:22:28 +00:00
christos
63d557bad4 Use the original nfsd. 2015-12-23 18:42:23 +00:00
christos
b9bb57fc06 ggr, make debug static. I hate that the copy of this and the original
source has diverged so much!
2015-12-23 18:10:39 +00:00
christos
f0a61ce65f add get_net.c 2015-12-23 18:10:10 +00:00
christos
c31efcafe9 add __TEST_FENV 2015-12-22 14:27:51 +00:00
christos
7303bfa77d Add __TEST_FENV 2015-12-22 14:25:58 +00:00
christos
b113b9aa9c put have fenv stuff elsewhere. 2015-12-22 14:20:59 +00:00
christos
25e32ca777 Put have fenv elsewhere. 2015-12-22 14:18:35 +00:00
martin
5e88931036 Sync list of fenv enabled architectures again (PR 48633), this time for mips
addition.
2015-12-22 08:26:16 +00:00
martin
b66d985812 While PR 48633 is not properly fixed, keep the additional lists of
fenv-enabled architectures in sync.
2015-12-21 12:11:23 +00:00
knakahara
50f2e9d4c0 Refactor. No functional change. 2015-12-16 03:24:29 +00:00
ozaki-r
561514840d Add more tests for IPv6 link-local addresses
The tests include a test for PR 50549.
2015-12-15 01:33:08 +00:00
christos
8861b14877 Kill one more REL_DEBUG, from kre 2015-12-08 12:41:28 +00:00
knakahara
5ff0670ba7 add gif test for set_tunnel/delete_tunnel and recursion calls check 2015-12-08 05:56:18 +00:00
christos
da8d5d2ae7 there is no REL_DEBUG 2015-12-07 20:57:39 +00:00
christos
432cd4b9b7 new tests from kre 2015-12-07 20:52:46 +00:00
knakahara
674e3a0ad1 remove extra shebang and fix a potentially bug 2015-12-07 09:59:26 +00:00
christos
1580202168 Add test for type, set, unset 2015-12-06 00:38:30 +00:00
christos
ce40c86d4c more variables 2015-12-05 18:53:29 +00:00
christos
a1fb78d5a0 file shuffling 2015-12-05 18:52:11 +00:00
christos
ac8087a5ab Add a migration test 2015-12-05 18:45:35 +00:00
christos
cf8c4fce6c Add biosboot test 2015-12-05 14:23:41 +00:00
christos
6c37bffdde Oops + 2015-12-04 20:16:23 +00:00
christos
2d4dd9611a remove extra 2015-12-04 18:53:35 +00:00
christos
11ff782d8f Add gpt tests 2015-12-04 17:19:33 +00:00
christos
20fc3c3567 Add remove partition data file 2015-12-04 17:15:39 +00:00
christos
a50907f634 Add label change tests 2015-12-04 17:15:21 +00:00
christos
1d371e5267 Add resize data files 2015-12-04 16:59:57 +00:00
christos
2663264cc4 Add resize test. 2015-12-04 16:59:39 +00:00
christos
b109d7f5a9 Make the test work 2015-12-04 01:42:47 +00:00
christos
0a47105b38 checking multiple things does not work! atf-bug! 2015-12-04 01:21:12 +00:00
christos
893a65c28f I wrote that 2015-12-04 01:06:43 +00:00
christos
c68ecf1926 Add some gpt tests 2015-12-04 01:06:17 +00:00
ozaki-r
88c8544847 Make checks strict
rump.arp should fail with File exists (EEXIST).
2015-12-02 06:05:14 +00:00
christos
7b88a1a0ea fix double negation 2015-11-27 13:59:40 +00:00
ozaki-r
bb7b9eed2e Add fastforward6 test 2015-11-24 02:37:33 +00:00
ozaki-r
911c3d16a0 Set timeout of ping to reduce execution time 2015-11-20 05:05:40 +00:00
ozaki-r
216db65823 Set timeout of ping6 to reduce execution time 2015-11-19 10:45:09 +00:00
christos
2bfc5fd1e4 Add more exhaustive db tests that include higher bucket sizes 2015-11-18 18:35:35 +00:00
ozaki-r
b86b70a179 Don't assign unused IP address
It sometimes creates an unexpected NDP cache.
2015-11-18 04:13:01 +00:00
ozaki-r
d54fcc93ce Add tests for GC of neighbor caches 2015-11-17 06:44:13 +00:00
ozaki-r
3b8b75374e Add tests of IPv6 link local address
From s-yamaguchi@IIJ
2015-11-12 05:05:24 +00:00
ozaki-r
9b59cf7aa1 Fix up the header
Remove unnecessary shebang and add missing keyword expansion,
copyright and license.
2015-11-12 05:01:28 +00:00
ozaki-r
3637fb5284 Add tests for RA
From s-yamaguchi@IIJ (with some tweaks by me)
2015-11-11 07:52:57 +00:00
christos
e700dcfbcd CID 1338516: Handle svc_run() returning. 2015-11-10 18:13:01 +00:00
christos
d0b55fb388 Use the regular mountd, and include the rpcbind stuff here. 2015-11-08 21:05:39 +00:00
christos
871846c79a Disable debugging. 2015-11-08 19:40:06 +00:00
christos
5c8014d159 Add more rpc tests. XXX: Need rpcbind running. 2015-11-08 19:38:04 +00:00
christos
8ca6a9a5c9 Use the regular rpcbind source now. 2015-11-08 16:38:56 +00:00
christos
72e6585119 Don't use POLL again. 2015-11-08 16:38:25 +00:00
christos
4172446a74 Remove dup copy of rpcbind sources that had grown stale. 2015-11-08 16:37:57 +00:00
christos
eda86e9458 make this work with the new fdset stuff. 2015-11-08 02:45:16 +00:00
nros
2e84975f5e Fix code style errors pointed out by christos during the review of the
aligned_alloc test that also applies to the posix_memalign test.
Fix code style errors that I forgot to fix in the aligned_alloc test.
2015-11-07 17:35:31 +00:00
nros
b16a5c9dec Add the C11 function aligned_alloc to libc. 2015-11-07 16:21:42 +00:00
christos
b2d56358fc make this compile for tests. 2015-11-06 15:30:47 +00:00
christos
6e1ae27534 Add a test for the raw transports which are currently busted. 2015-11-06 15:23:23 +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
martin
f5cad80b32 Ooops, pilot error - revert last 2015-11-05 10:43:42 +00:00
martin
2f1599bef8 Fix expected output to match -current NetBSD reality (port "255" is not
mapped to "reserved")
2015-11-05 10:35:58 +00:00
ozaki-r
a6c882931d Add tests for ifconfig parameters
From s-yamaguchi@IIJ
2015-11-05 02:57:36 +00:00
knakahara
9875a0c6a0 add basic if_gif tests to ATF. 2015-11-05 00:02:59 +00:00
christos
4e4836ff83 merge more the tests 2015-10-31 02:25:11 +00:00
christos
3112bb3e23 Account for J, fix %Z 2015-10-31 02:13:41 +00:00
christos
a45df95937 tests for %Z 2015-10-30 18:25:49 +00:00
ginsbach
862d86e79e ISO 8601 and RFC 3339 specify that an offset can be up to 23:59 and
not 12:00 east/west.  Just proves that one shouldn't use other
implementations as a canonical reference.  Thanks to all who pointed
this out.
2015-10-30 03:18:10 +00:00
ginsbach
2699ccd14e Additional tests for timezone offsets. 2015-10-30 01:51:15 +00:00
christos
05ea9f0e38 Add tests for %z 2015-10-29 17:48:20 +00:00
christos
9ca3dc7d85 remove debugging test 2015-10-18 18:27:25 +00:00
christos
3075d03889 add code to dump the mbuf contents 2015-10-18 18:26:55 +00:00
christos
40c99df3a6 Add an anonymous struct test 2015-10-14 16:32:55 +00:00
ozaki-r
44c97db88f Add tests for assigining/deleting IP addresses
The tests help to find defects related to creation/deletion
of routes/llentries and assigning/deleting of IP addresses.
2015-10-07 05:24:41 +00:00
uebayasi
8b6b28e153 Catch up with the current, generated Makefile format. 2015-10-04 07:59:47 +00:00
ozaki-r
3f3bb7d2ee Add delay to improve stability of test 2015-09-30 06:08:36 +00:00
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
christos
200d779b75 make error more informative. 2015-09-12 15:21:33 +00:00
martin
4c5334afe3 Add two test cases that should cover PR 50228. 2015-09-11 09:25:52 +00:00
dholland
814554f5b1 Clear the XFAIL from PR 45391. 2015-09-08 05:24:27 +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
dholland
796a8727a3 Remove rubbish. 2015-08-30 18:27:26 +00:00
dholland
aeaad94cd5 Fix glaringly wrong indent. 2015-08-29 19:19:43 +00:00
martin
c36c18165c Mark the ssh test as expected failure pointing to PR lib/50174 2015-08-26 09:19:20 +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