<pre style='margin:0'>
Christopher Nielsen (mascguy) pushed a commit to branch master
in repository macports-legacy-support.
</pre>
<p><a href="https://github.com/macports/macports-legacy-support/commit/ed58217dc3cfcf267843c9ee395219826c805393">https://github.com/macports/macports-legacy-support/commit/ed58217dc3cfcf267843c9ee395219826c805393</a></p>
<pre style="white-space: pre; background: #F8F8F8"><span style='display:block; white-space:pre;color:#808000;'>commit ed58217dc3cfcf267843c9ee395219826c805393
</span>Author: Fred Wright <fw@fwright.net>
AuthorDate: Sun Jun 23 15:49:51 2024 -0700
<span style='display:block; white-space:pre;color:#404040;'> Makefile: Implement TEST_ARGS option.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> This allows passing command-line options to tests invoked via the
</span><span style='display:block; white-space:pre;color:#404040;'> "make" command.
</span><span style='display:block; white-space:pre;color:#404040;'>
</span><span style='display:block; white-space:pre;color:#404040;'> TESTED:
</span><span style='display:block; white-space:pre;color:#404040;'> Works with old checksdkflagvalues, that had -v arg.
</span>---
Makefile | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
<span style='display:block; white-space:pre;color:#808080;'>diff --git a/Makefile b/Makefile
</span><span style='display:block; white-space:pre;color:#808080;'>index c26c1d1..e828f4a 100644
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>--- a/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0ff;'>+++ b/Makefile
</span><span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -66,8 +66,9 @@ ALLCXXFLAGS := $(ARCHFLAGS) $(XCXXFLAGS) $(CXXFLAGS)
</span> LD ?= ld
LDFLAGS ?=
ALLLDFLAGS := $(ARCHFLAGS) $(LDFLAGS)
<span style='display:block; white-space:pre;background:#ffe0e0;'>-AR ?= ar
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+TEST_ARGS ?=
</span>
<span style='display:block; white-space:pre;background:#e0ffe0;'>+AR ?= ar
</span> UNAME ?= uname
SED ?= /usr/bin/sed
GREP ?= /usr/bin/grep
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -332,7 +333,7 @@ test_faccessat_setuid_msg:
</span> @echo 'Run "sudo make test_faccessat_setuid" to test faccessat properly (Not on 10.4)'
$(TESTRUNS): $(TESTRUNPREFIX)%: $(TESTNAMEPREFIX)%
<span style='display:block; white-space:pre;background:#ffe0e0;'>- $<
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $< $(TEST_ARGS)
</span>
# The "dirfuncs_compat" test includes the fdopendir test source
$(TESTNAMEPREFIX)dirfuncs_compat.o: $(TESTNAMEPREFIX)fdopendir.c
<span style='display:block; white-space:pre;background:#e0e0e0;'>@@ -346,7 +347,7 @@ $(TESTNAMEPREFIX)strncpy_chk_force0.o: $(TESTNAMEPREFIX)strncpy_chk.c
</span> $(TESTNAMEPREFIX)strncpy_chk_force1.o: $(TESTNAMEPREFIX)strncpy_chk.c
$(MANTESTRUNS): $(MANRUNPREFIX)%: $(MANTESTPREFIX)%
<span style='display:block; white-space:pre;background:#ffe0e0;'>- $<
</span><span style='display:block; white-space:pre;background:#e0ffe0;'>+ $< $(TEST_ARGS)
</span>
install: install-headers install-lib
</pre><pre style='margin:0'>
</pre>