summaryrefslogtreecommitdiff
path: root/tests
AgeCommit message (Collapse)AuthorFilesLines
2014-07-07* read.c (eval): [SV 41677] Correct test for TAB vs. 8 spaces.Paul Smith1-0/+24
2014-07-07Update the regression test harness to support VMS.John Malmberg2-26/+314
* config_flags_pm.com, test_make.com: set up and run the regression test environment on VMS. * tests/run_make_tests.pl [VMS]: Use an alternate rmdir() implementation on VMS. (run_make_with_options) [VMS]: Provide VMS-specific quoting and shell invocations. (set_more_defaults) [VMS]: Set default values when running on VMS. * tests/test_driver.pl (vms_get_process_logicals) [VMS]: Retrieve the proper values from %ENV on VMS. (resetENV) [VMS]: Use it. (toplevel) [VMS]: Fix a bug with opendir() on some logical_devices. (compare_output) [VMS]: Convert VMS test output to a "standard" format. (_run_command) [VMS]: Handle signals and exit codes the VMS way. (remove_directory_tree_inner) [VMS]: Unlink all versions of the file.
2014-07-07[SV 41983] Support omitting the text argument to $(file ...)Paul Smith1-0/+17
Reported by Tim Murphy <tnmurphy@gmail.com> * function.c (func_file): Only write TEXT if it is not NULL. * NEWS, doc/make.texi: Document the new feature * tests/scripts/functions/file: Verify that the no-text version of $(file ...) works and doesn't add a newline.
2014-05-01[SV 42249] Propagate correct rule status results.Paul Smith1-12/+32
* remake.c (update_file, update_file_1, check_dep): Return an enum update_status value instead of an int, and keep the highest value we find as we walk the graph so that the ultimate status is correct. * tests/scripts/options/dash-q: Add a test for updating prerequisites.
2014-01-12* main.c (die): Close output_context AND make_sync.Paul Smith1-0/+7
die() can be invoked inside a separate output_context, if the $(error ...) function is expanded as part of a recipe.
2013-11-24* features/loadapi (test_expand): Allocate memory for the nul byte.Paul Smith1-1/+1
2013-10-27* makeint.h (STOP_SET): [SV 40371] Cast to unsigned char.Paul Smith1-0/+14
* tests/scripts/misc/utf8: Test variable names with characters >127. Fix suggested by Robert Bogomip <bob.bogo@milohedge.com>
2013-10-19[SV 40240] Use configure info to build load test shared libsPaul Smith5-6/+36
* tests/config-flags.pm.in: A new file containing variable assignments for the test suite; these variables are set by configure to contain the values detected there for compilers, flags, etc. * tests/run_make_tests.pl: Require the config-flags.pm file * tests/scripts/features/load, tests/scripts/features/loadapi: Use the configure-provided values when building the shared test library. * configure.ac: Replace tests/config-flags.pm.in * Makefile.am: Make sure tests/config-flags.pm is up to date
2013-10-19* GNUMAKEFLAGS: Remove -O so it passes in NO_OUTPUT_SYNC mode.Paul Smith1-2/+2
2013-10-13Convert to auto-generated ChangeLog files.Paul Smith1-0/+0
Rename existing ChangeLog files so they won't be distributed. Add targets to maintMakefile to generate ChangeLog from the Git repository. This will require a version of gnulib be available. Because ChangeLog is auto-generated, we have to switch our automake mode to "foreign" or it will complain and fail.
2013-10-09GNU Make release 4.0.4.0Paul Smith1-5/+5
2013-10-09[SV 39709] Fix some typos.Paul Smith2-5/+9
2013-10-05Clean up some tests for use on Windows.Paul Smith4-110/+121
2013-10-05Sanitize the registered function interface.Paul Smith2-4/+32
Expand the characters which are legal in a function name, and check the name for validity. Create a type for the function pointer. Convert the last argument from a boolean to flags, to allow for expansion.
2013-09-30Fix portability issues for Guile 1.8.Paul Smith1-2/+4
2013-09-30Solaris /bin/sh can't handle multiple options ("-e -c").Paul Smith3-3/+21
2013-09-29Reset GNUMAKEFLAGS after parsing.Paul Smith2-0/+19
If we don't do this we'll continually add flags on recursion. This is mainly for users to set in their environment before invoking make.
2013-09-23Rename dash-w to print-directory.Paul Smith2-0/+6
Avoid conflicts with dash-W on case-insensitive filesystems.
2013-09-22[SV 31155] Parse order-only tokens in second expansion results.Paul Smith2-0/+16
2013-09-22Regression test portability to Solaris.Paul Smith7-14/+59
2013-09-22Portability enhancements for Mac OSX.Paul Smith4-26/+41
Don't dup stdout into stderr in the test suite. Don't rely on $port_type eq "UNIX" to mean case-preserving. Check against the real output of ar when creating archives.
2013-09-21Create a target that tests alternative configurations.Paul Smith5-48/+79
2013-09-21Remove obsolete tests.Paul Smith1-52/+0
2013-09-21Ensure that output generated while reading makefiles is synced.Paul Smith2-1/+64
2013-09-21Ensure that stderr from shell functions in recipes is synced.Paul Smith2-0/+9
2013-09-21Don't write "Entering" every time we re-exec for remake makefiles.Paul Smith2-0/+37
2013-09-15[SV 27374] Fatal immediately on unrecoverable fopen() errors.Paul Smith4-27/+54
2013-09-15[SV 39934] Verify jobserver FDs before something else uses them.Paul Smith2-0/+23
2013-09-15[SV 39203] Don't set MAKEFLAGS when restarting.Paul Smith2-0/+15
We are restarting with the original command line flags, so if we set MAKEFLAGS as well that will cause double flags.
2013-09-14Support the -Orecurse option properly.Paul Smith2-2/+4
In this mode we still collect all the output from a given target and dump it at once. However we don't treat recursive lines any differently from non-recursive lines. Also we don't print enter/leave messages after every dump. However we do ensure that we always print them once to stdout, so the parent make will collect it properly.
2013-09-12Enhance the output sync mode.Paul Smith5-4/+38
Create a new file, output.c, and collect functions that generate output there. We introduce a new global context specifying where output should go (to stdout or to a sync file), and the lowest level output generator chooses where to write output based on that context. This allows us to set the context globally, and all operations that write output (including functions like $(info ...) etc.) will use it. Removed the "--trace=dir" capability. It was too confusing. If you have directory tracking enabled then output sync will print the enter/leave message for each synchronized block. If you don't want that, disable directory tracking.
2013-07-22[Bug #39310] Parse simple pattern prereqs for globbing.Paul Smith2-0/+42
We tried to get some efficiency by avoiding a parse_file_seq() for simple pattern prerequisites, but this also means no wildcard expansion was happening, so add it back. Add regression tests for wildcards in target and prerequisite lists.
2013-07-09Keep a local count of the max dependency list size.Paul Smith2-0/+27
This global variable could be modified during recursion so keep our own local copy to compare against.
2013-05-26[SV #38442] Add library names to the string cache.Paul Smith2-0/+22
2013-05-26[SV #38945] Copy the entire buffer back when overwriting CRPaul Smith2-2/+8
2013-05-26[SV #39035] Compare OUT to the beginning of the OUT var/func, not IN.Paul Smith2-0/+26
2013-05-22Fix regression tests after MAKEFLAGS enhancements.Paul Smith4-8/+14
2013-05-17Update source file format: remove TABs, use GNU coding styles.Paul Smith2-8/+8
2013-05-17Update copyright for changes in 2013.Paul Smith6-6/+6
2013-05-14Add requirement for plugin_is_GPL_compatible symbol in loaded objects.Paul Smith3-0/+9
2013-05-13Add a new variable: GNUMAKEFLAGSPaul Smith1-0/+24
This allows you to write portable makefiles that set GNU make-specific command line options in the environment or makefile: add them to GNUMAKEFLAGS instead of MAKEFLAGS and they will be seen by GNU make but ignored by other implementations of make.
2013-05-13Use level o_env_override for MAKEFLAGS so it's reset even with -e.Paul Smith1-14/+10
Fixes Savannah bug #2216.
2013-05-13Add new --trace[=MODE] flags, with --trace=dirPaul Smith2-8/+5
This mode replaces the previous heuristic setting enabled with -O, where we would log directory enter/leave for each synchronized output. Now we only do that if --trace=dir is given.
2013-05-05cosmetics: fix few innocuous typosStefano Lattarini4-9/+9
Most of these were found using Lucas De Marchi's 'codespell' tool. * ChangeLog: Fix minor typos. * ChangeLog.2: Likewise. * README.Amiga: Likewise. * TODO.private: Likewise. * function.c: Likewise. * glob/glob.h: Likewise. * job.c: Likewise. * main.c: Likewise. * readme.vms: Likewise. * remake.c: Likewise. * tests/ChangeLog: Likewise. * tests/NEWS: Likewise. * tests/README: Likewise. * tests/scripts/variables/private: Likewise. * vmsdir.h: Likewise. * signame.c: Likewise. While at it, improve line wrapping in the touched comment. Copyright-paperwork-exempt: yes Signed-off-by: Stefano Lattarini <stefano.lattarini@gmail.com>
2013-05-05Rename the -O "job" mode to "line" and "make" to "recurse".Paul Smith2-4/+5
2013-05-05Ensure command lines are written synchronously with -O.Paul Smith2-17/+17
If output-sync is enabled, have make write the command line to the temp file instead of printing it directly to the screen to ensure that the output is ordered properly. Also, remove extraneous enter/leave operations by having them printed directly when dumping temp file output.
2013-05-04Add memory allocation cleanup to loadable objects.Paul Smith2-1/+7
Add gmk_alloc() and gmk_free() functions so loadable objects can access our memory model. Also provide a more extensive example in the manual.
2013-05-04Improve sync handling for -Ojob/-Otarget and recursion.Paul Smith2-0/+15
If we are not going to sync a command line then dump any collected output first to preserve ordering. Do some code cleanup: * Move the handle init to a separate function. * Move the temp file truncation to the output function. * Remember whether we sync in a variable for readability. * Handle EINTR and short writes in child_out(). * Always call sync_output() in case output_sync was changed due to error.
2013-05-03Fix interfacing with and remaking dynamic objects on MS-Windows.Eli Zaretskii2-2/+7
load.c (load_object, load_file): Accept an additional argument DLP and return in it a pointer that can be used to unload the dynamic object. read.c (eval): Call load_file with an additional argument, and record the pointer returned there in the 'struct file' object of dynamic objects in that object's 'struct file'. commands.c (execute_file_commands): Unload dynamic objects before remaking them, to avoid failure to remake if the OS doesn't allow overwriting objects that are in use. filedef.h (struct file): New member dlopen_ptr. gnumake.h (GMK_EXPORT): Define to dllexport/dllimport decorations for Windows and to nothing on other platforms. (gmk_eval, gmk_expand, gmk_add_function): Add GMK_EXPORT qualifier to prototypes. makeint.h (MAIN): Define before including gnumake.h, to give correct dllexport decorations to exported functions. (load_file): Adjust prototype. loadapi.c: Don't include gnumake.h, since makeint.h already includes it, and takes care of defining MAIN before doing so. build_w32.bat (LinkGCC): Produce an import library for functions exported by Make for loadable dynamic objects. w32/compat/posixfcn.c (dlclose): New function. w32/include/dlfcn.h (dlclose): Add prototype. scripts/features/load: Fix signatures of testload_gmk_setup and explicit_setup, to bring them in line with the documentation.
2013-04-28Ensure error messages are printed with sync'd output.Paul Smith2-6/+3
Enhance the child_error() function so that it will write error output to the child's sync output buffer, if it exists. If it doesn't the output goes to stdout/stderr.