Skip to content

Commit

Permalink
Add ccache marshalling tests
Browse files Browse the repository at this point in the history
Add a new ccache test program t_marshal.c which verifies the new
marshalling functions and also the FILE ccache type against the
expected representations of the ccache header, default principal, and
credentials.
  • Loading branch information
greghudson committed May 17, 2014
1 parent 99e1d7a commit a4e5127
Show file tree
Hide file tree
Showing 4 changed files with 415 additions and 2 deletions.
2 changes: 2 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -188,6 +188,8 @@ testlog

/src/lib/krb5/ccache/t_cc
/src/lib/krb5/ccache/t_cccursor
/src/lib/krb5/ccache/t_marshal
/src/lib/krb5/ccache/testcache

/src/lib/krb5/error_tables/*_err.[ch]

Expand Down
12 changes: 10 additions & 2 deletions src/lib/krb5/ccache/Makefile.in
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,8 @@ SRCS= $(srcdir)/ccbase.c \
EXTRADEPSRCS= \
$(srcdir)/t_cc.c \
$(srcdir)/t_cccol.c \
$(srcdir)/t_cccursor.c
$(srcdir)/t_cccursor.c \
$(srcdir)/t_marshal.c

##DOS##OBJS=$(OBJS) $(OUTPRE)ccfns.$(OBJEXT)

Expand Down Expand Up @@ -115,15 +116,22 @@ T_CCCURSOR_OBJS = t_cccursor.o
t_cccursor: $(T_CCCURSOR_OBJS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o $@ $(T_CCCURSOR_OBJS) $(KRB5_BASE_LIBS)

check-unix:: t_cc
T_MARSHAL_OBJS = t_marshal.o
t_marshal: $(T_MARSHAL_OBJS) $(KRB5_BASE_DEPLIBS)
$(CC_LINK) -o $@ $(T_MARSHAL_OBJS) $(KRB5_BASE_LIBS)

check-unix:: t_cc t_marshal
KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
$(RUN_SETUP) $(VALGRIND) ./t_cc
KRB5_CONFIG=$(srcdir)/t_krb5.conf ; export KRB5_CONFIG ;\
$(RUN_SETUP) $(VALGRIND) ./t_marshal testcache

check-pytests:: t_cccursor t_cccol
$(RUNPYTEST) $(srcdir)/t_cccol.py $(PYTESTFLAGS)

clean-unix::
$(RM) t_cc t_cc.o t_cccursor t_cccursor.o t_cccol t_cccol.o
$(RM) t_marshal t_marshal.o testcache

##WIN32## $(OUTPRE)cc_mslsa.$(OBJEXT): cc_mslsa.c $(top_srcdir)/include/k5-int.h $(BUILDTOP)/include/krb5/osconf.h $(BUILDTOP)/include/krb5/autoconf.h $(BUILDTOP)/include/krb5.h $(COM_ERR_DEPS)

Expand Down

0 comments on commit a4e5127

Please sign in to comment.