mirror of
https://github.com/opnsense/src.git
synced 2026-06-08 16:22:46 -04:00
Add a test for what was fixed in revisions 1.39 and 1.50 of
make/parse.c (allow embedded `:' and `!' in target names). Approved by: re
This commit is contained in:
parent
113cf9e649
commit
be8b43b4c7
2 changed files with 18 additions and 0 deletions
|
|
@ -38,6 +38,9 @@ all:
|
|||
@echo "Running test modifiers"
|
||||
@${MAKE} modifiers || ${MAKE} failure
|
||||
@echo "PASS: Test modifiers detected no regression."
|
||||
@echo "Running test funny_targets"
|
||||
@${MAKE} funny_targets || ${MAKE} failure
|
||||
@echo "PASS: Test funny_targets detected no regression."
|
||||
|
||||
.if make(double)
|
||||
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
|
||||
|
|
@ -81,6 +84,12 @@ modifiers:
|
|||
fi
|
||||
.endif
|
||||
|
||||
.if make(funny_targets)
|
||||
funny_targets: colons::target exclamation!target
|
||||
colons::target:
|
||||
exclamation!target:
|
||||
.endif
|
||||
|
||||
failure:
|
||||
@echo "FAIL: Test failed: regression detected. See above."
|
||||
@false
|
||||
|
|
|
|||
|
|
@ -38,6 +38,9 @@ all:
|
|||
@echo "Running test modifiers"
|
||||
@${MAKE} modifiers || ${MAKE} failure
|
||||
@echo "PASS: Test modifiers detected no regression."
|
||||
@echo "Running test funny_targets"
|
||||
@${MAKE} funny_targets || ${MAKE} failure
|
||||
@echo "PASS: Test funny_targets detected no regression."
|
||||
|
||||
.if make(double)
|
||||
# Doubly-defined targets. make(1) will warn, but use the "right" one. If it
|
||||
|
|
@ -81,6 +84,12 @@ modifiers:
|
|||
fi
|
||||
.endif
|
||||
|
||||
.if make(funny_targets)
|
||||
funny_targets: colons::target exclamation!target
|
||||
colons::target:
|
||||
exclamation!target:
|
||||
.endif
|
||||
|
||||
failure:
|
||||
@echo "FAIL: Test failed: regression detected. See above."
|
||||
@false
|
||||
|
|
|
|||
Loading…
Reference in a new issue