aboutsummaryrefslogtreecommitdiffstats
path: root/tools/testing/selftests/rcutorture/bin/parse-build.sh
diff options
context:
space:
mode:
authorPaul E. McKenney <paulmck@linux.ibm.com>2019-05-11 20:18:00 -0700
committerPaul E. McKenney <paulmck@linux.ibm.com>2019-05-28 09:06:09 -0700
commitb93c765fda30cadae6aafb9d32a30f9391dc0b41 (patch)
tree8539b04e42f2f76b7d0da6ef535d49b5da257500 /tools/testing/selftests/rcutorture/bin/parse-build.sh
parent7225c0777271bb489ad6fb095aa10985ad138a81 (diff)
downloadtip-b93c765fda30cadae6aafb9d32a30f9391dc0b41.tar.gz
tip-b93c765fda30cadae6aafb9d32a30f9391dc0b41.tar.xz
tip-b93c765fda30cadae6aafb9d32a30f9391dc0b41.zip
torture: Add --trust-make to suppress "make clean"
The current rcutorture scripts unconditionally do "make clean", which is a good way of getting the needed testing done despite any imperfections in Makefile dependency tracking. However, this can be a bit irritating when repeatedly running a single scenario after small changes, for example, when debugging a problem that affects only a single scenario. This commit therefore adds a --trust-make argument that suppresses the "make clean". Even when using ccache, this speeds up kernel builds by up to almost an order of magnitude on my laptop. Reported-by: Peter Zijlstra <peterz@infradead.org> Signed-off-by: Paul E. McKenney <paulmck@linux.ibm.com>
Diffstat (limited to 'tools/testing/selftests/rcutorture/bin/parse-build.sh')
-rwxr-xr-xtools/testing/selftests/rcutorture/bin/parse-build.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/testing/selftests/rcutorture/bin/parse-build.sh b/tools/testing/selftests/rcutorture/bin/parse-build.sh
index 0701b3bf6ade..09155c15ea65 100755
--- a/tools/testing/selftests/rcutorture/bin/parse-build.sh
+++ b/tools/testing/selftests/rcutorture/bin/parse-build.sh
@@ -21,7 +21,7 @@ mkdir $T
. functions.sh
-if grep -q CC < $F
+if grep -q CC < $F || test -n "$TORTURE_TRUST_MAKE"
then
:
else