mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
624219a1b2
The SOURCE and BUILD environment variables have been changed to C_TAP_SOURCE and C_TAP_BUILD in the new version of c-tap-harness. The runtests command syntax has changed as well. Convert all of the old SOURCE and BUILD environment variables to the new C_TAP_SOURCE and C_TAP_BUILD names. Add the required -l command line option to specify the test list. Add the new runtests -v option to run the tests in verbose mode to make it easier to see which tests failed. Change-Id: I209a6dc13d6cd1507519234fce1564fc4641e70b Reviewed-on: https://gerrit.openafs.org/14295 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Andrew Deason <adeason@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
33 lines
966 B
Makefile
33 lines
966 B
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
|
|
|
|
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 -v -l $(abs_top_srcdir)/tests/TESTS
|
|
|
|
install:
|
|
|
|
clean distclean:
|
|
@for A in $(SUBDIRS); do cd $$A && $(MAKE) $@ && cd .. || exit 1; done
|
|
$(RM) -f *.o core runtests
|