aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/usr.bin
Commit message (Collapse)AuthorAgeFilesLines
...
* New test cases demonstrating fixed bugs, and the reason whyDiomidis Spinellis2006-12-0321-1/+201
| | | | | | | fmtcheck can't be used. Notes: svn path=/head/; revision=164856
* Fix and extend the -j option to pkill/pgrep WRT the jailYaroslav Tykhiy2006-11-232-35/+87
| | | | | | | | | | | | | | | | | | | | | | | | wildcard specifications. Earlier the only wildcard syntax was "-j 0" for "any jail". There were at least two shortcomings in it: First, jail ID 0 was abused; it meant "no jail" in other utils, e.g., ps(1). Second, it was impossible to match processed not in jail, which could be useful to rc.d developers. Therefore a new syntax is introduced: "-j any" means any jail while "-j none" means out of jail. The old syntax is preserved for compatibility, but now it's deprecated because it's limited and confusing. Update the respective regression tests. While I'm here, make the tests more complex but sensitive: Start several processes, some in jail and some out of jail, so we can detect that only the right processes are killed by pkill or matched by pgrep. Reviewed by: gad, pjd MFC after: 1 week Notes: svn path=/head/; revision=164558
* Add the examples from the manual page.Diomidis Spinellis2006-11-0610-2/+630
| | | | Notes: svn path=/head/; revision=164041
* Updated results for bin/68981Diomidis Spinellis2006-11-062-0/+42
| | | | | | | PR: bin/68981 Notes: svn path=/head/; revision=164040
* Regress.out is now regress.x.out.Diomidis Spinellis2006-11-061-1/+0
| | | | Notes: svn path=/head/; revision=164024
* Test the handling of supplied and default parameters.Diomidis Spinellis2006-11-0629-2/+1692
| | | | Notes: svn path=/head/; revision=164022
* Add tests for -t option with short tty name - pkill(1) should accept bothPawel Jakub Dawidek2005-11-072-6/+30
| | | | | | | (eg. "ttyv0" and "v0"). Notes: svn path=/head/; revision=152158
* Add first tests for semicolon handling. The first test fails. This isHartmut Brandt2005-10-188-0/+47
| | | | | | | probably a bug in the parser. Notes: svn path=/head/; revision=151443
* Add more tests for escaped newline handling and fix a test that currentlyHartmut Brandt2005-10-1814-8/+48
| | | | | | | should fail because of a bug in the parser (test 2). Notes: svn path=/head/; revision=151442
* Add regression tests for '-L' option.Pawel Jakub Dawidek2005-08-252-0/+84
| | | | Notes: svn path=/head/; revision=149474
* '-F' option behaviour was reverted, so revert previous commit.Pawel Jakub Dawidek2005-08-252-3/+5
| | | | Notes: svn path=/head/; revision=149472
* '-F' option now needs locked pidfile. Modify regression tests respectively.Pawel Jakub Dawidek2005-08-242-6/+4
| | | | Notes: svn path=/head/; revision=149436
* Correct one regression test (which was expected an incorrect answer), andGarance A Drosehn2005-07-151-1/+66
| | | | | | | add a few more tests. This matches bug fixes recently committed to 'env'. Notes: svn path=/head/; revision=148024
* Upgrade these regression tests to track recent changes to `env'.Garance A Drosehn2005-06-211-3/+78
| | | | | | | Approved by: re (blanket `env') Notes: svn path=/head/; revision=147522
* Add a suite of regression tests for all the recent changes to `env',Garance A Drosehn2005-06-203-0/+801
| | | | | | | | | | | | | | | | | | using my own script to handle it. I wrote my own partially because of all the quoting-issues involved with testing what I wanted to test, and partially because this lets me commit one script and one data file, instead of one-file-per-regression-test. This suite was good enough for my initial testing (and it did help me find a few bugs that would have otherwise been missed). I'm not sure how well it will work in general use, but I figured I might as well commit it. It won't *hurt* to have it available. At the worst, people can just ignore it. Approved by: re (blanket `env') Notes: svn path=/head/; revision=147495
* Add a test for escaped newline handling.Hartmut Brandt2005-06-018-0/+45
| | | | Notes: svn path=/head/; revision=146856
* Add support for TODO tests. These are tests that are supposed to fail,Hartmut Brandt2005-06-012-23/+43
| | | | | | | because of a make bug that should be fixed. Notes: svn path=/head/; revision=146855
* Change the test infrastructure so that tests are easier to maintain andHartmut Brandt2005-05-31192-623/+910
| | | | | | | | | | | | | | | | | so that make(1) will run in an almost clean environment and enhance the description of the test infrastructure. Add the ability to have multiple tests carried out per test script. Give some tests more meaningful names. Fix the usage message from the test scripts. Make it possible to pass several commands to the test scripts like: 'sh test.t setup run compare clean'. Notes: svn path=/head/; revision=146822
* Add a test to check whether in compat mode make detectes builtinsHartmut Brandt2005-05-206-0/+51
| | | | | | | | on the command line and really executes the shell instead of directly executing the command. Notes: svn path=/head/; revision=146454
* Add a test to ensure that in compat mode when a line contains noHartmut Brandt2005-05-206-0/+51
| | | | | | | | | shell meta characters it is not passed to the shell, but the command is executed directly (given that the line is not a shell builtin) and that the line with a meta character is passed to the shell. Notes: svn path=/head/; revision=146452
* Add a test that test whether we can replace the shell to use byHartmut Brandt2005-05-206-0/+54
| | | | | | | | make with another shell and set all its parameters (meta and builtins not tested here). Notes: svn path=/head/; revision=146449
* Some test cases for .SHELL target: builtin shell selection andHartmut Brandt2005-05-1917-0/+179
| | | | | | | changing the path of a builtin shell. Notes: svn path=/head/; revision=146381
* o -n option added.Marcel Moolenaar2005-05-1510-2/+47
| | | | | | | o -x option added. Notes: svn path=/head/; revision=146234
* Add an initial regression test suite for make(1).Hartmut Brandt2005-04-2865-0/+958
| | | | | | | Submitted by: Max Okumoto <okumotu@ucsd.edu> (partly, initial version) Notes: svn path=/head/; revision=145620
* Also test \0 in the format string.Stefan Farfeleder2005-04-142-1/+1
| | | | Notes: svn path=/head/; revision=145086
* Add a few regression tests for printf(1).Stefan Farfeleder2005-04-1312-1/+38
| | | | Notes: svn path=/head/; revision=145028
* Add regression tests for pkill/pgrep.Pawel Jakub Dawidek2005-03-2025-0/+803
| | | | | | | MFC after: 3 days Notes: svn path=/head/; revision=143880
* Repo-copy tools/regression/usr.bin/make to tools/build/make_checkHartmut Brandt2005-03-028-323/+1
| | | | | | | | | | | and adjust the path in the Makefile for the upgrade_checks target. These checks are really feature upgrade checks that should be fast and just find out whether we need to build a new make before proceeding with other targets like buildworld. This makes the place free for a real regression test suite in the old place. Notes: svn path=/head/; revision=143032
* Fix builds with a read-only directory and a make upgrade. This is doneHartmut Brandt2004-12-071-6/+4
| | | | | | | | | | | by forcing the creation of an object directory for the make regression tests. Let make handle the tracking of the dependency and installation of test_shell script. Submitted by: ru Notes: svn path=/head/; revision=138515
* Make this work under debugging, e.g., "make -dl".Ruslan Ermilov2004-12-061-1/+1
| | | | Notes: svn path=/head/; revision=138432
* Make the tests runnable on a read-only src. To do this you must make sureHartmut Brandt2004-12-022-49/+63
| | | | | | | | | | | | | | | that you create one of the object directories make knows (see make(1)). This uses the -C flag, so add a test that checks that make actually accepts -C. Also fix the test that selects csh via the .SHELL target to work for tcsh users too. This commit renames shell_test to shell_test.sh. There is no history to preserve so go without a repo-copy. Reviewed by: ru Notes: svn path=/head/; revision=138317
* Chmod the shell testscript to be executable if it isn't already. AccordingHartmut Brandt2004-11-301-0/+1
| | | | | | | | to the CVS-Meisters x-mode just happens to work, but is not guaranteed to do so. Try to be on the safe side. Notes: svn path=/head/; revision=138227
* Add some regression tests for the .SHELL target. I'm not sure that theHartmut Brandt2004-11-254-1/+65
| | | | | | | | output of shell_2j is actually correct - it just tests what make currently does. Make should switch on echoing for the second line, shouldn't it? Notes: svn path=/head/; revision=138080
* Switch over to a different, more flexible test output protocol that'sNik Clayton2004-11-1119-37/+90
| | | | | | | | | | | | | | | | | | | | | | | understood by Perl's Test::Harness module and prove(1) commands. Update README to describe the new protocol. The work's broken down into two main sets of changes. First, update the existing test programs (shell scripts and C programs) to produce output in the ok/not ok format, and to, where possible, also produce a header describing the number of tests that are expected to be run. Second, provide the .t files that actually run the tests. In some cases these are copies of, or very similar too, scripts that already existed. I've kept the old scripts around so that it's possible to verify that behaviour under this new system (in terms of whether or not a test fails) is identical to the behaviour under the old system. Add a TODO file. Notes: svn path=/head/; revision=137587
* Add a regression test for the alternate shell specification.Ruslan Ermilov2004-10-231-0/+10
| | | | Notes: svn path=/head/; revision=136842
* Now that make more correctly handles variable assignmentsHartmut Brandt2004-08-121-3/+1
| | | | | | | in .MAKEFLAGS targets enable the regression test for this. Notes: svn path=/head/; revision=133593
* Per letter dated July 22, 1999 remove 3rd clause of Berkeley derivedDiomidis Spinellis2004-08-092-8/+0
| | | | | | | | | software (original contributor). Reviewed by: imp Notes: svn path=/head/; revision=133385
* Back out something I'm working on that crept in with the last commit.Hartmut Brandt2004-08-051-1/+3
| | | | | | | Spotted by: ru Notes: svn path=/head/; revision=133165
* Remove extra spaces. Remove double quotes around error messages -Hartmut Brandt2004-08-051-13/+11
| | | | | | | | | they are not needed and will actually be printed. Submitted by: ru Notes: svn path=/head/; revision=133164
* Add another test that checks for a working '+' command flag.Hartmut Brandt2004-08-051-0/+19
| | | | Notes: svn path=/head/; revision=133161
* Add a regression test for the passing of command lineHartmut Brandt2004-08-041-0/+87
| | | | | | | variable assignments via the MAKEFLAGS environment variable. Notes: svn path=/head/; revision=133109
* A new version that does exponents and lots of other neat things. UpdateSean Kelly2004-05-011-59/+335
| | | | | | | | | from the original author of math.sed. Submitted by: K S Braunsdorf <sed@ksb.npcguild.org> Notes: svn path=/head/; revision=128785
* Add a test for what was broken in rev. 1.28 and fixed in rev. 1.29Ruslan Ermilov2004-01-301-0/+8
| | | | | | | of make/str.c. Notes: svn path=/head/; revision=125227
* Add a test for what was fixed in revs. 1.28 and 1.29 of make/str.c.Ruslan Ermilov2004-01-291-0/+11
| | | | Notes: svn path=/head/; revision=125219
* Fix a bug that prevented exists() from finding "foo/", "foo/."Ruslan Ermilov2003-10-021-0/+11
| | | | | | | | | and "foo/.." when ".PATH: foo" was also given. PR: bin/34062 Notes: svn path=/head/; revision=120676
* Test 8.16 in sed.test tests the ability of a sed to handle an emptyDiomidis Spinellis2003-07-222-22/+38
| | | | | | | | | | | | | | | | | | | | regular expression as the first argument to a substitute command. If used to test a sed which (erroneously) evaluates this at translation time rather than at execution time, the bugged sed is put into an infinite loop. This mode of failure seems excessive. Such a failing sed is the Free Software Foundation's sed 3.02. The specific test was also not being executed for the BSD sed. Both problems are now fixed. PR: misc/25585 Submitted by: Walter Briscoe <w.briscoe@ponl.com> Approved by: schweikh (mentor) MFC after: 2 weeks Notes: svn path=/head/; revision=117900
* Fixed broken arithmetic expression parser.Ruslan Ermilov2003-07-041-0/+12
| | | | | | | | Reminded by: bde In memory of: alane Notes: svn path=/head/; revision=117226
* Add tests for the behaviour of substitution when the regex can matchTony Finch2003-06-045-0/+8
| | | | | | | a zero-length string. This shows bugs in the s///g and s///2+ cases. Notes: svn path=/head/; revision=115829
* The regression-tests for 'make' *expect* to trigger make's warning:Garance A Drosehn2003-02-101-1/+1
| | | | | | | | | | | | | warning: duplicate script for target "double" ignored The regression-tests do try to hide that message, but the message does still appear when using -j (eg: 'make -j5 buildworld'). This changes the regression-test so the expected warning message will not be seen even when -j is specified. Reviewed by: jmallett ru Notes: svn path=/head/; revision=110654
* Add a test for what was fixed in revisions 1.39 and 1.50 ofRuslan Ermilov2002-11-281-0/+9
| | | | | | | | | make/parse.c (allow embedded `:' and `!' in target names). Approved by: re Notes: svn path=/head/; revision=107375