Commit Graph

543 Commits

Author SHA1 Message Date
pgoyette
e2d4656741 Since atf_check doesn't deal with a pipeline, modify the tests to pipe
the output of the echo commands to atf_check itself.  This fixes the
three new ssp failures.

Note that the raw, strcpy, vsprintf, and vsnprintf tests still fail, but
they failed in the old 'regress' style, too.
2010-12-27 05:27:34 +00:00
pgoyette
575e75ffe4 Migrate the ssp tests from regress to atf.
Of the 17 tests, 4 fail in both the regress and atf style.  3 additional
tests fails in atf that did NOT fail in regress: gets, fgets, and read.
I will investigate why, and update when I can, but it is still useful to
get these tests into the new format where they can be exercised.
2010-12-27 02:04:18 +00:00
pgoyette
3ca5a7db69 Migrate the last of the libc/string/ tests from regress to atf, and
re-enable building of t_popcount
2010-12-26 13:35:54 +00:00
pgoyette
a583a258c9 Make running this test conditional on the setting of atf configuration
variable "run_popcount".  This is a really long-running test (it takes
several hours on a qemu-emulation on a 2.8GHz AMD Pheno II) but could
still be useful if you want to run it manually, with the command

	atf-run -v run_popcount=YES
2010-12-26 13:29:47 +00:00
pgoyette
3f7804c696 Re-enable printing of MD data, with appropriate casts. 2010-12-26 12:32:28 +00:00
pgoyette
324775a6d1 For now, don't try to print out machine-dependant stuff. When I figure
out what the right format strings are, I'll re-enable it.
2010-12-26 03:25:07 +00:00
pgoyette
f03970fd11 Migrate J.T.Conklin's public-domain str* tests from regress to atf.
While here, do some clean-up and knf.
2010-12-25 21:10:24 +00:00
pgoyette
b1084f5b5e Correctly added the conditional part, but now need to remove the original
unconditional part.
2010-12-25 01:25:37 +00:00
pgoyette
dcfc8e943b Don't include the siginfo tests unless we actually have siginfo ability! 2010-12-25 01:22:02 +00:00
pgoyette
de2970929a Move the siginfo tests from regress to atf. While here, add a new test
for PR/43655.

XXX The sigchild_dump test currently fails when execute under atf-run.
XXX It does not fail when executed directly from the shell, so there's
XXX something in atf that prevents the child process from dumping.
2010-12-25 01:04:26 +00:00
skrll
f1d73a2c94 Add support for DF_1_BIND_NOW, DF_1_NODELETE and DF_1_NOOPEN marked
objects, and the RTLD_NODELETE and RTLD_NOLOAD flags to dlopen(3).

Mark libpthread as DF_1_NOOPEN and use it to test the functionality.

Somewhat taken from FreeBSD.

Fixes PR 42029.

OK from christos and joerg.
2010-12-24 12:41:42 +00:00
pgoyette
546ea3ce2c Migrate a couple more tests to aft 2010-12-23 15:27:44 +00:00
pgoyette
bf59258ffb Fix the $NetBSD$ tag (missed the trailing $) 2010-12-23 13:34:46 +00:00
pgoyette
95456adcc6 Migrate a couple more tests from the old regress structure to atf 2010-12-22 23:45:44 +00:00
pgoyette
ad537a3656 Migrate a few more tests from old regress style to atf 2010-12-21 14:23:42 +00:00
christos
1f98304948 We don't expect tests to fail anymore. 2010-12-21 00:24:14 +00:00
pgoyette
e02d91d677 Move the only regress/lib/libm test to the new atf format 2010-12-20 23:47:23 +00:00
njoly
198de556b0 Add testcase from PR/44255, that exercize parsedate(3) with sample
strings taken from the manpage.
2010-12-20 16:23:01 +00:00
pgoyette
2fbd285235 Add a rump-based set of tests for sysmon_envsys(8) + powerd(8) + swsensor(4) 2010-12-20 04:56:18 +00:00
christos
4b1b5b119c remove NOGCCERROR, WARNS?=5 2010-12-18 15:02:06 +00:00
pooka
94e5abaaf2 Disable test cases which have not worked in ages instead of skipping them. 2010-12-18 13:06:51 +00:00
pooka
603f53f8f8 fix the kflag_limits test case and enable it 2010-12-18 12:47:21 +00:00
pooka
7e8af32729 test case for PR kern/44251 2010-12-18 09:44:41 +00:00
pooka
eafb3db912 Check that raid1 and raid5 can serve data after a component has
been nuked.
2010-12-18 09:26:57 +00:00
pooka
5a30a389c0 atf-check => atf_check 2010-12-18 08:35:53 +00:00
pooka
c48a04bffd Fix test to use atf_check. My development machine still had
/usr/bin/atf-check installed ....
2010-12-18 08:34:56 +00:00
joerg
16062ee68b Don't force debug build. 2010-12-18 04:31:41 +00:00
joerg
fac9a6645d Don't force debug build. XXX Why does this have NOGCCERROR=1 set? 2010-12-18 04:31:22 +00:00
joerg
d154c9348e Don't force debug build. 2010-12-18 04:27:17 +00:00
pooka
afe2ac389d Add an isolated test case for PR lib/44248. 2010-12-17 19:12:30 +00:00
pooka
34fb222dd0 fix editing artifact 2010-12-17 14:51:27 +00:00
riz
2b22938736 Reduce the number of tests run automatically, as they apparently go
quite slowly when run under qemu.

Also, change the switch variable from "RESIZE_FFS_BIG_TESTS" to
"RESIZE_FFS_ALL_TESTS", and only check if it's set or not.
2010-12-16 17:50:13 +00:00
riz
b83a35485a Factor out more common code. No functional changes intended. 2010-12-16 17:16:07 +00:00
pooka
b9274e267e fix post-move testsdir. duh 2010-12-15 21:33:10 +00:00
pooka
a918a74628 "A few seconds later" I realized the kernel directory is dev/raidframe,
not dev/raid, so reflect this in the test dir.  Affects location
for test of PR kern/44239.
2010-12-15 20:40:17 +00:00
pooka
b3286c98db Add first raidframe tests. This is the test for the kernel fault
described in PR kern/44239
2010-12-15 20:37:52 +00:00
pooka
9c1382e3c1 Use proper cleanup.
XXX: the atf sh "compiler" should check for errors.
2010-12-15 19:14:37 +00:00
haad
84aab3c9ee Hook traceroute test case to build. it was added to lists so unbreak build now. 2010-12-15 10:36:49 +00:00
pooka
26aa758c5c Add simple tests for traceroute. The test bootstraps a three-node
network with one router in the middle and checks traceroute from
one endpoint to another with both UDP and ICMP.

(i guess these test networking at least as much as traceroute
itself, but then again that's not a bad thing)
2010-12-15 00:13:52 +00:00
pooka
1d9fa0a3f8 Use a larger array to avoid overflow.
from Piotr Meyer
2010-12-14 20:09:43 +00:00
pooka
91ed45ab3f use ping -n, since technically we don't have dns 2010-12-14 19:08:22 +00:00
pooka
4427b5725d Retire the old C helper in h_img2cgd since we can now write everything
with a shellscript in terms of rump.cgdconfig and dd.
2010-12-14 17:48:31 +00:00
pooka
756d5b62e3 Add another version of the simple ping test, this time written as a
shell script and using rump_server, rump.ifconfig and rump.ping.

XXX: uses rump_allserver for now, though, since i noticed a problem
where the rump kernel syscall vector does not get updated for
dlopen()'d libraries (and hence if you dlopen librumpnet.so, socket()
still gives ENOSYS).  Me be fixink it later.
2010-12-14 11:03:17 +00:00
skrll
be2356ad6f Convert a couple of old regress tests to ATF.
Remove the regress/usr.bin/rtld/dlopen/dlopen.c test as well as it's
covered by existing ATF test(s).
2010-12-14 05:57:31 +00:00
pooka
73b0b48907 Retire h_simpleserver and use rump_server instead. 2010-12-13 13:39:42 +00:00
riz
b7560d46dc PR bin/44209 is now fixed, expect failure -> expect success. 2010-12-12 22:50:42 +00:00
joerg
31b95753a0 Simplify 2010-12-12 18:21:21 +00:00
pooka
d59692159a h_reboot has been superceded by rump.halt 2010-12-12 12:53:35 +00:00
pooka
b15e66a6c2 use rump.halt in cleanup 2010-12-12 12:51:19 +00:00
pooka
522d9feb4f use rump.halt 2010-12-12 12:49:59 +00:00