maint: adjust HACKING instructions to run a single test
authorAssaf Gordon <assafgordon@gmail.com>
Thu, 6 Dec 2012 09:58:10 +0000 (09:58 +0000)
committerPádraig Brady <P@draigBrady.com>
Thu, 6 Dec 2012 09:58:55 +0000 (09:58 +0000)
* HACKING: Adjust as per the recent changes introduced
when switching to non recursive make.

HACKING

diff --git a/HACKING b/HACKING
index de8cd7b..f3f961a 100644 (file)
--- a/HACKING
+++ b/HACKING
@@ -438,9 +438,11 @@ Nearly every significant change must be accompanied by a test suite
 addition that exercises it.  If you fix a bug, add at least one test that
 fails without the patch, but that succeeds once your patch is applied.
 If you add a feature, add tests to exercise as much of the new code
-as possible. Note to run tests/misc/new-test in isolation you can do:
+as possible.  If you add a new test file (as opposed to adding a test to
+an existing test file) add the new test file to 'tests/local.mk'.
+Note to run tests/misc/new-test in isolation you can do:
 
-  (cd tests && make check TESTS=misc/new-test VERBOSE=yes)
+  make TESTS=tests/misc/new-test SUBDIRS=. VERBOSE=yes
 
 Variables that are significant for tests with their default values are: