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