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
8 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
9 !INCLUDE ..\..\config\NTMakefile.version
13 $(DESTDIR)\afslwp.lib \
14 $(DESTDIR)\lib\afsdes.lib \
15 $(DESTDIR)\lib\afsrxkad.lib \
16 $(DESTDIR)\afs\afsauth.lib \
17 $(DESTDIR)\afs\afscmd.lib \
18 $(DESTDIR)\afsubik.lib \
19 $(DESTDIR)\afs\afsprot.lib \
20 $(DESTDIR)\afsrx.lib \
21 $(DESTDIR)\afs\afscom_err.lib \
22 $(DESTDIR)\afs\afskauth.lib
25 multiklog.exe: multiklog.obj
26 $(EXECONLINK) $(EXELIBS)
29 test_date.exe: test_date.obj
30 $(EXECONLINK) $(EXELIBS)
32 test_badtix.exe: test_badtix.obj
33 $(EXECONLINK) $(EXELIBS)
35 decode_ticket.exe: decode_ticket.obj
36 $(EXECONLINK) $(EXELIBS)
38 test_interim_ktc.exe: test_interim_ktc.obj
39 $(EXECONLINK) $(EXELIBS)
41 test_rxkad_free: test_rxkad_free.o
42 $(EXECONLINK) $(EXELIBS)
44 test_getticket.exe: test_getticket.obj
45 $(EXECONLINK) $(EXELIBS)
47 background.exe: background.obj
48 $(EXECONLINK) $(EXELIBS)
51 test tests all: multiklog.exe test_date.exe test_badtix.exe decode_ticket.exe \
52 test_interim_ktc.exe test_getticket.exe background.exe
55 # test_interim_ktc depends on normally running ka & pr servers. Also on
56 # the current user having write access to the working directory. Also
57 # on the user "tester" being defined with ViceId=1031. The password
58 # must be specified on the make line the others can be overridden by
59 # specifying a value for TESTERVALUES. To test remote authentication, a
60 # test account in another cell must be available. The default is the
61 # cell "cellname" and the user tester with Vice Id 510, and the
62 # same password as in the local cell. These can be over-ridden by
63 # specifying a difference value for REMOTETESTER. An empty value for
64 # REMOTETESTER will disable testing of remote authentication.
68 #TESTERVALUES=-tester tester -testId 1031
70 REMOTEPASSWORD=${TESTERPASSWORD}
71 REMOTETESTER=-remoteTester $(TESTERNAME) -remoteTestPassword ${REMOTEPASSWORD} -remoteTestId 510 -remoteCell cellname
73 # test_kaserver starts a server in the background and tests it.
75 # test_rxkad_free checks for rxkad object/connection usage and checks for
76 # core leaks. Normally it makes 100 calls to the kaserver, doing a GetEntry
77 # call. This requests an admin ticket 100 times and creates a ubik
78 # connection 100 times. With the -doauth switch specified it calls
79 # ka_UserAuthenticate instead, which uses rxnull connections, but also
80 # exercises the ptserver code, particularly, pr_Initialize, 100 times.
82 runtest: background multiklog test_badtix test_interim_ktc test_rxkad_free
83 test_interim_ktc ${TESTERVALUES} -testPassword ${TESTERPASSWORD} ${REMOTETESTER}
85 test_rxkad_free -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
86 test_rxkad_free -doauth -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
89 ############################################################################
90 # Local clean target; augments predefined clean target