mirror of
https://git.openafs.org/openafs.git
synced 2025-01-31 13:38:01 +00:00
004c797daa
Currently 'make check' always runs all tests. We can run individual tests manually, but doing so is a bit cumbersome to do under the same environment as 'make check', since doing so means running something like this: $ MAKECHECK=1 $(abs_top_srcdir)/tests/libwrap @TOP_OBJDIR@/lib \ ./runtests opr/fmt util/ktime To make it easier to run single tests introduce a way of calling 'make check' like this: $ make check TESTS='opr/fmt util/ktime' Which will run the same commands as 'make check', but will run runtests with only the specified tests, instead of running the default list. Some makefiles currently use a "TESTS" or "tests" variable to list their test binaries; rename them all to "BINS" to avoid conflicting with this new use for "TESTS" and to make our makefiles a little more consistent. Change-Id: I427f83be0d4571794644a97123bcd1f32427bd05 Reviewed-on: https://gerrit.openafs.org/14317 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Michael Meffie <mmeffie@sinenomine.net> Reviewed-by: Benjamin Kaduk <kaduk@mit.edu>
28 lines
679 B
Makefile
28 lines
679 B
Makefile
# Build rules for the OpenAFS cmd test suite.
|
|
|
|
srcdir=@srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
MODULE_CFLAGS = -I$(TOP_OBJDIR)
|
|
|
|
LIBS = ../tap/libtap.a \
|
|
$(abs_top_builddir)/src/cmd/liboafs_cmd.la \
|
|
$(abs_top_builddir)/src/comerr/liboafs_comerr.la \
|
|
$(abs_top_builddir)/src/opr/liboafs_opr.la \
|
|
$(abs_top_builddir)/src/opr/liboafs_opr.la
|
|
|
|
BINS = command-t
|
|
|
|
all check test tests: $(BINS)
|
|
|
|
command-t: command-t.o $(LIBS)
|
|
$(LT_LDRULE_static) command-t.o $(LIBS) $(LIB_roken) $(XLIBS)
|
|
|
|
install:
|
|
|
|
clean distclean:
|
|
$(LT_CLEAN)
|
|
$(RM) -f $(BINS) *.o core
|