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
10 BACKDIR=../../../../PARENT/dest/
13 INCDIRS= -I${DESTDIR}include -I.. -I${BACKDIR}include
14 LDIRS= -L${DESTDIR}lib -L${DESTDIR}lib/afs -L.. -L${BACKDIR}lib -L${BACKDIR}lib/afs
15 LIBS= -llwp -ldes -lrxkad -lauth -lcmd -lubik -lprot -lsys -lrx -lcom_err -lkauth
17 utilib=${SRCDIR}lib/afs/util.a
19 CFLAGS = ${OPTIMIZE} ${INCDIRS} ${LDIRS} ${LIBS} ${XCFLAGS}
23 # the only tests _known_ to work are multiklog and the tcl scripts.
25 all test tests: multiklog
30 multiklog: multiklog.o
31 cc -o multiklog ${CFLAGS} multiklog.o ${utilib}
33 test_date: ../kautils.o test_date.o ${utilib}
34 cc -o test_date ${CFLAGS} test_date.o ../kautils.o ${utilib}
36 test_badtix: test_badtix.o
37 cc -o test_badtix ${CFLAGS} test_badtix.o
39 decode_ticket: decode_ticket.o
40 cc -o decode_ticket ${CFLAGS} decode_ticket.o
42 test_interim_ktc: test_interim_ktc.o
43 cc -o test_interim_ktc ${CFLAGS} test_interim_ktc.o
45 test_rxkad_free: test_rxkad_free.o
46 cc -o test_rxkad_free ${CFLAGS} test_rxkad_free.o
48 test_getticket: test_getticket.o
49 cc -o test_getticket ${CFLAGS} test_getticket.o
51 background: background.c
52 cc -o background background.c
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.
67 #TESTERVALUES=-tester tester -testId 1031
69 REMOTEPASSWORD=${TESTERPASSWORD}
70 REMOTETESTER=-remoteTester $(TESTERNAME) -remoteTestPassword ${REMOTEPASSWORD} -remoteTestId 510 -remoteCell cellname
72 # test_kaserver starts a server in the background and tests it.
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.
81 runtest: background multiklog test_badtix test_interim_ktc test_rxkad_free
82 test_interim_ktc ${TESTERVALUES} -testPassword ${TESTERPASSWORD} ${REMOTETESTER}
84 test_rxkad_free -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
85 test_rxkad_free -doauth -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)