From: Andrew Deason Date: Mon, 28 Dec 2020 18:22:38 +0000 (-0600) Subject: tests: Avoid verbose output for 'make check V=0' X-Git-Url: https://git.openafs.org/?p=openafs.git;a=commitdiff_plain;h=5a96197b4e0b1fd3733cd4807b09855c2a8bdbd2;hp=004c797daa2e3ebad5d415c5e63ff0dab43bf7d7 tests: Avoid verbose output for 'make check V=0' For "pretty" V=0 builds, change 'make check' to run 'runtests' in non-verbose mode, so we just get a summary of test results, instead of the raw test output. Without V=0, the default is unchanged, so we still print out all test output by default. Change-Id: I554f9d32ed5a9cd27e83fef6245af589d91e801f Reviewed-on: https://gerrit.openafs.org/14619 Reviewed-by: Michael Meffie Reviewed-by: Cheyenne Wills Tested-by: BuildBot Reviewed-by: Benjamin Kaduk --- diff --git a/tests/Makefile.in b/tests/Makefile.in index fcf443c..8ed8e34 100644 --- a/tests/Makefile.in +++ b/tests/Makefile.in @@ -20,12 +20,14 @@ runtests: runtests.o runtests.o: $(srcdir)/runtests.c $(AFS_CCRULE) $(srcdir)/runtests.c +RUNTESTS_V0_DEFAULT=-l $(abs_top_srcdir)/tests/TESTS +RUNTESTS_V1_DEFAULT=-v -l $(abs_top_srcdir)/tests/TESTS # If $(TESTS) is blank, RUNTESTS_ARGS will expand to RUNTESTS_DEFAULT_, so # we'll run our default list of tests. If $(TESTS) is not blank, # $(RUNTESTS_DEFAULT_$(TESTS)) will expand into nothing, so RUNTESTS_ARGS will # just become effectively $(TESTS). -RUNTESTS_DEFAULT_=-v -l $(abs_top_srcdir)/tests/TESTS +RUNTESTS_DEFAULT_=$(RUNTESTS_V$(V)_DEFAULT) RUNTESTS_ARGS=$(RUNTESTS_DEFAULT_$(TESTS)) $(TESTS) # To run specific tests, run e.g. 'make check TESTS="rx/foo opr/foo"'