[47324] trunk/base/tests/Makefile
raimue at macports.org
raimue at macports.org
Wed Feb 25 16:29:21 PST 2009
Revision: 47324
http://trac.macports.org/changeset/47324
Author: raimue at macports.org
Date: 2009-02-25 16:29:21 -0800 (Wed, 25 Feb 2009)
Log Message:
-----------
tests/Makefile:
Add some documentation for the test targets
Modified Paths:
--------------
trunk/base/tests/Makefile
Modified: trunk/base/tests/Makefile
===================================================================
--- trunk/base/tests/Makefile 2009-02-26 00:22:21 UTC (rev 47323)
+++ trunk/base/tests/Makefile 2009-02-26 00:29:21 UTC (rev 47324)
@@ -34,6 +34,9 @@
@echo "Please install MacPorts before running these tests"
@exit 1
+# Run all tests
+# Use TESTS to choose which tests to run
+# For example: make test TESTS="checkums-1 universal"
test: clean /tmp/macports-tests/ports/PortIndex /tmp/macports-tests/opt/local/etc/macports/sources.conf
@for testname in $(TESTS); do\
subdir=test/$$testname; \
@@ -58,6 +61,9 @@
@rm -rf /tmp/macports-tests/
@rm -f PortIndex
+# Run specific test
+# Prepend the directory name with "test-" and use it as target
+# For example: make test-checksums-1
test-%:
$(MAKE) TESTS="$(@:test-%=%)" test
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.macosforge.org/pipermail/macports-changes/attachments/20090225/03d2894c/attachment.html>
More information about the macports-changes
mailing list