summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
* MFC r279779: env: Fix crash when -S string is not empty but no operandjilles2015-03-152-0/+34
| | | | | | | | | | | | | follows. split_spaces() set argc in main() incorrectly, which caused trouble for getopt(). Examples: env -S '\c' env -S -i PR: 197769
* MFC r279722: env: Fix testsuite for additional variables set by sh.jilles2015-03-141-3/+3
|
* MFC various moves of tools/regressions/ tests to the new infrastructure.jmmv2014-04-27846-30836/+0
| | | | | | | | | | | | | | | | - r263220 Migrate tools/regression/sbin/ to the new tests layout. - r263222 Add Makefile missed in r263220. - r263226 Migrate tools/regression/{usr.bin/lastcomm,usr.sbin}/ to the new tests layout. - r263227 Migrate most of tools/regression/usr.bin/ to the new tests layout. - r263345 Expand tabs that sneaked in into spaces. - r263346 Migrate tools/regression/usr.bin/make/ to the new tests layout. - r263348 Add Makefiles missed in r263346. - r263351 Migrate tools/regression/usr.bin/pkill/ to the new tests layout. - r263388 Mark multi_test as requiring /usr/share/dict/words. - r263814 Fix path to the run.pl script to let these tests run. - r264742 Prevent building tests when bootstrapping make. This is 'make tinderbox' clean.
* MFC various fixes to the tools/regression/ tests.jmmv2014-04-1427-330/+296
| | | | | | | | | | | | | | | | | | | - r262953 Fix m4 tests so that they run cleanly with prove. - r262954 Fix printf tests so that they run cleanly with prove. - r262959 Fix sed tests so that they run cleanly with prove. - r262960 Fix yacc tests so that they run cleanly with prove. - r262961 Fix pkill tests so that they run cleanly with prove. - r262962 Fix ncal tests so that they run cleanly with prove. - r263081 Fix lastcomm tests under amd64. - r263082 Only run the make tests when make is fmake. - r263083 Fix sa tests. - r263084 Turn a test precondition into a skip in the mdconfig tests. - r263085 Make the strerror tests work without libtap. - r263087 Remove broken tests for eui64_line. - r263221 Change etcupdate tests to return 1 on test failures. - r263352 Make the priv test program exit with non-zero if any failures are detected. - r263353 errx prepends the program name to the message; don't do it by hand. - r263362 Include strings.h so that bpf_filter.c can be built in userland.
* MFC r259132,r259133,r259143:eadler2013-12-162-0/+5
| | | | | | | | | | | | Per the resolution of POSIX bug 0000779 (note 0002050) add support for using 'i' as a case insensitive flag. Add regression test for recently added 'i' flag in r259132. the i modifier was added in r259132 since POSIX recently agreed to add it. Switch uses of /I to /i. 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
|
* Don't process 'lastcomm' if "AUTOMATED" is defined.obrien2010-01-041-1/+4
| | | | The tests for it require manual setup.
* It is expected these are chmod +x.obrien2010-01-041-0/+0
|
* Regression test for r201456.obrien2010-01-045-0/+25
|
* Provide clean output with 'prove -r'.obrien2010-01-031-2/+2
|
* Don't read the newline character to line buffer because lines are passedjh2009-12-1213-1/+53
| | | | | | | | | | | | | | | to wcscoll(3). Newline characters could cause incorrect results when comparing lines. Also, if an input line didn't contain a newline character, it was omitted from the output. According to my interpretation, SUSv3 requires that the newline is always printed. Add regression tests for the cases. [1] PR: bin/140976 Submitted by: D'Arcy Cain (original version) [1] Approved by: trasz (mentor)
* IEEE Std 1003.1, 2004 Edition states:dds2009-09-203-0/+6
| | | | | | | | | | | | | "The escape sequence '\n' shall match a <newline> embedded in the pattern space." It is unclear whether this also applies to a \n embedded in a character class. Disable the existing handling of \n in a character class following Mac OS X, GNU sed version 4.1.5 with --posix, and SunOS 5.10 /usr/bin/sed. Pointed by: Marius Strobl Obtained from: Mac OS X
* Follow POSIX (IEEE Std 1003.1, 2004 Edition) in the implementationdds2009-09-202-0/+5
| | | | | | | | | | | of the y (translate) command. "If a backslash character is immediately followed by a backslash character in string1 or string2, the two backslash characters shall be counted as a single literal backslash character" Pointed by: Marius Strobl Obtained from: Mac OS X
* Add correct test results.dds2009-09-203-0/+42
|
* Describe how other systems treat this case.dds2009-09-201-1/+5
|
* Allow [ to be used as a delimiter.dds2009-09-201-0/+9
| | | | | Pointed by: Marius Strobl Obtained from: Apple
OpenPOWER on IntegriCloud