CFLAGS = $(CCOPTS) $(DEFS) $(LOCALINCLUDE) -DUSE_KADM5_API_VERSION=1
all:: init-test destroy-test client-handle-test client-iter-test
-all:: randkey-test server-handle-test lock-test server-iter-test sizes-test
+all:: randkey-test server-handle-test lock-test server-iter-test
#
# The client-side test programs.
$(CLNTLIBS)
client_init.o: $(SRCTOP)/lib/kadm5/clnt/client_init.c
- $(CC) $(CFLAGS) -DUSE_KADM5_API_VERSION=2 -DINIT_TEST -c -I$(SRCTOP)/lib/kadm5 $<
+ $(CC) $(CFLAGS) -DUSE_KADM5_API_VERSION=2 -DINIT_TEST -c -I$(SRCTOP)/lib/kadm5 $(SRCTOP)/lib/kadm5/clnt/client_init.c
destroy-test: destroy-test.o $(CLNTDEPLIBS)
$(LD) $(LDFLAGS) $(LDARGS) -o destroy-test destroy-test.o $(CLNTLIBS)
server-iter-test: iter-test.o $(SRVDEPLIBS)
$(LD) $(LDFLAGS) $(LDARGS) -o server-iter-test iter-test.o $(SRVLIBS)
-sizes-test: sizes-test.o $(SRVDEPLIBS)
- $(LD) $(LDFLAGS) $(LDARGS) -o sizes-test sizes-test.o $(SRVLIBS)
-
#
# The unit-test targets
#
test-destroy: destroy-test
$(ENV_SETUP) ./destroy-test
-test-sizes: sizes-test
- $(ENV_SETUP) ./sizes-test
-
unit-test-client-setup::
$(ENV_SETUP) $(START_SERVERS)
unit-test-server-cleanup::
$(ENV_SETUP) $(STOP_SERVERS_LOCAL)
-unit-test-client-body: capi.0 capi.2 site.exp test-noauth test-destroy test-handle-client test-sizes
+unit-test-client-body: capi.0 capi.2 site.exp test-noauth test-destroy test-handle-client
$(ENV_SETUP) $(RUNTEST) --tool capi API=$(CLNTTCL) KINIT=$(BUILDTOP)/clients/kinit/kinit KDESTROY=$(BUILDTOP)/clients/kdestroy/kdestroy KADMIN_LOCAL=$(BUILDTOP)/kadmin/cli/kadmin.local RPC=1
#
-rm -f $(srcdir)/sapi.2
ln -s $(srcdir)/api.2 $(srcdir)/sapi.2
-unit-test-server-body: sapi.0 sapi.1 sapi.2 site.exp randkey-test test-handle-server lock-test test-sizes
+unit-test-server-body: sapi.0 sapi.1 sapi.2 site.exp randkey-test test-handle-server lock-test
$(ENV_SETUP) $(RUNTEST) --tool sapi API=$(SRVTCL) LOCKTEST=./lock-test KADMIN_LOCAL=$(BUILDTOP)/kadmin/cli/kadmin.local RPC=0
clean::
$(RM) server-handle-test handle-test.o
$(RM) lock-test lock-test.o
$(RM) server-iter-test iter-test.o
- $(RM) sizes-test sizes-test.o
$(RM) *.log *.plog *.sum *.psum unit-test-log.*
+++ /dev/null
-#include <stdio.h>
-#include <rpc/types.h>
-#include <krb5.h>
-
-#define stringify(a) #a
-
-#define test_size(a,b) if (sizeof(a) != sizeof(b)) { \
- fprintf(stderr, "sizeof(%s) != sizeof(%s)\n", stringify(a), stringify(b)); \
- exit(1); \
-}
-
-main()
-{
- test_size(unsigned long, krb5_ui_4);
- test_size(long, krb5_timestamp);
- test_size(long, krb5_deltat);
- test_size(long, krb5_flags);
-
- exit(0);
-}
-