summaryrefslogtreecommitdiffstats
path: root/tools/regression/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* 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@.
* 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.
* 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
|
* Include target names in diagnostic output.fjoe2012-02-121-60/+60
| | | | Submitted by: Garrett Cooper
* Spelling fixes for tools/uqs2011-12-303-3/+3
| | | | 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
* 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
* 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)
* Regression test for r201456.obrien2010-01-045-0/+25
|
* Add first tests for semicolon handling. The first test fails. This isharti2005-10-188-0/+47
| | | | probably a bug in the parser.
* Add more tests for escaped newline handling and fix a test that currentlyharti2005-10-1814-8/+48
| | | | should fail because of a bug in the parser (test 2).
* Add a test for escaped newline handling.harti2005-06-018-0/+45
|
* Add support for TODO tests. These are tests that are supposed to fail,harti2005-06-012-23/+43
| | | | because of a make bug that should be fixed.
* Change the test infrastructure so that tests are easier to maintain andharti2005-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'.
* Add a test to check whether in compat mode make detectes builtinsharti2005-05-206-0/+51
| | | | | on the command line and really executes the shell instead of directly executing the command.
* Add a test to ensure that in compat mode when a line contains noharti2005-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.
* Add a test that test whether we can replace the shell to use byharti2005-05-206-0/+54
| | | | | make with another shell and set all its parameters (meta and builtins not tested here).
* Some test cases for .SHELL target: builtin shell selection andharti2005-05-1917-0/+179
| | | | changing the path of a builtin shell.
* Add an initial regression test suite for make(1).harti2005-04-2865-0/+958
| | | | Submitted by: Max Okumoto <okumotu@ucsd.edu> (partly, initial version)
* Repo-copy tools/regression/usr.bin/make to tools/build/make_checkharti2005-03-027-322/+0
| | | | | | | | 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.
* Fix builds with a read-only directory and a make upgrade. This is doneharti2004-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
* Make this work under debugging, e.g., "make -dl".ru2004-12-061-1/+1
|
* Make the tests runnable on a read-only src. To do this you must make sureharti2004-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
* Chmod the shell testscript to be executable if it isn't already. Accordingharti2004-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.
* Add some regression tests for the .SHELL target. I'm not sure that theharti2004-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?
* Switch over to a different, more flexible test output protocol that'snik2004-11-112-29/+21
| | | | | | | | | | | | | | | | | | | | 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.
* Add a regression test for the alternate shell specification.ru2004-10-231-0/+10
|
* Now that make more correctly handles variable assignmentsharti2004-08-121-3/+1
| | | | in .MAKEFLAGS targets enable the regression test for this.
* Back out something I'm working on that crept in with the last commit.harti2004-08-051-1/+3
| | | | Spotted by: ru
* Remove extra spaces. Remove double quotes around error messages -harti2004-08-051-13/+11
| | | | | | they are not needed and will actually be printed. Submitted by: ru
* Add another test that checks for a working '+' command flag.harti2004-08-051-0/+19
|
* Add a regression test for the passing of command lineharti2004-08-041-0/+87
| | | | variable assignments via the MAKEFLAGS environment variable.
* Add a test for what was broken in rev. 1.28 and fixed in rev. 1.29ru2004-01-301-0/+8
| | | | of make/str.c.
* Add a test for what was fixed in revs. 1.28 and 1.29 of make/str.c.ru2004-01-291-0/+11
|
* Fix a bug that prevented exists() from finding "foo/", "foo/."ru2003-10-021-0/+11
| | | | | | and "foo/.." when ".PATH: foo" was also given. PR: bin/34062
* Fixed broken arithmetic expression parser.ru2003-07-041-0/+12
| | | | | Reminded by: bde In memory of: alane
* The regression-tests for 'make' *expect* to trigger make's warning:gad2003-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
* Add a test for what was fixed in revisions 1.39 and 1.50 ofru2002-11-281-0/+9
| | | | | | make/parse.c (allow embedded `:' and `!' in target names). Approved by: re
* Moved make(1) regression tests from src/Makefile to where theyru2002-11-281-1/+25
| | | | | | | belong (src/tools/regression/usr.bin/make), and use the latter to test if make(1) is adequate for building the world. Approved by: re
* Hide the test in <target> under '.if make(<target>)' so as to not get anyjmallett2002-10-251-0/+4
| | | | errors/warnings related to crud in said test block.
* As of revision 1.38 of make/parse.c, our make(1) will warn too. Note thatjmallett2002-07-281-2/+3
| | | | | this isn't just for the sake of testing behaviour, and that things really do break if this regression occurs.
* Grrr, make the test for embedded variables in the left-hand-side actually dojmallett2002-06-201-2/+2
| | | | the right thing in every case. Yuck.
* Add a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,jmallett2002-06-191-0/+17
| | | | | | expansion of embedded variables in the left-hand-side of an assignment expression, using the simplest case - hiding recursion using nil-expanded variables.
OpenPOWER on IntegriCloud