Add a Python test to run t_spnego
authorGreg Hudson <ghudson@mit.edu>
Fri, 5 Mar 2010 20:33:37 +0000 (20:33 +0000)
committerGreg Hudson <ghudson@mit.edu>
Fri, 5 Mar 2010 20:33:37 +0000 (20:33 +0000)
git-svn-id: svn://anonsvn.mit.edu/krb5/trunk@23771 dc483132-0cff-0310-8789-dd5450dbe970

src/tests/gssapi/Makefile.in
src/tests/gssapi/t_gssapi.py [new file with mode: 0644]

index 6a154140e6be8aeb39db5e86b2fb1fbb031766c3..17d05878df9404b6c6c3e45af0eebfc535ea424a 100644 (file)
@@ -8,8 +8,12 @@ SRCS= $(srcdir)/t_imp_name.c $(srcdir)/t_s4u.c $(srcdir)/t_namingexts.c $(srcdir
 
 OBJS= t_imp_name.o t_s4u.o t_namingexts.o t_gssexts.o
 
+PYTESTS= t_gssapi.py
+
 all:: t_imp_name t_s4u t_namingexts t_gssexts t_spnego
 
+check-pytests:: t_spnego
+
 t_imp_name: t_imp_name.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
        $(CC_LINK) -o t_imp_name t_imp_name.o $(GSS_LIBS) $(KRB5_BASE_LIBS)
 t_s4u: t_s4u.o $(GSS_DEPLIBS) $(KRB5_BASE_DEPLIBS)
diff --git a/src/tests/gssapi/t_gssapi.py b/src/tests/gssapi/t_gssapi.py
new file mode 100644 (file)
index 0000000..d88f794
--- /dev/null
@@ -0,0 +1,7 @@
+#!/usr/bin/python
+from k5test import *
+
+for realm in multipass_realms():
+    realm.run_as_client(['./t_spnego', realm.host_princ, realm.keytab])
+
+success('GSSAPI test programs (SPNEGO only).')