summaryrefslogtreecommitdiff
path: root/HACKING
diff options
context:
space:
mode:
authorPaul Eggert <eggert@cs.ucla.edu>2012-02-29 00:36:26 -0800
committerPaul Eggert <eggert@cs.ucla.edu>2012-03-01 07:46:03 -0800
commit235aad711285fc6978f6ff26397743930b23f79a (patch)
tree06c27072a115e58d1373382a4c3c8989d921e118 /HACKING
parent3732fd2b98692a1e58fa7254fc0cacab8136fb11 (diff)
downloadgrep-235aad711285fc6978f6ff26397743930b23f79a.tar.gz
tests: test for problems with long matches
The new test is expensive, so add a category of expensive tests, which are normally not run, and put the new test in this new category. The idea of having expensive tests is taken from coreutils. * HACKING: Mention RUN_EXPENSIVE_TESTS and similar env vars. * Makefile.am (check-expensive): New rule. * tests/Makefile.am (TESTS): Add big-match. * tests/init.cfg (expensive_): New function, from coreutils. * tests/big-match: New file.
Diffstat (limited to 'HACKING')
-rw-r--r--HACKING6
1 files changed, 6 insertions, 0 deletions
diff --git a/HACKING b/HACKING
index 6a9d5880..be399050 100644
--- a/HACKING
+++ b/HACKING
@@ -415,6 +415,12 @@ as possible. Note to run tests/new-test in isolation you can do:
(cd tests && make check TESTS=new-test VERBOSE=yes)
+Variables that are significant for tests with their default values are:
+
+ VERBOSE=yes
+ RUN_EXPENSIVE_TESTS=no
+ SHELL=/bin/sh
+
There are many tests in the tests/ directories. Use one of the
init.sh-using scripts as a template.