freebsd-src/unit-tests/varmod-subst-regex.exp
Simon J. Gerraty ee914ef902 Import bmake-20210621
Lots more unit tests and code cleanup

Relevant changes from ChangeLog

	o job.c: Print -de error information when running multiple jobs
	o var.c: only report error for unmatched regex subexpression
	when linting (-dL) since we cannot tell when an unmatched
	subexpression is an expected result.
	reduce memory allocations in the modifiers ':D' and ':U'
	reduce memory allocation and strlen calls in modifier ':from=to'
	in the ':Q' modifier, only allocate memory if necessary
	improve performance for LazyBuf
	reduce debug logging and memory allocation for ${:U...}
	reduce verbosity of the -dv debug logging for standard cases
	fix double varname expansion in the variable modifier '::='
	o var.c: avoid evaluating many modifiers in parse only mode
	in strict mode (-dL) many variable references are parsed twice,
	the first time just to report parse errors early, so we want to
	avoid side effects and wasted effort to the extent possible.
2021-06-25 11:16:24 -07:00

47 lines
1.5 KiB
Plaintext

make: Regex compilation error: (details omitted)
mod-regex-compile-error: C,word,____,:Q}.
make: No subexpression \1
make: No subexpression \1
make: No subexpression \1
make: No subexpression \1
mod-regex-limits:11-missing:1 6
mod-regex-limits:11-ok:1 22 446
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
mod-regex-limits:22-missing:1 6
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
make: No subexpression \2
mod-regex-limits:22-missing:1 6
mod-regex-limits:22-ok:1 33 556
mod-regex-limits:capture:ihgfedcbaabcdefghijABCDEFGHIJa0a1a2rest
make: Regex compilation error: (details omitted)
mod-regex-errors:
make: Unknown modifier "Z"
mod-regex-errors: xy
unmatched-subexpression.ok: one one 2 3 5 8 one3 2one 34
make: No match for subexpression \2
unmatched-subexpression.1: ()()
make: No match for subexpression \2
unmatched-subexpression.1: ()()
make: No match for subexpression \1
unmatched-subexpression.2: ()()
unmatched-subexpression.3: 3
unmatched-subexpression.5: 5
unmatched-subexpression.8: 8
make: No match for subexpression \2
unmatched-subexpression.13: (3)()
make: No match for subexpression \1
unmatched-subexpression.21: ()(1)
unmatched-subexpression.34: 34
make: No match for subexpression \2
make: No match for subexpression \2
make: No match for subexpression \1
make: No match for subexpression \2
make: No match for subexpression \1
unmatched-subexpression.all: ()() ()() ()() 3 5 8 (3)() ()(1) 34
exit status 2