summaryrefslogtreecommitdiffstats
path: root/tools/regression
Commit message (Collapse)AuthorAgeFilesLines
* Use src.opts.mk in preference to bsd.own.mk except where we need stuffimp2014-05-061-1/+1
| | | | from the latter.
* Note that the bug was fixed, and when.des2014-04-261-1/+1
|
* Remove NO_CTF, exccept as an undocumented compatibilityimp2014-04-251-4/+3
| | | | | | option. Convert all other uses to MK_CTF=no. Set MK_CTF=no rather than the indirect WITHOUT_CDDL in filemon regression. It is expected that NO_CTF will be removed in FreeBSD 12 entirely.
* libc/stdio: Fail fdopen() on an execute-only fd.jilles2014-04-215-1/+237
| | | | | | | | | An execute-only fd (opened with O_EXEC) allows neither read() nor write() and is therefore incompatible with all stdio modes. Therefore, the [EINVAL] error applies. Also adjust the similar check in freopen() with a NULL path, even though this checks an fd which is already from a FILE.
* libc: Add fopen() test to regression Makefile.jilles2014-04-211-3/+11
|
* NO_MAN= has been deprecated in favor of MAN= for some time, go aheadimp2014-04-13106-106/+106
| | | | | | and finish the job. ncurses is now the only Makefile in the tree that uses it since it wasn't a simple mechanical change, and will be addressed in a future commit.
* errx prepends the program name to the message; don't do it by hand.jmmv2014-03-191-1/+1
|
* Make the priv test program exit with non-zero if any failures are detected.jmmv2014-03-191-8/+33
| | | | And, mind you, this already returns a failure :-/
* Migrate tools/regression/usr.bin/pkill to the new tests layout.jmmv2014-03-1928-1009/+0
| | | | | | Interestingly, the pkill tool lives in bin, not usr.bin. Haven't bothered to check if this is because the tool moved or because the tests were originally added in the wrong place.
* Migrate tools/regression/usr.bin/make/ to the new tests layout.jmmv2014-03-19272-2225/+0
| | | | | | | | | | | | | Note that these tests are for fmake, not bmake, and thus they are not installed nor run when bmake is selected (the default). Yes, I have wasted a *ton* of time on moving tests for no real reason other than ensuring they are not left behind. But maybe, just maybe, it was not work in vain: the majority of these tests also work with bmake and the few that don't may point at broken stuff. For example, the tests for the "archive" feature do not work with bmake, but bmake's manpage and source tree seem to imply that they should. So... to be investigated later; need to poke sjg@.
* Update most userspace consumers of capability.h to use capsicum.h instead.rwatson2014-03-1614-14/+14
| | | | | | | auditdistd is not updated as I will make the change upstream and then do a vendor import sometime in the next week or two. MFC after: 3 weeks
* Migrate most of tools/regression/usr.bin/ to the new tests layout.jmmv2014-03-16530-27284/+0
| | | | | | | | | | | | | | | I'm starting with the easy cases. The leftovers need to be looked at a bit more closely. Note that this change _does_ modify the code of the old tests. This is required in order to allow the code to locate the data files in the source directory instead of the current directory, because Kyua automatically changes the latter to a temporary directory. Also note that at least one test is known to be broken here. Actually, the test is not really broken: it's marked as a TODO but unfortunately Kyua's TAP parser currently does not understand that. Will have to be fixed separately.
* Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.jmmv2014-03-1655-4199/+0
| | | | | | | | | | | This change was originally going to only migrate the usr.sbin tests but, as it turns out, the usr.sbin/sa/ tests require files from usr.bin/lastcomm/ so it's better to just also migrate the latter at the same time. The other usr.bin tests will be moved separately. To make these tests work within the test suite, some of them have required changes to prevent modifying the source directory and instead just rely on the current directory for file manipulation.
* Change etcupdate tests to return 1 on test failures.jmmv2014-03-167-21/+135
| | | | | This is a prerequisite for hooking these tests into the test suite. And, fortunately, all tests seem to pass!
* Migrate tools/regression/sbin/ to the new tests layout.jmmv2014-03-169-1118/+0
| | | | | Pretty much all that this change does is shuffles the code around and hooks it into the regular build. The code of the old tests has not changed.
* Remove AppleTalk support.glebius2014-03-143-172/+2
| | | | | | | | | | AppleTalk was a network transport protocol for Apple Macintosh devices in 80s and then 90s. Starting with Mac OS X in 2000 the AppleTalk was a legacy protocol and primary networking protocol is TCP/IP. The last Mac OS X release to support AppleTalk happened in 2009. The same year routing equipment vendors (namely Cisco) end their support. Thus, AppleTalk won't be supported in FreeBSD 11.0-RELEASE.
* Remove IPX support.glebius2014-03-149-599/+0
| | | | | | | | | | | IPX was a network transport protocol in Novell's NetWare network operating system from late 80s and then 90s. The NetWare itself switched to TCP/IP as default transport in 1998. Later, in this century the Novell Open Enterprise Server became successor of Novell NetWare. The last release that claimed to still support IPX was OES 2 in 2007. Routing equipment vendors (e.g. Cisco) discontinued support for IPX in 2011. Thus, IPX won't be supported in FreeBSD 11.0-RELEASE.
* Remove broken tests for eui64_line.jmmv2014-03-123-92/+1
| | | | | | This function is not public and brooks (initial committer adding the code) suggests the deletion of the tests (which I don't know if they work) instead of changing the visibility of the function.
* Make the strerror tests work without libtap.jmmv2014-03-122-34/+42
| | | | | | Just replace the simple calls to the library with ad-hoc code. We should later rewrite these with the ATF libraries anyway, which are part of the base system.
* Turn a test precondition into a skip in the mdconfig tests.jmmv2014-03-121-2/+2
| | | | | | Tests that cannot be run because a precondition is not met should be marked as skipped, not failed. Do this for the tests in mdconfig that first check if the caller user is root.
* Fix sa tests.jmmv2014-03-1213-195/+202
| | | | | | Small divergences in the output padding made some sa tests fail. Just trim all whitespace from the outputs and the golden files so comparisons are less fragile and the tests pass again.
* Only run the make tests when make is fmake.jmmv2014-03-121-1/+20
| | | | | | Because bmake is the default make being built, many of the tests here fail due to differences between the two. Just skip the tests for now when using fmake.
* Fix lastcomm tests under amd64.jmmv2014-03-123-56/+58
| | | | | Force the use of TZ=UTC and adjust data files accordingly. I have no means to verify that the data files for the other architectures are valid.
* Fix ncal tests so that they run cleanly with prove.jmmv2014-03-091-4/+2
| | | | Basically just make the test plan match what is actually being run.
* Fix pkill tests so that they run cleanly with prove.jmmv2014-03-091-4/+6
| | | | | | | | | This fixes a pgrep test that assumed that PID 2 was named g_event. This does not seem to be the case any longer (and I don't know if it ever was in all possible setups). Change this test to use the idle loop instead and determine its expected PID using ps without assuming any specific ID.
* Fix yacc tests so that they run cleanly with prove.jmmv2014-03-0916-260/+204
| | | | | | | | | | | | First, change the driver to run the installed yacc instead of the one from /usr/obj (which might not be there), just as we (intend to) do with all other tests. Second, regenerate the expected output files from scratch. Based on visual inspection, the differences seem OK. But this highlights that the tests in here are too fragile and, possibly, useless: we should be testing the behavior of the generated program, not the literal output. Something to be addressed later.
* Fix sed tests so that they run cleanly with prove.jmmv2014-03-091-1/+1
|
* Fix printf tests so that they run cleanly with prove.jmmv2014-03-091-1/+1
|
* Fix m4 tests so that they run cleanly with prove.jmmv2014-03-093-3/+4
|
* Use CAP_EVENT instead of the deprecated CAP_POLL_EVENT.brueffer2014-02-061-2/+2
| | | | | | | PR: 185382 (based on) Submitted by: Loganaden Velvindron Reviewed by: pjd MFC after: 1 week
* Add test case for kern/181741. Right now test fails.glebius2014-02-061-25/+79
| | | | | PR: 181741 Sponsored by: Nginx, Inc.
* Replace the old unix_seqpacket and unix_seqpacket_exercise tests, whichasomers2014-01-234-593/+0
| | | | | | | | | | | were a little broken and not automatable, with unix_seqpacket_test. It's coverage is a superset of the old tests and it uses ATF. It includes test cases for bugs kern/185813 and kern/185812. PR: kern/185812 PR: kern/185813 Sponsored by: Spectra Logic MFC after: 2 weeks
* MFp4 @1189766:pjd2014-01-045-12/+18
| | | | | | | | - Compile the tests with .t suffix, so prove can use them directly. - The CHECKX() macro should increment ntest just like the CHECK() macro. - For consistency remove # from the pwd.t output. Submitted by: Mariusz Zaborski <oshogbo@FreeBSD.org>
* Migrate tools/regression/bin/ tests to the new layout.jmmv2013-12-11411-6857/+0
| | | | | | | | | | | | | | | | | | | | This change is a proof of concept on how to easily integrate existing tests from the tools/regression/ hierarchy into the /usr/tests/ test suite and on how to adapt them to the new layout for src. To achieve these goals, this change: - Moves tests from tools/regression/bin/<tool>/ to bin/<tool>/tests/. - Renames the previous regress.sh files to legacy_test.sh. - Adds Makefiles to build and install the tests and all their supporting data files into /usr/tests/bin/. - Plugs the legacy_test test programs into the test suite using the new TAP backend for Kyua (appearing in 0.8) so that the code of the test programs does not have to change. - Registers the new directories in the BSD.test.dist mtree file. Reviewed by: freebsd-testing Approved by: rpaulo (mentor)
* - Refresh /etc/localtime after each update using tzsetup -r.jhb2013-12-093-1/+244
| | | | | | - Regenerate /var/db/services.db when /etc/services changes. MFC after: 1 week
* Add regression test for recently added 'i' flag in r259132.eadler2013-12-092-0/+5
| | | | PR: standards/184641
* Regression tests for existing Casper services.pjd2013-12-025-0/+5211
| | | | Sponsored by: The FreeBSD Foundation
* sh: Make <&0 disable the </dev/null implicit in a background command.jilles2013-11-242-0/+5
| | | | | | Although <&0 does nothing, it is a redirection affecting standard input and should therefore disable the </dev/null redirection implicit in a background command.
* sh: Add more tests for the </dev/null implicit in a background command.jilles2013-11-243-0/+15
|
* sh: Add tests for the </dev/null implicit in a background command.jilles2013-11-223-0/+9
|
* fsx: add an option to randomly call msync(MS_INVALIDATE)avg2013-11-191-13/+81
| | | | | | | | | | | | | | | | This call should be a sufficiently close approximation of what happens when a filesystem is unmounted and remounted. To be more specific, it should test that the data that was in the page cache is the same data that ends up on a stable storage or in a filesystem's internal cache, if any. This will catch the cases where a page with modified data is marked as a clean page for whatever reason. While there, make logging of the special events (open+close before plus invalidation now) more generic and slightly better than the previous hack. MFC after: 10 days
* fsx: new option to disable msync(MS_SYNC) after each write via mmaped regionavg2013-11-191-4/+11
| | | | | | | | | This option should be useful for testing if a filesystem uses the unified buffer / page cache. Or, if filesystem's emulation of the unified cache works as expected. This should be the case for e.g. ZFS. MFC after: 1 week
* Fix a couple of issues with -F:jhb2013-11-151-0/+48
| | | | | | | | | - Fix ALWAYS_INSTALL to take precedence over the FreeBSD ID checks. In particular, always install a file where the only change was the FreeBSD ID even if -F is specified. - Fix the -F option in the case that the only upstream change is a change in the FreeBSD ID and the local file is removed. - Add tests for these two cases.
* Regression tests for the libnv library.pjd2013-11-127-0/+1441
| | | | Sponsored by: The FreeBSD Foundation
* Add a pre-world mode of updating similar to the -p option that can bejhb2013-11-121-0/+238
| | | | | | | | | | passed to mergemaster. In this mode, only changes to /etc/master.passwd and /etc/group are merged to /etc. In addition, it uses a temporary tree to stage these changes rather than overwriting the existing 'current' and 'previous' trees so that a full update can be run after a normal installworld has completed. MFC after: 2 weeks
* Add an -s option that specifies a path to an alternate etcupdate.sh scriptjhb2013-11-125-35/+55
| | | | | to test. This allows a non-installed version of the script to be tested more easily.
* sh: Properly quote alias output from command -v.jilles2013-11-101-0/+7
| | | | | An alias should be printed by command -v as a command line; therefore, make the alias definition suitable for re-input to the shell.
* sh: Add a test case for would-be assignments that are not due to quoting.jilles2013-11-101-0/+19
|
* Make lpathconf(2) support optional to make it compile again on Linux.pjd2013-10-312-1/+9
| | | | Submitted by: Hashem Nasarat @riseup.net
* sh: Allow trapping SIGINT/SIGQUIT after ignore because of '&'.jilles2013-10-302-0/+18
| | | | | | | | | | | | | | If job control is not enabled, background jobs started with ... & ignore SIGINT and SIGQUIT so that they are not affected by such signals that are intended for the foreground job. However, this should not prevent reassigning a different action for these signals (as if the shell invocation inherited these signal actions from its parent). Austin group issue #751 Example: { trap - INT; exec sleep 10; } & wait A Ctrl+C should terminate the sleep command.
OpenPOWER on IntegriCloud