mirror of
https://git.openafs.org/openafs.git
synced 2025-01-18 23:10:58 +00:00
1bc528d008
Pull the common code for creating a configuration directory out of the keys and superuser tests into a single file. This both cleans up the existing tests, and makes it easier to add new ones. Change-Id: I08058117e08da3a3baf750b3b14ef6780f942206 Reviewed-on: http://gerrit.openafs.org/4049 Tested-by: BuildBot <buildbot@rampaginggeek.com> Reviewed-by: Derrick Brashear <shadow@dementia.org> Tested-by: Derrick Brashear <shadow@dementia.org>
48 lines
1.1 KiB
Makefile
48 lines
1.1 KiB
Makefile
|
|
srcdir=@srcdir@
|
|
abs_top_builddir=@abs_top_builddir@
|
|
include @TOP_OBJDIR@/src/config/Makefile.config
|
|
include @TOP_OBJDIR@/src/config/Makefile.pthread
|
|
|
|
TESTS = superuser-t keys-t
|
|
|
|
MODULE_CFLAGS=-I$(srcdir)/..
|
|
|
|
all check test tests: $(TESTS)
|
|
|
|
MODULE_LIBS = ../tap/libtap.a \
|
|
$(abs_top_builddir)/lib/libafsauthent.a \
|
|
$(abs_top_builddir)/lib/libafsrpc.a \
|
|
$(abs_top_builddir)/lib/libafshcrypto.a \
|
|
$(LIB_rfc3961) $(LIB_roken) -lafsutil\
|
|
$(XLIBS)
|
|
|
|
superuser-t: superuser-t.o common.o test.cs.o test.ss.o test.xdr.o
|
|
$(AFS_LDRULE) superuser-t.o common.o \
|
|
test.cs.o test.ss.o test.xdr.o \
|
|
$(MODULE_LIBS)
|
|
|
|
keys-t: keys-t.o common.o
|
|
$(AFS_LDRULE) keys-t.o common.o $(MODULE_LIBS)
|
|
|
|
writekeyfile: writekeyfile.o
|
|
$(AFS_LDRULE) writekeyfile.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 common.h
|
|
|
|
clean:
|
|
rm -f *.o *.cs.c *.ss.c *.xdr.c test.h \
|
|
writekeyfile superuser-t keys-t
|