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