aboutsummaryrefslogtreecommitdiff
path: root/tools/regression/usr.bin/make
Commit message (Collapse)AuthorAgeFilesLines
* 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
* 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
* 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
* Include target names in diagnostic output.Max Khon2012-02-121-60/+60
| | | | | | | Submitted by: Garrett Cooper Notes: svn path=/head/; revision=231544
* Spelling fixes for tools/Ulrich Spörlein2011-12-303-3/+3
| | | | | | | 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
* 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
* 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
* Regression test for r201456.David E. O'Brien2010-01-045-0/+25
| | | | Notes: svn path=/head/; revision=201478
* 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 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
* 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
* Repo-copy tools/regression/usr.bin/make to tools/build/make_checkHartmut Brandt2005-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. 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-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. 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
* 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
* 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
* Fixed broken arithmetic expression parser.Ruslan Ermilov2003-07-041-0/+12
| | | | | | | | Reminded by: bde In memory of: alane Notes: svn path=/head/; revision=117226
* 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
* Moved make(1) regression tests from src/Makefile to where theyRuslan Ermilov2002-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 Notes: svn path=/head/; revision=107374
* Hide the test in <target> under '.if make(<target>)' so as to not get anyJuli Mallett2002-10-251-0/+4
| | | | | | | errors/warnings related to crud in said test block. Notes: svn path=/head/; revision=105907
* As of revision 1.38 of make/parse.c, our make(1) will warn too. Note thatJuli Mallett2002-07-281-2/+3
| | | | | | | | this isn't just for the sake of testing behaviour, and that things really do break if this regression occurs. Notes: svn path=/head/; revision=100794
* Grrr, make the test for embedded variables in the left-hand-side actually doJuli Mallett2002-06-201-2/+2
| | | | | | | the right thing in every case. Yuck. Notes: svn path=/head/; revision=98461
* Add a test for what was fixed in revision 1.27 and 1.28 of make(1)'s var.c,Juli Mallett2002-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. Notes: svn path=/head/; revision=98442