version 1.5, 2002/01/28 05:54:29
|
version 1.6, 2002/01/28 08:44:07
|
|
|
## | ## |
############################################################################### | ############################################################################### |
| |
ROOT = .. |
|
|
|
include $(ROOT)/mak/test.mak |
|
|
|
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) | ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
CIMSERVER_START_SERVICE = |
|
CIMSERVER_STOP_SERVICE = |
|
SLEEP = |
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus | REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
MUEXE = mu.exe | MUEXE = mu.exe |
COPYMU = copy $(ROOT)\src\utils\mu\$(MUEXE) /y $(MUEXE) |
COPYMU = copy pegasus\src\utils\mu\$(MUEXE) /y $(MUEXE) |
MKDIR = $(ROOT)/src/utils/mu/mu mkdirhier |
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
TESTS = prestarttests | TESTS = prestarttests |
endif | endif |
| |
ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC) | ifeq ($(PEGASUS_PLATFORM),HPUX_PARISC_ACC) |
REMOVE_PEGASUS_DIRECTORY = rm -Rf $(ROOT)/../pegasus.old; mv $(ROOT)/../pegasus $(ROOT)/../pegasus.old |
CIMSERVER_START_SERVICE = cimserver -d |
|
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"}' |
|
SLEEP = sleep 5 |
|
REMOVE_PEGASUS_DIRECTORY = rm -Rf pegasus.old; mv pegasus pegasus.old |
MUEXE = mu | MUEXE = mu |
COPYMU = cp -f $(ROOT)/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE) |
COPYMU = cp -f pegasus/src/utils/mu/$(MUEXE) /usr/local/bin/$(MUEXE) |
MKDIR = $(ROOT)/src/utils/mu/mu mkdirhier |
MKDIR = pegasus/src/utils/mu/mu mkdirhier |
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif | endif |
| |
|
|
@ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" | @ echo "Specify desired makefile option (i.e., cleanbuild, rebuild)" |
| |
buildmu: | buildmu: |
$(MAKE) --directory=$(ROOT)/src/utils/mu -f Makefile |
$(MAKE) --directory=pegasus/src/utils/mu -f Makefile |
$(COPYMU) | $(COPYMU) |
| |
cleanbuild: removeall recheckout buildmu all $(TESTS) | cleanbuild: removeall recheckout buildmu all $(TESTS) |
|
|
recheckout: removeall checkout | recheckout: removeall checkout |
| |
removeall: | removeall: |
$(MAKE) -f BuildMakefile -i cimstop |
|
$(REMOVE_PEGASUS_DIRECTORY) | $(REMOVE_PEGASUS_DIRECTORY) |
| |
checkout: | checkout: |
|
|
rebuild: clean buildmu all tests | rebuild: clean buildmu all tests |
| |
all: buildmu | all: buildmu |
$(MAKE) --directory=$(ROOT) -f Makefile depend |
$(MAKE) --directory=pegasus -f Makefile depend |
$(MAKE) --directory=$(ROOT) -f Makefile all |
$(MAKE) --directory=pegasus -f Makefile all |
| |
clean: | clean: |
$(MAKE) --directory=$(ROOT) -f Makefile clean |
$(MAKE) --directory=pegasus -f Makefile clean |
| |
| |
prestarttests: | prestarttests: |
$(MAKE) -f BuildMakefile -i cimstop |
$(MAKE) --directory=pegasus -f Makefile repository |
$(MAKE) --directory=$(ROOT) -f Makefile repository |
$(MAKE) --directory=pegasus -f Makefile config |
$(MAKE) --directory=$(ROOT) -f Makefile config |
$(MAKE) --directory=pegasus -f Makefile user |
$(MAKE) --directory=$(ROOT) -f Makefile user |
$(MAKE) --directory=pegasus -f Makefile shutdownService |
$(MAKE) --directory=$(ROOT) -f Makefile shutdownService |
$(MAKE) --directory=pegasus -f Makefile registration |
$(MAKE) --directory=$(ROOT) -f Makefile registration |
$(MAKE) --directory=pegasus -f Makefile tests |
$(MAKE) --directory=$(ROOT) -f Makefile tests |
$(MAKE) --directory=pegasus/src/Server -f Makefile install |
$(MAKE) --directory=$(ROOT)/src/Server -f Makefile install |
$(MAKE) --directory=pegasus/test -f Makefile clean |
$(MAKE) --directory=$(ROOT)/test -f Makefile clean |
|
| |
poststarttests: | poststarttests: |
$(MAKE) -f BuildMakefile -i cimstop |
$(CIMSERVER_START_SERVICE) |
$(MAKE) -f BuildMakefile -i cimstart |
$(SLEEP) |
TestClient | TestClient |
Client | Client |
$(MAKE) --directory=$(ROOT)/test -f Makefile tests |
$(MAKE) --directory=pegasus/test -f Makefile tests |
@ echo Terminating cimserver... | @ echo Terminating cimserver... |
$(MAKE) -f BuildMakefile -i cimstop |
@ $(CIMSERVER_STOP_SERVICE) |
| |
tests: $(TESTS) | tests: $(TESTS) |
@ echo Finished Tests | @ echo Finished Tests |