aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* Remove residual blank line at start of MakefileWarner Losh2024-07-152-2/+0
| | | | | | | This is a residual of the $FreeBSD$ removal. MFC After: 3 days (though I'll just run the command on the branches) Sponsored by: Netflix
* Remove $FreeBSD$: one-line sh patternWarner Losh2023-08-165-5/+0
| | | | Remove /^\s*#[#!]?\s*\$FreeBSD\$.*$\n/
* Remove $FreeBSD$: one-line .c patternWarner Losh2023-08-161-2/+0
| | | | Remove /^[\s*]*__FBSDID\("\$FreeBSD\$"\);?\s*\n/
* env: Fix crash when -S string is not empty but no operand follows.Jilles Tjoelker2015-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 Notes: svn path=/head/; revision=279779
* env: Fix testsuite for additional variables set by sh.Jilles Tjoelker2015-03-071-3/+3
| | | | | | | MFC after: 1 week Notes: svn path=/head/; revision=279722
* Migrate tools/regression/usr.bin/pkill to the new tests layout.Julio Merino2014-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. Notes: svn path=/head/; revision=263351
* Migrate tools/regression/usr.bin/make/ to the new tests layout.Julio Merino2014-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@. Notes: svn path=/head/; revision=263346
* Migrate most of tools/regression/usr.bin/ to the new tests layout.Julio Merino2014-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. Notes: svn path=/head/; revision=263227
* Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout.Julio Merino2014-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. Notes: svn path=/head/; revision=263226
* Only run the make tests when make is fmake.Julio Merino2014-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. Notes: svn path=/head/; revision=263082
* Fix lastcomm tests under amd64.Julio Merino2014-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. Notes: svn path=/head/; revision=263081
* Fix ncal tests so that they run cleanly with prove.Julio Merino2014-03-091-4/+2
| | | | | | | Basically just make the test plan match what is actually being run. Notes: svn path=/head/; revision=262962
* Fix pkill tests so that they run cleanly with prove.Julio Merino2014-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. Notes: svn path=/head/; revision=262961
* Fix yacc tests so that they run cleanly with prove.Julio Merino2014-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. Notes: svn path=/head/; revision=262960
* Fix sed tests so that they run cleanly with prove.Julio Merino2014-03-091-1/+1
| | | | Notes: svn path=/head/; revision=262959
* Fix printf tests so that they run cleanly with prove.Julio Merino2014-03-091-1/+1
| | | | Notes: svn path=/head/; revision=262954
* Fix m4 tests so that they run cleanly with prove.Julio Merino2014-03-093-3/+4
| | | | Notes: svn path=/head/; revision=262953
* Add regression test for recently added 'i' flag in r259132.Eitan Adler2013-12-092-0/+5
| | | | | | | PR: standards/184641 Notes: svn path=/head/; revision=259133
* Add a few xargs tests related to -0, -n and quoting.Stefan Farfeleder2013-05-0411-1/+71
| | | | Notes: svn path=/head/; revision=250242
* - Correct mispellings of the word occurrenceGabor Kovesdan2013-04-172-2/+2
| | | | | | | Submitted by: Christoph Mallon <christoph.mallon@gmx.de> (via private mail) Notes: svn path=/head/; revision=249582
* Add an additional regression tests for other cases to ensure these do not ↵Eitan Adler2012-12-181-0/+3
| | | | | | | get fixed by accident. Notes: svn path=/head/; revision=244409
* POSIX requires that non-existent or null arguments be treated as if aEitan Adler2012-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 Notes: svn path=/head/; revision=244407
* Remove the "funny targets" make check. We no longer need embedded :: targetsDavid E. O'Brien2012-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.". Notes: svn path=/head/; revision=238143
* Provide a mechanism to not clear out the work and output dirs whenDavid E. O'Brien2012-06-201-2/+4
| | | | | | | developing tests. Notes: svn path=/head/; revision=237344
* Add a test for the :tl & :tu modifiers.David E. O'Brien2012-06-1211-0/+35
| | | | Notes: svn path=/head/; revision=236977
* Add regression test for '-V' command line option (requires r236346).David E. O'Brien2012-05-318-0/+35
| | | | Notes: svn path=/head/; revision=236347
* make it easier to test newly-built make.David E. O'Brien2012-05-302-0/+9
| | | | Notes: svn path=/head/; revision=236339
* Import byacc from invisible island, it brings us lots of compatibilities withBaptiste Daroussin2012-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 Notes: svn path=/head/; revision=235723
* Import m4 regression tests from OpenBSDBaptiste Daroussin2012-04-3047-43/+1076
| | | | | | | | Obtained from: OpenBSD Approved by: des (mentor) Notes: svn path=/head/; revision=234852
* Include target names in diagnostic output.Max Khon2012-02-121-60/+60
| | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=231544
* These tests check whether the compiler evaluates floating-pointDavid Schultz2012-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. Notes: svn path=/head/; revision=230368
* Spelling fixes for tools/Ulrich Spörlein2011-12-305-5/+5
| | | | | | | Add some $FreeBSD$ tags so svn will allow the commit. Notes: svn path=/head/; revision=228975
* Fix last-minute typo.Max Khon2011-12-151-1/+1
| | | | Notes: svn path=/head/; revision=228524
* Add job error output test.Max Khon2011-12-155-0/+146
| | | | | | | | make(1) with openpty() currently fails this test: there's a race condition and error output is sometimes lost. Notes: svn path=/head/; revision=228523
* Add three execution tests for make(1):Max Khon2011-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 Notes: svn path=/head/; revision=228149
* printf: Allow multibyte characters for '<char> form, avoid negative codes.Jilles Tjoelker2011-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. Notes: svn path=/head/; revision=222418
* sed: Add test for r217133 (-i race).Jilles Tjoelker2011-01-082-0/+84
| | | | | | | | PR: bin/153261 MFC after: 2 weeks Notes: svn path=/head/; revision=217134
* printf: Test that the "--" option terminator works.Jilles Tjoelker2010-12-082-1/+3
| | | | Notes: svn path=/head/; revision=216311
* tr: Fix '[=]=]' equivalence class.Jilles Tjoelker2010-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 Notes: svn path=/head/; revision=213284
* o The typo was intended as it stated in the comment. Revert last.Maxim Konovalov2010-06-041-1/+1
| | | | | | | Spotted by: dfr Notes: svn path=/head/; revision=208802
* o Fix typo: .uudef -> .undef.Maxim Konovalov2010-06-041-1/+1
| | | | | | | | PR: misc/147462 Submitted by: Erik Cederstrand Notes: svn path=/head/; revision=208797
* Fix stuttering sequences and reverse rangesBrian Somers2010-06-024-1/+44
| | | | | | | | PR: 123635 Submitted by: Ulrich Spörlein, uqs at spoerlein dot net Notes: svn path=/head/; revision=208728
* Replace -b with -C and -B (as proposed by Alexander).Edwin Groothuis2010-03-211-34/+37
| | | | | | | | Add -3, -A and -B to the usage. Update regression test for the new parameters. Notes: svn path=/head/; revision=205427
* Create regression tests for ncal:Edwin Groothuis2010-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. Notes: svn path=/head/; revision=205147
* - Use errx(3) instead of err(3) when checking if snprintf(3) succeeded.Jaakko Heinonen2010-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 Notes: svn path=/head/; revision=204761
* Add missing newline in last line of file.Ulrich Spörlein2010-02-161-1/+1
| | | | | | | | Uncovered via: fromcvs vs. svn Approved by: ed (co-mentor) Notes: svn path=/head/; revision=203952
* - Implement -q option for pgrep(1).Pawel Jakub Dawidek2010-02-121-0/+38
| | | | | | | - Add regression test to test -q option. Notes: svn path=/head/; revision=203802
* Add ability to search up the directory hierarchy for the system directory.David E. O'Brien2010-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) Notes: svn path=/head/; revision=201526
* Fix formatting.David E. O'Brien2010-01-042-2/+2
| | | | Notes: svn path=/head/; revision=201491
* There are actually 129 tests here.David E. O'Brien2010-01-041-1/+1
| | | | Notes: svn path=/head/; revision=201490