summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* env: Fix crash when -S string is not empty but no operand follows.jilles2015-03-082-0/+34
| | | | | | | | | | | | split_spaces() set argc in main() incorrectly, which caused trouble for getopt(). Examples: env -S '\c' env -S -i PR: 197769 MFC after: 1 week
* env: Fix testsuite for additional variables set by sh.jilles2015-03-071-3/+3
| | | | MFC after: 1 week
* 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@.
* 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-1617-318/+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.
* 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
|
* Add regression test for recently added 'i' flag in r259132.eadler2013-12-092-0/+5
| | | | PR: standards/184641
* Add a few xargs tests related to -0, -n and quoting.stefanf2013-05-0411-1/+71
|
* - Correct mispellings of the word occurrencegabor2013-04-172-2/+2
| | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail)
* Add an additional regression tests for other cases to ensure these do not ↵eadler2012-12-181-0/+3
| | | | get fixed by accident.
* POSIX requires that non-existent or null arguments be treated as if aeadler2012-12-182-1/+3
| | | | | | | | | | | | | zero argument were supplied. Add a regression test to catch this case as well. PR: bin/174521 Submitted by: Daniel Shahaf <danielsh@elego.de> (pr) Submitted by: Mark Johnston <markjdb@gmail.com> (initial patch) Reviewed by: jilles Approved by: cperciva (implicit) MFC after: 3 weeks
* Remove the "funny targets" make check. We no longer need embedded :: targetsobrien2012-07-058-0/+32
| | | | | | | | | to build FreeBSD (they are used in Perl man pages). We never needed embedded "!" in targets that I can find. We got this from OpenBSD and I cannot find any other make that supports such things -- contrary to their commit message claim: "This behaviour is also consistent with other versions of make.".
* Provide a mechanism to not clear out the work and output dirs whenobrien2012-06-201-2/+4
| | | | developing tests.
* Add a test for the :tl & :tu modifiers.obrien2012-06-1211-0/+35
|
* Add regression test for '-V' command line option (requires r236346).obrien2012-05-318-0/+35
|
* make it easier to test newly-built make.obrien2012-05-302-0/+9
|
* Import byacc from invisible island, it brings us lots of compatibilities withbapt2012-05-2134-0/+15099
| | | | | | | | | | | | | bison, keeping full compatibility with our previous yacc implementation. Also bring the ability to create reentrant parser This fix bin/140309 [1] PR: bin/140309 [1] Submitted by: Philippe Pepiot <ksh@philpep.org> [1] Approved by: des (mentor) MFC after: 1 month
* Import m4 regression tests from OpenBSDbapt2012-04-3047-43/+1076
| | | | | Obtained from: OpenBSD Approved by: des (mentor)
* Include target names in diagnostic output.fjoe2012-02-121-60/+60
| | | | Submitted by: Garrett Cooper
* These tests check whether the compiler evaluates floating-pointdas2012-01-203-0/+293
| | | | | | | | | | | | | | expressions properly. Some of the tests depend on the compiler implementing C99's FENV_ACCESS pragma, and only commercial compilers do; those tests are currently skipped. If any of the enabled tests fail, then odds are the libm regression tests will fail also. This should make it easier to diagnose reported problems on platforms I don't have. Currently, gcc passes all the tests that don't depend on FENV_ACCESS on amd64 and sparc64. Clang fails a few on amd64 (see clang bug 11406). Both gcc and clang fare poorly on i386, which has well-known issues.
* Spelling fixes for tools/uqs2011-12-305-5/+5
| | | | Add some $FreeBSD$ tags so svn will allow the commit.
* Fix last-minute typo.fjoe2011-12-151-1/+1
|
* Add job error output test.fjoe2011-12-155-0/+146
| | | | | make(1) with openpty() currently fails this test: there's a race condition and error output is sometimes lost.
* Add three execution tests for make(1):fjoe2011-11-3015-0/+102
| | | | | | | | | | | | | - plus: execute "+command" when run with -jX -n - ellipsis: ellipsis ("...") from variable - empty: empty command (from variable) Currently make(1) fails all three tests: - plus: segmentation fault due to incorrect command list handling - ellipsis: works in compat mode but fails in job (-jX) mode - empty: - compat mode: prints error message - job mode: works but prints empty string
* printf: Allow multibyte characters for '<char> form, avoid negative codes.jilles2011-05-283-1/+5
| | | | | | | | | | | | | Examples: LC_ALL=en_US.UTF-8 printf '%d\n' $(printf \'\\303\\244) LC_ALL=en_US.ISO8859-1 printf '%d\n' $(printf \'\\344) Both of these should print 228. Like some other shells, incomplete or invalid multibyte characters yield the value of the first byte without a warning. Note that there is no general way to go back from the character code to the character.
* sed: Add test for r217133 (-i race).jilles2011-01-082-0/+84
| | | | | PR: bin/153261 MFC after: 2 weeks
* printf: Test that the "--" option terminator works.jilles2010-12-082-1/+3
|
* tr: Fix '[=]=]' equivalence class.jilles2010-09-293-1/+5
| | | | | | | | | | | A closing bracket immediately after '[=' should not be treated as special. Different from the submitted patch, a string ending with '[=' does not cause access beyond the terminating '\0'. PR: bin/150384 Submitted by: Richard Lowe MFC after: 2 weeks
* o The typo was intended as it stated in the comment. Revert last.maxim2010-06-041-1/+1
| | | | Spotted by: dfr
* o Fix typo: .uudef -> .undef.maxim2010-06-041-1/+1
| | | | | PR: misc/147462 Submitted by: Erik Cederstrand
* Fix stuttering sequences and reverse rangesbrian2010-06-024-1/+44
| | | | | PR: 123635 Submitted by: Ulrich Spörlein, uqs at spoerlein dot net
* Replace -b with -C and -B (as proposed by Alexander).edwin2010-03-211-34/+37
| | | | | Add -3, -A and -B to the usage. Update regression test for the new parameters.
* Create regression tests for ncal:edwin2010-03-1493-1/+1332
| | | | | | | | | | | - A couple of tests to check if the layout of the generated calenders is correct. - A couple of tests to see if impossible combinations for -3, -A, -m, -y etc properly abort. - A couple of test to confirm that the order of -A, -B, -3 etc give the right number of months.
* - Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.jh2010-03-058-1/+40
| | | | | | | | | | snprintf(3) doesn't set errno in the tested cases. - If the same argument reference (for example %1) was specified more than once, the command didn't necessarily fit to the final command buffer. Fix this using a dynamic sbuf buffer. Add a few regression tests for the case. PR: bin/95079 No objections: freebsd-hackers
* Add missing newline in last line of file.uqs2010-02-161-1/+1
| | | | | Uncovered via: fromcvs vs. svn Approved by: ed (co-mentor)
* - Implement -q option for pgrep(1).pjd2010-02-121-0/+38
| | | | - Add regression test to test -q option.
* Add ability to search up the directory hierarchy for the system directory.obrien2010-01-0419-0/+88
| | | | | | | Do by specifying ".../" with '-m' or MAKESYSPATH (new) environment variable. Reviewed by: <sjg@NetBSD.org> Obtained from: NetBSD (+ embellishment by me, sent back to NetBSD)
* Fix formatting.obrien2010-01-042-2/+2
|
* There are actually 129 tests here.obrien2010-01-041-1/+1
|
* Catch up with UNIX98-style PTY's.obrien2010-01-042-2/+8
|
* 'prove -r' isn't as smart as grog thought.obrien2010-01-041-9/+1
|
* You need to be root to run this test.obrien2010-01-041-0/+5
|
OpenPOWER on IntegriCloud