mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 15:00:12 +00:00
dce5e012fe
The change to cleanup temporary files after tests
(0c3670914a
) broke all attempts
to run the tests using libwrap, as it would cause libwrap to run
the binary named "MAKECHECK=1"
Move the variable defintion before the libwrap invocation to fix this.
Change-Id: I330267c9b53483abccf43d60a7dc8f8d973c3959
Reviewed-on: http://gerrit.openafs.org/8356
Reviewed-by: Derrick Brashear <shadow@your-file-system.com>
Tested-by: Derrick Brashear <shadow@your-file-system.com>
33 lines
926 B
Makefile
33 lines
926 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 = -DSOURCE='"$(abs_top_srcdir)/tests"' \
|
|
-DBUILD='"$(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 ./libwrap @TOP_OBJDIR@/lib \
|
|
./runtests $(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
|