windows-64-bit-type-safety-20051105
[openafs.git] / src / kauth / test / NTMakefile
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 RELDIR=kauth\test
9 !INCLUDE ..\..\config\NTMakefile.$(SYS_NAME)
10 !INCLUDE ..\..\config\NTMakefile.version
11
12 EXELIBS = \
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
23
24
25 $(OUT)\multiklog.exe: $(OUT)\multiklog.obj
26         $(EXECONLINK) $(EXELIBS)
27         $(_VC_MANIFEST_EMBED_EXE)
28
29 $(OUT)\test_date.exe: $(OUT)\test_date.obj
30         $(EXECONLINK) $(EXELIBS)
31         $(_VC_MANIFEST_EMBED_EXE)
32
33 $(OUT)\test_badtix.exe: $(OUT)\test_badtix.obj
34         $(EXECONLINK) $(EXELIBS)
35         $(_VC_MANIFEST_EMBED_EXE)
36
37 $(OUT)\decode_ticket.exe: $(OUT)\decode_ticket.obj
38         $(EXECONLINK) $(EXELIBS)
39         $(_VC_MANIFEST_EMBED_EXE)
40
41 $(OUT)\test_interim_ktc.exe: $(OUT)\test_interim_ktc.obj
42         $(EXECONLINK) $(EXELIBS)
43         $(_VC_MANIFEST_EMBED_EXE)
44
45 $(OUT)\test_rxkad_free: test_rxkad_free.o 
46         $(EXECONLINK) $(EXELIBS)
47         $(_VC_MANIFEST_EMBED_EXE)
48
49 $(OUT)\test_getticket.exe: $(OUT)\test_getticket.obj
50         $(EXECONLINK) $(EXELIBS)
51         $(_VC_MANIFEST_EMBED_EXE)
52
53 $(OUT)\background.exe: $(OUT)\background.obj
54         $(EXECONLINK) $(EXELIBS)
55         $(_VC_MANIFEST_EMBED_EXE)
56
57
58 test tests all: $(OUT)\multiklog.exe $(OUT)\test_date.exe $(OUT)\test_badtix.exe $(OUT)\decode_ticket.exe \
59                 $(OUT)\test_interim_ktc.exe $(OUT)\test_getticket.exe $(OUT)\background.exe
60
61
62 # test_interim_ktc depends on normally running ka & pr servers.  Also on
63 # the current user having write access to the working directory.  Also
64 # on the user "tester" being defined with ViceId=1031.  The password
65 # must be specified on the make line the others can be overridden by
66 # specifying a value for TESTERVALUES.  To test remote authentication, a
67 # test account in another cell must be available.  The default is the
68 # cell "cellname" and the user tester with Vice Id 510, and the
69 # same password as in the local cell.  These can be over-ridden by
70 # specifying a difference value for REMOTETESTER.  An empty value for
71 # REMOTETESTER will disable testing of remote authentication.
72
73 TESTERNAME=xxx
74 TESTERPASSWORD=xxx
75 #TESTERVALUES=-tester tester -testId 1031
76 TESTERVALUES=
77 REMOTEPASSWORD=${TESTERPASSWORD}
78 REMOTETESTER=-remoteTester $(TESTERNAME) -remoteTestPassword ${REMOTEPASSWORD} -remoteTestId 510 -remoteCell cellname
79
80 # test_kaserver starts a server in the background and tests it.
81
82 # test_rxkad_free checks for rxkad object/connection usage and checks for
83 #   core leaks.  Normally it makes 100 calls to the kaserver, doing a GetEntry
84 #   call.  This requests an admin ticket 100 times and creates a ubik
85 #   connection 100 times.  With the -doauth switch specified it calls
86 #   ka_UserAuthenticate instead, which uses rxnull connections, but also
87 #   exercises the ptserver code, particularly, pr_Initialize, 100 times.
88
89 runtest: background multiklog test_badtix test_interim_ktc test_rxkad_free
90         test_interim_ktc ${TESTERVALUES} -testPassword ${TESTERPASSWORD} ${REMOTETESTER}
91         test_kaserver
92         test_rxkad_free -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
93         test_rxkad_free -doauth -waitforreap -a $(TESTERNAME) -p $(TESTERPASSWORD)
94
95
96 ############################################################################
97 # Local clean target; augments predefined clean target
98
99 clean::
100
101 mkdir:
102