version 1.5, 2003/05/28 20:47:28
|
version 1.19, 2005/02/11 00:22:15
|
|
|
include $(PEGASUS_ROOT)/mak/config.mak | include $(PEGASUS_ROOT)/mak/config.mak |
include $(PEGASUS_ROOT)/mak/test.mak | include $(PEGASUS_ROOT)/mak/test.mak |
|
include $(PEGASUS_ROOT)/mak/commands.mak |
| |
system = localhost | system = localhost |
| |
|
|
## | ## |
############################################################################### | ############################################################################### |
| |
############################################################################### |
|
## |
|
## Platform specific settings for several platforms. |
|
## |
|
## NOTE: Please add platform specific environment variables as appropriate. |
|
## |
|
############################################################################### |
|
|
|
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
CIMSERVER_START_SERVICE = cimserver -start |
|
CIMSERVER_STOP_SERVICE = cimserver -stop |
|
SLEEP = |
|
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
|
MUEXE = mu.exe |
|
COPYMU = copy src\utils\mu\$(MUEXE) /y $(MUEXE) |
|
MKDIR = src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
endif |
|
|
|
ifeq ($(OS),HPUX) |
|
CIMSERVER_START_SERVICE = cimserver |
|
CIMSERVER_STOP_SERVICE = cimserver -s |
|
SLEEP = sleep 5 |
|
MUEXE = mu |
|
COPYMU = cp -f src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE) |
|
MKDIR = src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_IX86_GNU) |
|
CIMSERVER_START_SERVICE = cimserver |
|
CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}' |
|
SLEEP = sleep 5 |
|
MUEXE = mu |
|
COPYMU = cp -f src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE) |
|
MKDIR = src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests |
|
endif |
|
|
|
ifeq ($(PEGASUS_PLATFORM),LINUX_IA64_GNU) |
|
CIMSERVER_START_SERVICE = cimserver |
|
CIMSERVER_STOP_SERVICE = /bin/ps -ef | /bin/grep cimserver | /bin/grep -v grep | /usr/bin/awk '{print "kill -9 "$$2 |"/bin/bash"}' |
|
SLEEP = sleep 5 |
|
MUEXE = mu |
|
COPYMU = cp -f src/utils/mu/$(MUEXE) $(BIN_DIR)/$(MUEXE) |
|
MKDIR = src/utils/mu/mu mkdirhier |
|
TESTS = prestarttests poststarttests |
|
endif |
|
| |
error: | error: |
@ echo "Specify desired makefile option (i.e., build, rebuild)" |
@ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)" |
| |
buildmu: | buildmu: |
$(MAKE) --directory=src/utils/mu -f Makefile |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/utils/mu -f Makefile |
$(MKDIR) $(BIN_DIR) |
$(MKDIRHIER) $(BIN_DIR) |
$(COPYMU) |
|
| |
rebuild: clean buildmu all | rebuild: clean buildmu all |
| |
|
|
$(MAKE) -f Makefile all | $(MAKE) -f Makefile all |
| |
doc: | doc: |
$(MAKE) --directory=doc/ProviderSpec -f Makefile |
$(MAKE) --directory=$(PEGASUS_ROOT)/doc/ProviderSpec -f Makefile |
$(MAKE) --directory=doc/DevManual -f Makefile |
$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile |
| |
clean: | clean: |
$(MAKE) -f Makefile clean | $(MAKE) -f Makefile clean |
| |
repositoryServer: | repositoryServer: |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
$(SLEEP) |
$(SLEEP) 5 |
$(RMDIRHIER) $(REPOSITORY_ROOT) | $(RMDIRHIER) $(REPOSITORY_ROOT) |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
$(SLEEP) |
$(SLEEP) 5 |
$(MAKE) -f Makefile repositoryServer | $(MAKE) -f Makefile repositoryServer |
$(MAKE) -f Makefile testrepositoryServer | $(MAKE) -f Makefile testrepositoryServer |
| |
prestarttests: | prestarttests: |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
$(SLEEP) |
$(SLEEP) 5 |
$(MAKE) -f Makefile repository | $(MAKE) -f Makefile repository |
$(MAKE) -f Makefile testrepository | $(MAKE) -f Makefile testrepository |
$(MAKE) -f Makefile tests | $(MAKE) -f Makefile tests |
$(MAKE) --directory=src/Server -f Makefile install |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run |
| |
poststarttests: | poststarttests: |
$(MAKE) --directory=test/wetest -f Makefile clean |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/CQL/tests/Queries -f Makefile clean |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Query/QueryExpression/tests/Queries -f Makefile clean |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/test/wetest -f Makefile clean |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
$(SLEEP) |
$(SLEEP) 5 |
$(MAKE) -f Makefile poststarttests | $(MAKE) -f Makefile poststarttests |
| |
tests: $(TESTS) | tests: $(TESTS) |
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) | ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
$(MAKE) --directory=src/Server -f Makefile uninstall |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall |
endif | endif |
@ echo Finished Tests |
@ $(ECHO) Finished Tests |
|
|
|
############################################################################### |
|
## Test Suite Definitions |
|
############################################################################### |
|
|
|
############################################################################### |
|
## OOP Test Suite 1: "Out-of-Process"(OOP) Provider Tests |
|
## |
|
## Configuration Options: forceProviderProcesses=true |
|
## |
|
############################################################################### |
|
OOP_TS1_CONFIG_OPTIONS = forceProviderProcesses=true |
|
OOP_TS1_TEST_CMDS = \ |
|
TestClient |
|
|
|
run_OOP_TS1: |
|
$(MAKE) -f $(PEGASUS_ROOT)/mak/commands.mak runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)" |
|
############################################################################### |
| |
############################################################################### | ############################################################################### |
## | ## |
|
|
TestCimmof: | TestCimmof: |
$(MAKE) -f Testcimmof poststarttests | $(MAKE) -f Testcimmof poststarttests |
| |
|
|
RunTestClientLocal: | RunTestClientLocal: |
TestClient -local | TestClient -local |
| |
|
|
| |
EnableAuthorization: | EnableAuthorization: |
$(MAKE) -f TestMakefile -i stopcim | $(MAKE) -f TestMakefile -i stopcim |
cimconfig -s enableAuthorization=true -p |
cimconfig -s enableNamespaceAuthorization=true -p |
$(MAKE) -f TestMakefile startcimWithoutSSL | $(MAKE) -f TestMakefile startcimWithoutSSL |
$(MAKE) -f TestMakefile -i ConfigureAuthorizations | $(MAKE) -f TestMakefile -i ConfigureAuthorizations |
| |
|
|
ConfigureAuthorizations: | ConfigureAuthorizations: |
cimauth -a -u guest -n test/cimv2 -R -W | cimauth -a -u guest -n test/cimv2 -R -W |
cimauth -a -u guest -n root/cimv2 -R -W | cimauth -a -u guest -n root/cimv2 -R -W |
|
cimauth -a -u guest -n root/PG_Internal -R -W |
|
cimauth -a -u guest -n root/PG_InterOp -R -W |
|
cimauth -a -u guest -n root/benchmark -R -W |
|
cimauth -a -u guest -n root/sampleprovider -R -W |
cimauth -a -u guest -n test/static -R -W | cimauth -a -u guest -n test/static -R -W |
cimauth -a -u guest -n root/SampleProvider -R -W | cimauth -a -u guest -n root/SampleProvider -R -W |
cimauth -a -u guest -n root -R -W | cimauth -a -u guest -n root -R -W |
|
|
cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W | cimauth -a -u guest -n test1/test2/test3/test4/test5/test6 -R -W |
| |
startcimWithoutSSL: | startcimWithoutSSL: |
cimserver |
$(CIMSERVER_START_SERVICE) |
sleep 10 |
$(SLEEP) 5 |
| |
startcimWithSSL: | startcimWithSSL: |
cimserver SSL=true |
$(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true |
sleep 10 |
$(SLEEP) 5 |
| |
stopcim: | stopcim: |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
sleep 5 |
$(SLEEP) 5 |
| |
rebuild: | rebuild: |
$(MAKE) -f TestMakefile -i stopcim | $(MAKE) -f TestMakefile -i stopcim |
|
|
| |
pegasus: | pegasus: |
$(MAKE) -f Makefile rebuild | $(MAKE) -f Makefile rebuild |
|
|