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