mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +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>
57 lines
1.6 KiB
Makefile
57 lines
1.6 KiB
Makefile
|
|
srcdir=@srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
BINS = authcon-t superuser-t keys-t realms-t writekeyfile
|
|
|
|
MODULE_CFLAGS=-I$(TOP_OBJDIR) -I$(srcdir)/../common/
|
|
|
|
all check test tests: $(BINS)
|
|
|
|
MODULE_LIBS = ../tap/libtap.a \
|
|
$(abs_top_builddir)/src/auth/liboafs_auth.la \
|
|
$(LIB_rfc3961) $(LIB_roken) \
|
|
$(XLIBS)
|
|
|
|
authcon-t: authcon-t.o ../common/config.o ../common/network.o
|
|
$(LT_LDRULE_static) authcon-t.o ../common/config.o ../common/network.o \
|
|
$(MODULE_LIBS)
|
|
|
|
superuser-t: superuser-t.o ../common/config.o ../common/rxkad.o \
|
|
test.cs.o test.ss.o test.xdr.o ../common/network.o \
|
|
../common/misc.o
|
|
$(LT_LDRULE_static) superuser-t.o ../common/config.o \
|
|
../common/rxkad.o ../common/servers.o \
|
|
test.cs.o test.ss.o test.xdr.o ../common/network.o \
|
|
../common/misc.o $(MODULE_LIBS)
|
|
|
|
keys-t: keys-t.o ../common/config.o ../common/network.o
|
|
$(LT_LDRULE_static) keys-t.o ../common/config.o ../common/network.o $(MODULE_LIBS)
|
|
|
|
realms-t: realms-t.o ../common/config.o ../common/network.o
|
|
$(LT_LDRULE_static) realms-t.o ../common/config.o ../common/network.o $(MODULE_LIBS)
|
|
|
|
writekeyfile: writekeyfile.o ../common/config.o
|
|
$(LT_LDRULE_static) writekeyfile.o ../common/config.o $(MODULE_LIBS)
|
|
|
|
test.cs.c: test.xg
|
|
$(RXGEN) -A -x -C -o $@ $(srcdir)/test.xg
|
|
|
|
test.ss.c: test.xg
|
|
$(RXGEN) -A -x -S -o $@ $(srcdir)/test.xg
|
|
|
|
test.xdr.c: test.xg
|
|
$(RXGEN) -A -x -c -o $@ $(srcdir)/test.xg
|
|
|
|
test.h: test.xg
|
|
$(RXGEN) -A -x -h -o $@ $(srcdir)/test.xg
|
|
|
|
superuser-t.o: test.h
|
|
|
|
clean:
|
|
$(LT_CLEAN)
|
|
rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
|
|
$(BINS)
|