1 mike 1.2 ###############################################################################
2 ##
3 ## Makefile for Pegasus CIMOM
4 ##
5 ## NOTE: Makefile needs to be executed from the parent directory of
6 ## pegasus directory because the path settings are relative and this
7 ## Makefile may remove and recheckout the pegasus source tree.
8 ##
9 ## Options:
10 ## cleanbuild - Removes the existing pegasus directory contents, performs
11 ## checkout, build and runs tests.
12 ## rebuild - Rebuild and execute tests.
13 ##
14 ###############################################################################
15
16 ###############################################################################
17 ##
18 ## Platform specific settings for HP-UX
19 ##
20 ## NOTE: Please add platform specific environment variables as appropriate.
21 ##
22 mike 1.2 ###############################################################################
23
24 ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC)
25 CIMSERVER_START_SERVICE = cimserver -install
26 CIMSERVER_STOP_SERVICE = cimserver -remove
27 REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus
28 SLEEP =
29 MUEXE = mu.exe
30 COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE)
31 MKDIR = pegasus/src/utils/mu/mu mkdirhier
32 TESTS = prestarttests
33 endif
34
35 ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC)
36 CIMSERVER_START_SERVICE = cimserver -d
37 CIMSERVER_STOP_SERVICE = /usr/bin/ps -ef | /usr/bin/grep cimserver | /usr/bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/usr/bin/sh"}'
38 REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old
39 SLEEP = sleep 2
40 MUEXE = mu
41 COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE)
42 MKDIR = pegasus/src/utils/mu/mu mkdirhier
43 mike 1.2 TESTS = prestarttests poststarttests
44 endif
45
46 error:
47 @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)"
48
49 buildmu:
50 $(MAKE) --directory=pegasus/src/utils/mu -f Makefile
51 $(COPYMU)
52
53 cleanbuild: removeall recheckout buildmu all $(TESTS)
54
55 recheckout: removeall checkout
56
57 removeall:
58 $(REMOVE_PEGASUS_DIRECTORY)
59
60 checkout:
|
79 mike 1.2 $(MAKE) --directory=pegasus -f Makefile tests
80 $(MAKE) --directory=pegasus/src/Server -f Makefile install
81 $(MAKE) --directory=pegasus/test -f Makefile clean
82
83 poststarttests:
84 $(CIMSERVER_START_SERVICE)
85 $(SLEEP)
86 TestClient
87 Client
88 $(MAKE) --directory=pegasus/test -f Makefile tests
89 @ echo Terminating cimserver...
90 @ $(CIMSERVER_STOP_SERVICE)
91
92 tests: $(TESTS)
93 @ echo Finished Tests
94
95 ###############################################################################
96 ##
97 ## Trace Configuration
98 ##
99 ## Options:
100 mike 1.2 ## XMLTraceOn: Enables XML request and response tracing.
101 ## ProviderLoadTraceOn: Enables Provider load tracing.
102 ## XML+ProviderLoadTraceOn: Enables both XML request/response and Provider
103 ## load tracing.
104 ## AllTraceOn: Enables all tracing.
105 ## AllTraceOff: Disables all tracing.
106 ## list: Lists trace settings.
107 ##
108 ###############################################################################
109
110 XMLTraceOn:
111 cimconfig -s traceComponents=XmlIO -c
112 cimconfig -s traceLevel=3 -c
113 cimconfig -g traceComponents
114 cimconfig -g traceLevel
115
116 ProviderLoadTraceOn:
117 cimconfig -s traceComponents=ProvManager,OsAbstraction
118 cimconfig -s traceLevel=3 -c
119 cimconfig -g traceComponents
120 cimconfig -g traceLevel
121 mike 1.2
122 XML+ProviderLoadTraceOn:
123 cimconfig -s traceComponents=XmlIO,ProvManager,OsAbstraction
124 cimconfig -s traceLevel=3 -c
125 cimconfig -g traceComponents
126 cimconfig -g traceLevel
127
128 AllTraceOn:
129 cimconfig -s traceComponents=ALL
130 cimconfig -s traceLevel=3 -c
131 cimconfig -g traceComponents
132 cimconfig -g traceLevel
133
134 AllTraceOff:
135 cimconfig -s traceComponents=
136 cimconfig -g traceComponents
137 cimconfig -g traceLevel
138
139 list:
140 cimconfig -g traceComponents
141 cimconfig -g traceLevel
142 mike 1.2 cimconfig -g traceFilePath
143
144 # DO NOT DELETE
|