mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
5a96197b4e
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 <mmeffie@sinenomine.net> Reviewed-by: Cheyenne Wills <cwills@sinenomine.net> Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
44 lines
1.4 KiB
Makefile
44 lines
1.4 KiB
Makefile
# Build rules for the OpenAFS test suite.
|
|
|
|
srcdir=@srcdir@/../src/external/c-tap-harness/tests
|
|
abs_top_srcdir=@abs_top_srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
MODULE_CFLAGS = -DC_TAP_SOURCE='"$(abs_top_srcdir)/tests"' \
|
|
-DC_TAP_BUILD='"$(abs_top_builddir)/tests"'
|
|
|
|
SUBDIRS = tap common auth util cmd volser opr rx
|
|
|
|
all: runtests
|
|
@for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
|
|
|
|
runtests: runtests.o
|
|
$(AFS_LDRULE) 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_=$(RUNTESTS_V$(V)_DEFAULT)
|
|
RUNTESTS_ARGS=$(RUNTESTS_DEFAULT_$(TESTS)) $(TESTS)
|
|
|
|
# To run specific tests, run e.g. 'make check TESTS="rx/foo opr/foo"'
|
|
check test tests: runtests
|
|
@for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
|
|
MAKECHECK=1 $(abs_top_srcdir)/tests/libwrap @TOP_OBJDIR@/lib \
|
|
./runtests $(RUNTESTS_ARGS)
|
|
|
|
install:
|
|
|
|
clean distclean:
|
|
@for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
|
|
$(RM) -f *.o core runtests
|