summaryrefslogtreecommitdiff
path: root/tests/scripts/features
AgeCommit message (Collapse)AuthorFilesLines
2013-05-04Improve sync handling for -Ojob/-Otarget and recursion.Paul Smith1-0/+10
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 Zaretskii1-2/+2
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 Smith1-6/+2
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.
2013-04-28Small cleanups and fixes.Paul Smith1-5/+5
2013-04-28Add support for per-job output sync.Paul Smith1-15/+96
A new flag to the -O/--output-sync, "job", selects a per-job (that is, per line of a recipe) output synchronization. To support this move the close of the temp file out of the sync_output() function and don't do it until we free the child, since we may call sync_output() multiple times in a given recipe. When we set up for a new temp file, if we're in per-job mode we truncate the file and seek to the beginning to re-use it for every job.
2013-04-15Change the arg option for -O from numeric to string.Paul Smith1-2/+2
2013-04-15Modify output-sync tests to be more reliable.Paul Smith1-25/+63
2013-04-14Rename the "parallel-sync" option to "output-sync".Paul Smith1-26/+16
2013-04-14Initial patch for output synchronization. See Savannah bug #33138.Frank Heckenbach1-0/+143
Based on work by David Boyce <David.S.Boyce@gmail.com>.
2013-02-25Expand the loadable object support.Paul Smith2-38/+115
Provide a simple API for loaded objects to interact with GNU make. I still won't guarantee that this API won't change but it's much closer to something that's supported and provides easy-to-use interfaces with a public header file.
2013-01-20Allow dynamically loaded objects to be rebuilt by make.Paul Smith1-7/+30
2013-01-13[SV #37878] Add a check for targets with parens that are not archives.Paul Smith1-0/+8
2013-01-12Ensure parallel test works properly.Paul Smith1-4/+5
2012-10-29Implement new "load" directive.Paul Smith2-1/+85
Provides support for dynamically loadable objects in GNU make, as a "technology preview".
2012-10-28Remove extraneous close().Paul Smith1-3/+0
2012-09-10Force intermediate targets to be considered if their non-intermediatePaul Smith1-0/+17
parent needs to be remade. Fixes Savannah bug #30653.
2012-09-09Verify that backslashes before non-special characters are preserved.Paul Smith1-1/+10
2012-09-09Ignore UTF-8 BOMs. See Savannah bug #36529.Paul Smith1-0/+11
2012-03-04Improve handling for escaped colons in prerequisite lists.Paul Smith2-1/+17
Fixes Savannah bug #12126 and bug #16545
2012-03-04Convert all "`'" quotes to "''" per new GNU Coding Standard guidelines.Paul Smith12-30/+30
Fixes Savannah bug #34530.
2011-11-14Be sure to start parsing prereqs in the right place even if there arePaul Smith1-0/+9
escape characters (backslashes) in the target name. See Savannah bug #33399
2011-09-18When we re-exec the master makefile in a jobserver environment, ensurePaul Smith1-0/+17
that MAKEFLAGS is set properly so the re-exec'd make runs in parallel. See Savannah bug #33873.
2011-09-18We compute various values for vpath lookup the first time throughPaul Smith1-40/+25
and store them in static variables; however one value (std_dirs) was not being stored statically so the second time through it was not set. Fixes Savannah bug #32511
2011-08-29Save strings we're expanding in case an embedded eval causes themPaul Smith1-23/+24
to be freed (if they're the value of a variable that's reset for example). See Savannah patch #7534
2011-06-12Fix another error related to whitespace handling in archives.Paul Smith1-0/+5
Newer version of VMS support strncasecmp() so update the config.h.
2011-04-18Add new feature: != shell assignment for portability with BSD make.Paul Smith1-0/+65
Feature submitted by David Wheeler.
2010-11-30Check if the target-specific variable is the same as the globalPaul Smith1-0/+10
variable, and if so don't try to update it. Savannah bug #31743.
2010-11-06Improve backslash/newline handling to adhere to POSIX requirements.Paul Smith1-1/+1
2010-08-29Bump the version to 3.82.90.Paul Smith4-11/+19
Fix some doc bugs. Implement the --trace flag. Show filename/linenumber on error.
2010-08-14- Fix the NEWS file to be accuratePaul Smith1-0/+42
- Add oneshell to $(.FEATURES) (forgot that!) - Fix Savannah bug #30612: handling of archive references with >1 object
2010-08-10Fix Savannah bug #30723: expand MAKEFLAGS before we re-exec afterPaul Smith1-1/+16
rebuilding makefiles.
2010-07-05Fixups for warnings on Windows (esp 64bit).Paul Smith1-0/+22
2010-07-01- Add whitespace to command line invocation in features/recursionPaul Smith1-1/+1
- Set up .FEATURES with separate calls for optional features, as some compilers don't like conditionals inside macro invocations.
2009-11-12Implement linker-compatible library search.Boris Kolpackov1-0/+50
2009-10-06Fix savannah bug 25780. Optimize things a bit.Boris Kolpackov1-9/+4
2009-10-04Add a test for another (still open) bug.Paul Smith1-6/+36
2009-10-03- Include <alloca.h> even on non-__GNUC__ systems.Paul Smith1-0/+11
- Add some tests for unresolved bugs.
2009-09-30Fix Savannah bugs #15110, #25493, #12686, and #17740.Boris Kolpackov1-2/+50
2009-09-28- Update manual description for pattern rule search algorithmPaul Smith1-0/+27
- Add new "-all" flag to the test suite to run tests that don't pass yet - Add some non-passing tests - Fix from Andreas Buening for OS/2.
2009-09-28Implement the shortest stem first search order for pattern-specific ↵Boris Kolpackov2-0/+26
variables and pattern rules.
2009-09-24- Fix broken handling of order-only prereqs in secondary expansionPaul Smith1-0/+11
of implicit rules. - Fix leaked memory when dealing with implicit rule chains that have file variables or pattern variables.
2009-09-24- Rework secondary expansion so we only defer it if there's a possibilityPaul Smith5-172/+129
it might be needed: for most situations we parse prereqs immediately as we used to. Reduces memory usage. - Fixes Savannah bug #18622.
2009-06-14- Fix Savannah bug #13529Paul Smith1-0/+19
2009-06-10- Fix Savannah bug #19108Paul Smith1-5/+35
- Fix Savannah bug #17752 - Test suite: * When tests fail keep a "run" file containing the command invoked. * Support for the Valgrind "memcheck" and "massif" tools.
2009-06-09- Fix Savannah bug #18124Paul Smith2-0/+32
- Fix Savannah bug #17521 - Fix Savannah bug #16401 - Fix Savannah bug #16469 - Fix Savannah bug #16473
2009-06-07- Fix Savannah bug #24622Paul Smith1-12/+12
2009-06-04- Modify access of config and gnulib Savannah modules to use GITPaul Smith5-25/+80
- Fix Savannah bug #24655. - Fix Savannah bug #24588. - Fix Savannah bug #24277. - Fix Savannah bug #25697. - Fix Savannah bug #25694. - Fix Savannah bug #25460. - Fix Savannah bug #26207. - Fix Savannah bug #25712. - Fix Savannah bug #26593. - Fix various doc issues.
2009-05-26Add 'private' variable modifier, feature submitted by Ramon Garcia.Paul Smith2-227/+102
Rework the parser for variables to allow multiple modifiers and also allow for variables and targets with modifier names, like "export" and "private".
2007-08-15Incorporate Icarus Sparry's fix for 3330 and 15919, and test cases.Paul Smith1-0/+14
One of our translations disappeared from the translations site so remove it. The fdl.texi file was changed to not contain any @node entries, so add some around it in make.texi.
2007-07-14Fix Savannah bug #20452.Paul Smith1-1/+2
Add a new feature to the test suite suggested by Icarus Sparry: set a timer before invoking a test, so that if it loops infinitely we will wake up and have a chance to kill the process and continue.