sjg
df910819de
Revised patch for catching extraneous .else's
...
We actually need to tack condTop and skipIfLevel.
Bump MAXIF while here.
Enhance the unit-test for conditionals to exercise more code.
PR: 24420
2004-04-08 07:24:26 +00:00
sjg
8bef426d13
Add check for extraneous .else's - based on patch from Arne H. Juul
...
in PR/24420.
Add a unit-test for conditionals.
Also in the unit-test makefile strip any .CURDIR in output.
PR: 24420
2004-04-08 00:59:01 +00:00
sjg
a3cc11808b
Fix :M so that modifiers in nested variables don't terminate parsing
...
early. Add a unit-test to verify it works and keeps working.
Re-jig the unit-tests so that all are sub makefiles.
2004-02-20 09:03:26 +00:00
sjg
4d32648363
ternary is .PHONY
2004-01-19 00:32:26 +00:00
sjg
71746b839b
Add unit test for ternary modifier
2004-01-09 00:56:44 +00:00
sjg
d388dcd1a3
Implement :[] modifier to allow picking a range of words out of a variable.
...
Also :tW and a W flag to :C and :S to allow treating value as a single word.
Add unit tests for the above, and fix some corner cases.
Based on patches supplied by Alan Barrett <apb@cequrux.com>
2003-09-27 21:29:37 +00:00
sjg
a41eaef46a
Hook make unit-tests into regress
2003-08-08 06:42:38 +00:00
sjg
3dfdacc170
Avoid \a as a test of invalid separator, since if we make ksh the default
...
shell, we get different results. \x seems safe.
2003-08-01 04:57:20 +00:00
sjg
1ebbf35953
Test behavior of commandline variable assignments.
2003-07-31 00:46:15 +00:00
sjg
b806b12f2d
First bug picked up by the unit tests - delim wasn't always initialized.
...
Avoid putting '\' in test case script lines since shell's like that on
SunOS insist on interpreting them.
2003-07-29 08:44:41 +00:00
sjg
e3cd1dc68c
Use single quotes to protect everything from shell's that might
...
alter the results.
2003-07-29 08:16:01 +00:00
sjg
6b9a4c9477
Regardless of the name of TEST_MAKE, force it to make in test.exp
...
to avoid needless failures.
2003-07-29 06:35:09 +00:00
sjg
db7ca3c993
Fix parsing bug for :ts - patch from Alan Barrett <apb@cequrux.com>
...
Also add simple unit-test jig (regress/usr.bin/make will use it too)
but having it local here makes inclusion in bmake simpler.
2003-07-28 22:52:10 +00:00