Rename libcom_err to libafscom_err
[openafs.git] / src / kauth / test / Makefile.in
1 # Copyright 2000, International Business Machines Corporation and others.
2 # All Rights Reserved.
3
4 # This software has been released under the terms of the IBM Public
5 # License.  For details, see the LICENSE file in the top-level source
6 # directory or online at http://www.openafs.org/dl/license10.html
7
8 srcdir=@srcdir@
9 include @TOP_OBJDIR@/src/config/Makefile.config
10 INSTALL = @INSTALL@
11 INSTALL_DATA = @INSTALL_DATA@
12 INSTALL_PROGRAM = @INSTALL_PROGRAM@
13 INSTALL_SCRIPT = @INSTALL_SCRIPT@
14
15 INCDIRS= -I${DESTDIR}/include -I..
16 LDIRS= -L${DESTDIR}/lib -L${DESTDIR}/lib/afs -L..
17 LIBS= -llwp -ldes -lrxkad -lauth -lcmd -lubik -lprot -lsys -lrx -lafscom_err -lkauth
18
19 # the only tests _known_ to work are multiklog and the tcl scripts.
20
21 all test tests: multiklog 
22
23 install:
24 dest:
25
26 clean:
27         $(RM) -f *.o core
28
29 multiklog: multiklog.o
30         $(AFS_LDRULE) multiklog.o ${LDIRS} ${LIBS} -lafsutil
31
32 test_date: ../kautils.o test_date.o ${utilib}
33         $(AFS_LDRULE) test_date.o ../kautils.o ${LDIRS} ${LIBS} -lafsutil
34
35 test_badtix: test_badtix.o
36         $(AFS_LDRULE) test_badtix.o ${LDIRS} ${LIBS}
37
38 decode_ticket: decode_ticket.o
39         $(AFS_LDRULE) decode_ticket.o ${LDIRS} ${LIBS}
40
41 test_interim_ktc: test_interim_ktc.o
42         $(AFS_LDRULE) test_interim_ktc.o ${LDIRS} ${LIBS}
43
44 test_rxkad_free: test_rxkad_free.o 
45         $(AFS_LDRULE) test_rxkad_free.o ${LDIRS} ${LIBS}
46
47 test_getticket: test_getticket.o 
48         $(AFS_LDRULE) test_getticket.o ${LDIRS} ${LIBS}
49
50 background: background.c
51         $(CC) $(AFS_CPPFLAGS) $(AFS_CFLAGS) $(AFS_LDFLAGS) \
52                 ${LDIRS} ${LIBS} -o background background.c
53
54 # test_interim_ktc depends on normally running ka & pr servers.  Also on
55 # the current user having write access to the working directory.  Also
56 # on the user "tester" being defined with ViceId=1031.  The password
57 # must be specified on the make line the others can be overridden by
58 # specifying a value for TESTERVALUES.  To test remote authentication, a
59 # test account in another cell must be available.  The default is the
60 # cell "cellname" and the user tester with Vice Id 510, and the
61 # same password as in the local cell.  These can be over-ridden by
62 # specifying a difference value for REMOTETESTER.  An empty value for
63 # REMOTETESTER will disable testing of remote authentication.
64
65 TESTERNAME=xxx
66 TESTERPASSWORD=xxx
67 #TESTERVALUES=-tester tester -testId 1031
68 TESTERVALUES=
69 REMOTEPASSWORD=${TESTERPASSWORD}
70 REMOTETESTER=-remoteTester $(TESTERNAME) -remoteTestPassword ${REMOTEPASSWORD} -remoteTestId 510 -remoteCell cellname
71
72 # test_kaserver starts a server in the background and tests it.
73
74 # test_rxkad_free checks for rxkad object/connection usage and checks for
75 #   core leaks.  Normally it makes 100 calls to the kaserver, doing a GetEntry
76 #   call.  This requests an admin ticket 100 times and creates a ubik
77 #   connection 100 times.  With the -doauth switch specified it calls
78 #   ka_UserAuthenticate instead, which uses rxnull connections, but also
79 #   exercises the ptserver code, particularly, pr_Initialize, 100 times.
80
81 runtest: background multiklog test_badtix test_interim_ktc test_rxkad_free
82         test_interim_ktc ${TESTERVALUES} -testPassword ${TESTERPASSWORD} ${REMOTETESTER}
83         test_kaserver
84         test_rxkad_free -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
85         test_rxkad_free -doauth -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)