1 # Copyright 2000, International Business Machines Corporation and others.
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
9 include @TOP_OBJDIR@
/src
/config
/Makefile.config
11 INCDIRS
= -I
${DESTDIR}/include -I..
12 LDIRS
= -L
${DESTDIR}/lib
-L
${DESTDIR}/lib
/afs
-L..
13 LIBS
= -llwp
-ldes
-lrxkad
-lauth
-lcmd
-lubik
-lprot
-lsys
-lrx
-lafscom_err
-lkauth
15 # the only tests _known_ to work are multiklog and the tcl scripts.
17 all test tests
: multiklog
25 multiklog
: multiklog.o
26 $(AFS_LDRULE
) multiklog.o
${LDIRS} ${LIBS} -lafsutil
28 test_date
: ..
/kautils.o test_date.o
${utilib}
29 $(AFS_LDRULE
) test_date.o ..
/kautils.o
${LDIRS} ${LIBS} -lafsutil
31 test_badtix
: test_badtix.o
32 $(AFS_LDRULE
) test_badtix.o
${LDIRS} ${LIBS}
34 decode_ticket
: decode_ticket.o
35 $(AFS_LDRULE
) decode_ticket.o
${LDIRS} ${LIBS}
37 test_interim_ktc
: test_interim_ktc.o
38 $(AFS_LDRULE
) test_interim_ktc.o
${LDIRS} ${LIBS}
40 test_rxkad_free
: test_rxkad_free.o
41 $(AFS_LDRULE
) test_rxkad_free.o
${LDIRS} ${LIBS}
43 test_getticket
: test_getticket.o
44 $(AFS_LDRULE
) test_getticket.o
${LDIRS} ${LIBS}
46 background
: background.c
47 $(CC
) $(AFS_CPPFLAGS
) $(AFS_CFLAGS
) $(AFS_LDFLAGS
) \
48 ${LDIRS} ${LIBS} -o background background.c
50 # test_interim_ktc depends on normally running ka & pr servers. Also on
51 # the current user having write access to the working directory. Also
52 # on the user "tester" being defined with ViceId=1031. The password
53 # must be specified on the make line the others can be overridden by
54 # specifying a value for TESTERVALUES. To test remote authentication, a
55 # test account in another cell must be available. The default is the
56 # cell "cellname" and the user tester with Vice Id 510, and the
57 # same password as in the local cell. These can be over-ridden by
58 # specifying a difference value for REMOTETESTER. An empty value for
59 # REMOTETESTER will disable testing of remote authentication.
63 #TESTERVALUES=-tester tester -testId 1031
65 REMOTEPASSWORD
=${TESTERPASSWORD}
66 REMOTETESTER
=-remoteTester
$(TESTERNAME
) -remoteTestPassword
${REMOTEPASSWORD} -remoteTestId
510 -remoteCell cellname
68 # test_kaserver starts a server in the background and tests it.
70 # test_rxkad_free checks for rxkad object/connection usage and checks for
71 # core leaks. Normally it makes 100 calls to the kaserver, doing a GetEntry
72 # call. This requests an admin ticket 100 times and creates a ubik
73 # connection 100 times. With the -doauth switch specified it calls
74 # ka_UserAuthenticate instead, which uses rxnull connections, but also
75 # exercises the ptserver code, particularly, pr_Initialize, 100 times.
77 runtest
: background multiklog test_badtix test_interim_ktc test_rxkad_free
78 test_interim_ktc
${TESTERVALUES} -testPassword
${TESTERPASSWORD} ${REMOTETESTER}
80 test_rxkad_free
-waitforreap
-a
$(TESTERNAME
) -p
$(TESTERPASSWORD
)
81 test_rxkad_free
-doauth
-waitforreap
-a
$(TESTERNAME
) -p
$(TESTERPASSWORD
)