version 1.21, 2005/02/11 01:44:45
|
version 1.26, 2005/02/21 20:34:44
|
|
|
include $(PEGASUS_ROOT)/mak/config.mak |
|
include $(PEGASUS_ROOT)/mak/test.mak |
|
include $(PEGASUS_ROOT)/mak/commands.mak |
|
|
|
system = localhost |
|
|
|
############################################################################### | ############################################################################### |
## | ## |
## Test Makefile for Pegasus CIMOM | ## Test Makefile for Pegasus CIMOM |
|
|
## | ## |
############################################################################### | ############################################################################### |
| |
TESTS = prestarttests poststarttests |
|
|
|
error: | error: |
@ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)" | @ $(ECHO) "Specify desired makefile option (i.e., build, rebuild)" |
| |
rebuild: clean buildmu all |
include $(PEGASUS_ROOT)/mak/config.mak |
|
include $(PEGASUS_ROOT)/mak/test.mak |
|
include $(PEGASUS_ROOT)/mak/commands.mak |
|
|
|
system = localhost |
|
|
|
TESTS = prestarttests poststarttests |
|
|
|
rebuild: clean all tests |
| |
build: all |
build: all tests |
| |
clean: | clean: |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile clean |
|
|
$(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile | $(MAKE) --directory=$(PEGASUS_ROOT)/doc/DevManual -f Makefile |
| |
repositoryServer: | repositoryServer: |
$(CIMSERVER_STOP_SERVICE) |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
$(SLEEP) 5 | $(SLEEP) 5 |
$(RMDIRHIER) $(REPOSITORY_ROOT) | $(RMDIRHIER) $(REPOSITORY_ROOT) |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
|
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer |
| |
prestarttests: | prestarttests: |
$(CIMSERVER_STOP_SERVICE) |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
$(SLEEP) 5 | $(SLEEP) 5 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository |
|
|
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
$(SLEEP) 5 | $(SLEEP) 5 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1 | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1 |
| |
tests: $(TESTS) | tests: $(TESTS) |
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) | ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
$(CIMSERVER_STOP_SERVICE) |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall | $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile uninstall |
endif | endif |
@ $(ECHO) Finished Tests | @ $(ECHO) Finished Tests |
|
|
TestClient | TestClient |
| |
run_OOP_TS1: | run_OOP_TS1: |
$(MAKE) -f $(PEGASUS_ROOT)/mak/commands.mak runTestSuite \ |
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \ | CIMSERVER_CONFIG_OPTIONS="$(OOP_TS1_CONFIG_OPTIONS)" \ |
TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)" | TESTSUITE_CMDS="$(OOP_TS1_TEST_CMDS)" |
############################################################################### | ############################################################################### |
|
|
| |
TestNoSecurity: | TestNoSecurity: |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile tests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimWithoutSSL |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile RunTestClientLocal |
| |
TestLocalSecurity: | TestLocalSecurity: |
|
|
startcimWithSSL: | startcimWithSSL: |
$(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true | $(CIMSERVER_START_SERVICE) enableHttpConnection=false enableHttpsConnection=true |
$(SLEEP) 5 | $(SLEEP) 5 |
|
|
pegasus: |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile rebuild |
|