aboutsummaryrefslogtreecommitdiff
path: root/contrib/bmake/unit-tests
Commit message (Collapse)AuthorAgeFilesLines
* Merge bmake-20250707Simon J. Gerraty2025-07-19125-636/+915
| | | | Merge commit '3d772e596c1acf76f555c1f51fd8d834e56b0c35'
* Merge bmake-20250618Simon J. Gerraty2025-06-2849-125/+670
|
* Merge bmake-20250414Simon J. Gerraty2025-04-19170-1241/+1583
| | | | Merge commit '284d1f7d496806b18558ab55e4654fd5e96d6a3e'
* Merge bmake-20250125Simon J. Gerraty2025-01-30160-1309/+2023
| | | | Merge commit '5ad769f660f3d00853bc739f82d9bc62f6a682cb'
* Merge bmake-20240711Simon J. Gerraty2024-07-20165-1034/+1205
| | | | Merge commit '84691af93185c692058ba55fa81a04103f5bf71b'
* Merge bmake-20240625Simon J. Gerraty2024-06-2945-157/+455
| | | | Merge commit 'dbb5be7f07456d02ce444484c683b130439acb45'
* Merge bmake-20240520Simon J. Gerraty2024-05-231-1/+1
| | | | Merge commit '29efb3dcaedd9cbabc6f96f35545baf2c8b28501'
* Merge bmake-20240508Simon J. Gerraty2024-05-147-10/+10
| | | | Merge commit '3c2ab5fddc576e58f3ffa70dc5fa95144646a513'
* Merge bmake-20240430Simon J. Gerraty2024-05-0390-321/+388
| | | | Merge commit '507951f55039f9d1ceae507d510f8cb68225fbc5'
* Merge bmake-20240309Simon J. Gerraty2024-03-146-25/+62
| | | | Merge commit '368b06ce6b0135d6de13f7265f6dcbaeb791b3bb'
* Update to bmake-20240108Simon J. Gerraty2024-01-14132-702/+1278
|
* Merge bmake-20230909Simon J. Gerraty2023-09-1849-206/+545
| | | | Merge commit '1012cf15f75d1e9048779abd07270a37cdba590a'
* Merge bmake-20230622Simon J. Gerraty2023-06-27191-890/+2047
| | | | Merge commit '3e39ce563b9ba25883e5aa37d9799eda9e57c1e0'
* Merge bmake-20230510Simon J. Gerraty2023-05-1324-369/+550
| | | | Merge commit '945078deae448e0a13c34b3393d836087719fb16'
* Merge bmake-20230414Simon J. Gerraty2023-04-2450-267/+837
| | | | Merge commit '51d8a8b4ac1dd7265e891149e470a803906de2a7'
* Merge bmake-20230208Simon J. Gerraty2023-02-101-13/+56
| | | | Merge commit 'f4d51098686d961fc03dc5aa327619d0af3c9dcd'
* Merge/update to bmake-20230126Simon J. Gerraty2023-01-2862-182/+780
|
* Update to bmake-20220726Simon J. Gerraty2022-07-271-1/+2
| | | | Merge commit '31a96ca5f0b6e5f8f7fa8cecf3a5c4354b3b096f'
* Update to bmake-20220724Simon J. Gerraty2022-07-2643-326/+724
| | | | Merge commit '308a28d6cd2e87028e535eabccb89a9dc2fd9515'
* Merge bmake-20220418Simon J. Gerraty2022-04-2210-43/+287
| | | | | | | | o ignore '.POSIX:' if not in first non-comment line of Makefile as specified by POSIX. add unit-tests for above. Merge commit '92bfae0e6bd53a7a0d6fe55e70a916d86cf26e8b'
* Merge bmake-20220330Simon J. Gerraty2022-04-0358-247/+590
| | | | Merge commit 'a052cb432096794be5070dc68a2b302eaf5a4783'
* Merge bmake-20220208Simon J. Gerraty2022-02-094-6/+101
| | | | | | | | | | * unit-tests/Makefile: disable opt-debug-x-trace on Linux if there is any chance we have dash as .SHELL * meta.c: use a variable to hold command line to be filtered to avoid any side effects from content of command line. Merge commit '535c59a6a9214436f5d6643775d29808e4b3408d'
* bmake: make opt-debug-x-trace broken on LinuxEd Maste2022-02-091-0/+3
| | | | | | | | | | It fails during GitHub cross-build actions from Ubuntu 20.04. sjg investigated and found it is a dash bug; a more extensive change to handle this case will come in the next bmake update. Reviewed by: sjg Differential Revision: https://reviews.freebsd.org/D34219
* Merge bmake-20220204Simon J. Gerraty2022-02-05171-950/+2375
|
* Merge bmake-20211212Simon J. Gerraty2021-12-1887-386/+1505
| | | | commit '2935fe8237c83c1dcb113dd5335733263e68e6fd'
* Merge commit 'ee914ef902ae018bd4f67192832120f9bf05651f' into new_mergeSimon J. Gerraty2021-06-25106-746/+1850
|
* Merge bmake-20210206Simon J. Gerraty2021-02-1179-293/+1043
| | | | | | | | | | | Changes of interest o unit-tests: use private TMPDIR to avoid errors from other users o avoid strdup in mkTempFile o always use vfork o job.c: do not create empty shell files in jobs mode reduce unnecessary calls to waitpid o cond.c: fix debug output for comparison operators in conditionals
* Merge bmake-20210110Simon J. Gerraty2021-01-14183-651/+8568
| | | | | | | | | | | | | | | | | | | | | Quite a lot of churn on style, but lots of good work refactoring complicated functions and lots more unit-tests. Thanks mostly to rillig at NetBSD Some interesting entries from ChangeLog o .MAKE.{UID,GID} represent uid and gid running make. o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o add more unit tests for META MODE Merge commit '8e11a9b4250be3c3379c45fa820bff78d99d5946' into main Change-Id: I464fd4c013067f0915671c1ccc96d2d8090b2b9c
* Merge bmake-20201117Simon J. Gerraty2020-11-20201-674/+2452
| | | | | | | | | | | | | | | o allow env var MAKE_OBJDIR_CHECK_WRITABLE=no to skip writable checks in InitObjdir. Explicit .OBJDIR target always allows read-only directory. o More code cleanup and refactoring. o More unit tests MFC after: 1 week Notes: svn path=/head/; revision=367863
* Update to bmake-20201101Simon J. Gerraty2020-11-07330-1484/+5787
| | | | | | | | | | | | | | Lots of new unit-tests increase code coverage. Lots of refactoring, cleanup and simlpification to reduce code size. Fixes for Bug 223564 and 245807 Updates to dirdeps.mk and meta2deps.py Notes: svn path=/head/; revision=367465
* Update to bmake-20200902Simon J. Gerraty2020-09-05515-305/+6733
| | | | | | | | | | | | | | | | | | | | Lots of code refactoring, simplification and cleanup. Lots of new unit-tests providing much higher code coverage. All courtesy of rillig at netbsd. Other significant changes: o new read-only variable .SHELL which provides the path of the shell used to run scripts (as defined by the .SHELL target). o variable parsing detects more errors. o new debug option -dl: LINT mode, does the equivalent of := for all variable assignments so that file and line number are reported for variable parse errors. Notes: svn path=/head/; revision=365366
* Update to bmake-20200710Simon J. Gerraty2020-07-1212-98/+452
| | | | | | | | | | | | Key changes include reduced noise at end of failed build log and avoid evaluation of unnecessary terms in conditionals. In META MODE; a target flagged .META is out-of-date if meta file is missing MFC after: 1 week Notes: svn path=/head/; revision=363117
* Revert r363031Simon J. Gerraty2020-07-0912-243/+10
| | | | Notes: svn path=/head/; revision=363035
* Update to bmake-20200704Simon J. Gerraty2020-07-0812-10/+243
| | | | | | | | | | Key changes include reduced noise at end of failed build log and avoid evaluation of unnecessary terms in conditionals. MFC after: 1 week Notes: svn path=/head/; revision=363031
* Merge bmake-20200517Simon J. Gerraty2020-05-2018-19/+458
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | Changes since 20181221 are mostly portability related hence the large gap in versions imported. There are however some bug fixes, and a rework of filemon handling. In NetBSD make/filemon/filemon_ktrace.c allows use of fktrace and elimination of filemon(4) which has not had the TLC it needs. FreeBSD filemon(4) is in much better shape, so bmake/filemon/filemon_dev.c allows use of that, with a bit less overhead than the ktrace model. Summary of changes from ChangeLog o str.c: empty string does not match % pattern plus unit-test changes o var.c: import handling of old sysV style modifier using '%' o str.c: refactor brk_string o meta.c: meta_oodate, CHECK_VALID_META is too aggressive for CMD a blank command is perfectly valid. o meta.c: meta_oodate, check for corrupted meta file earlier and more often. * meta.c: meta_compat_parent check for USE_FILEMON patch from Soeren Tempel o meta.c: fix compat mode, need to call meta_job_output() o job.c: extra fds for meta mode not needed if using filemon_dev o meta.c: avoid passing NULL to filemon_*() when meta_needed() returns FALSE. o filemon/filemon_{dev,ktrace}.c: allow selection of filemon implementation. filemon_dev.c uses the kernel module while filemon_ktrace.c leverages the fktrace api available in NetBSD. filemon_ktrace.c can hopefully form the basis for adding support for other tracing mechanisms such as strace on Linux. o meta.c: when target is out-of-date per normal make rules record value of .OODATE in meta file. o parse.c: don't pass NULL to realpath(3) some versions cannot handle it. o parse.c: ParseDoDependency: free paths rather than assert plus more unit-tests Notes: svn path=/head/; revision=361307
* Merge bmake-20181221Simon J. Gerraty2018-12-231-2/+2
| | | | Notes: svn path=/head/; revision=342376
* Update bmake to version 20180919Simon J. Gerraty2018-12-063-2/+20
| | | | | | | | Cleanup of stats cache and new :q modifier. Notes: svn path=/head/; revision=341652
* Update to bmake-201802222Simon J. Gerraty2018-03-022-2/+15
| | | | | | | | Fixes segfault in Var_Set if val is NULL Don't treat .info as warning with -W Notes: svn path=/head/; revision=330260
* Update to bmake-20171028Simon J. Gerraty2017-11-022-4/+4
| | | | | | | | | Ignore empty MAKEOBJDIR[PREFIX] Reported by: bdrewery Notes: svn path=/head/; revision=325340
* Str_Match: fix closure tests for [^] and add unit-test.Simon J. Gerraty2017-04-212-0/+2
| | | | Notes: svn path=/head/; revision=317274
* Update to bmake 20170413Simon J. Gerraty2017-04-152-1/+11
| | | | Notes: svn path=/head/; revision=316949
* Merge bmake-20170301Simon J. Gerraty2017-03-062-2/+27
| | | | Notes: svn path=/head/; revision=314808
* Merge bmake-20160307Simon J. Gerraty2016-03-114-6/+18
| | | | Notes: svn path=/head/; revision=296637
* Merge bmake-20151201Simon J. Gerraty2015-12-084-6/+10
| | | | Notes: svn path=/head/; revision=291978
* Merge bmake 20151020Simon J. Gerraty2015-10-232-2/+54
| | | | Notes: svn path=/head/; revision=289842
* Merge bmake-20150505 improve detection of malformed conditionals.Simon J. Gerraty2015-05-103-2/+35
| | | | Notes: svn path=/head/; revision=282740
* Merge bmake-20150418Simon J. Gerraty2015-04-2170-440/+1452
| | | | | | | PR: 199486 Notes: svn path=/head/; revision=281812
* Merge bmake-20130904Simon J. Gerraty2013-09-053-2/+16
| | | | Notes: svn path=/head/; revision=255253
* Merge bmake-20130730Simon J. Gerraty2013-08-021-3/+3
| | | | | | | | Main feature of interest is .MAKE.JOB.PREFIX= to suppress --- job --- tokens. Notes: svn path=/head/; revision=253883
* Update to bmake-20130330Simon J. Gerraty2013-04-023-2/+37
| | | | Notes: svn path=/head/; revision=249033