version 1.32, 2005/05/12 15:27:24
|
version 1.37, 2005/07/20 22:03:22
|
|
|
## standardtests - Execute poststartests and a series of | ## standardtests - Execute poststartests and a series of |
## posstarttests using multiple options. | ## posstarttests using multiple options. |
## | ## |
|
##################### |
|
## |
|
## The following are all standalone tests. That is the can be invoked |
|
## without any prerequisite dependencies. They stop and start the server as |
|
## needed. They clean and rebuild the repository as needed and then run the |
|
## poststarttests. |
|
## |
|
## TestXMLRepository - Executes poststartests on binary repository |
|
## built with cimmofl. |
|
## |
|
## TestXMLRepositoryServer - Executes poststartests on binary repository |
|
## built with cimmof. |
|
## |
|
## TestXMLCmpRepository - Executes poststartests on binary compressed |
|
## repository built with cimmofl. |
|
## |
|
## |
|
## TestBinRepository - Executes poststartests on binary repository |
|
## built with cimmofl. |
|
## |
|
## TestBinRepositoryServer - Executes poststartests on binary repository |
|
## built with cimmof. |
|
## |
|
## TestBinCmpRepository - Executes poststartests on binary compressed |
|
## repository built with cimmofl. |
|
## |
|
## |
############################################################################### | ############################################################################### |
| |
error: | error: |
|
|
| |
TESTS = prestarttests poststarttests | TESTS = prestarttests poststarttests |
| |
|
.PHONY: FORCE |
|
|
|
FORCE: |
|
|
rebuild: clean all tests | rebuild: clean all tests |
| |
build: all tests | build: all tests |
|
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer |
| |
prestarttests: | prestarttests: |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
# $(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 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests |
# $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile tests |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run |
# $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests -f Makefile test_setup | $(MAKE) --directory=$(PEGASUS_ROOT)/src/Clients/ssltrustmgr/tests -f Makefile test_setup |
| |
poststarttestsclean: | poststarttestsclean: |
|
|
$(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 TestBinRepository |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1 | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_OOP_TS1 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1 | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_IndInit_TS1 |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_SSL_TS1 |
| |
tests: $(TESTS) | tests: $(TESTS) |
ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) | ifeq ($(PEGASUS_PLATFORM),WIN32_IX86_MSVC) |
|
|
TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)" | TESTSUITE_CMDS="$(SSL_TS1_TEST_CMDS)" |
############################################################################### | ############################################################################### |
| |
|
|
|
|
|
############################################################################## |
|
## |
|
## TestXMLRepository rule is used to run the poststarttests suite on |
|
## the XML Repository built using cimmofl |
|
## |
|
## TestXMLRepositoryServer rule is used to run the poststarttests suite on |
|
## the XML Repository built using cimmof |
|
## |
|
## TestXMLCmpRepository rule is used to run the poststarttest suite on |
|
## the XML Compressed Repository built using cimmofl |
|
## |
|
|
|
############################ |
|
## |
|
## TestXMLRepository |
|
## |
|
|
|
TestXMLRepository: TestXMLClean TestXMLBuildRepo TestXMLRepo |
|
@ $(ECHO) TestXMLRepository +++++ passed all test |
|
|
|
############################ |
|
## |
|
## TestXMLRepositoryServer |
|
## |
|
TestXMLRepositoryServer: TestXMLClean TestXMLBuildRepoServ TestXMLRepo |
|
@ $(ECHO) TestXMLRepositoryServer +++++ passed all test |
|
|
|
############################ |
|
## |
|
## TestXMLCmpRepository - run poststarttest on Compressed BIN Repository |
|
## |
|
ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY |
|
TestXMLCmpRepository: FORCE |
|
@ $(ECHO) TestXMLCmpRepository +++++ Repository compressed by default - nothing more to test. |
|
@ $(ECHO) TestXMLCmpRepository +++++ passed all test |
|
else |
|
|
|
ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST |
|
|
|
TestXMLCmpRepository: TestXMLClean TestCmpBuild TestXMLBuildRepo TestXMLRepo TestRegBuild |
|
@ $(ECHO) TestXMLCmpRepository +++++ passed all test |
|
else |
|
TestXMLCmpRepository: FORCE |
|
@ $(ECHO) TestXMLCmpRepository +++++ Not tested |
|
@ $(ECHO) TestXMLCmpRepository +++++ refer to readme.compressed_repository |
|
@ $(ECHO) TestXMLCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true |
|
endif |
|
endif |
|
|
|
########################### |
|
## |
|
## TestXMLClean |
|
## |
|
TestXMLClean: FORCE |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_xml |
|
|
|
|
|
########################### |
|
## |
|
## TestXMLStartServer |
|
## |
|
TestXMLStartServer: FORCE |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run |
|
- $(MKDIRHIER) $(PEGASUS_HOME)/repository_xml |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="repositoryDir=$(PEGASUS_HOME)/repository_xml" |
|
$(SLEEP) 5 |
|
|
|
#### |
|
#### The following caused the cimserver to fail on startup |
|
#### |
|
#### $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinRepository=false repositoryDir=$(PEGASUS_HOME)/repository_xml" |
|
|
|
########################### |
|
## |
|
## TestXMLBuildRepo |
|
## |
|
TestXMLBuildRepo: FORCE |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML |
|
|
|
|
|
########################### |
|
## |
|
## TestXMLBuildRepoServ |
|
## |
|
TestXMLBuildRepoServ: TestXMLStartServer |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepositoryServer REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
|
|
|
|
|
########################### |
|
## |
|
## TestXMLRepo |
|
## |
|
TestXMLRepo: poststarttestsclean |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestXMLStartServer |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_xml REPOSITORY_MODE=XML |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
|
|
|
|
|
|
|
|
|
|
|
|
############################################################################## | ############################################################################## |
## | ## |
## TestBinRepository rule is used to run the poststarttests suite on | ## TestBinRepository rule is used to run the poststarttests suite on |
## the Binary Reposiory built using cimmofl |
## the Binary Repository built using cimmofl |
## | ## |
## TestBinRepositoryServer rule is used to run the poststarttests suite on | ## TestBinRepositoryServer rule is used to run the poststarttests suite on |
## the Binary Reposiory built using cimmof |
## the Binary Repository built using cimmof |
|
## |
|
## TestBinCmpRepository rule is used to run the poststarttest suite on |
|
## the Binry Compressed Repository built using cimmofl |
## | ## |
| |
############################ | ############################ |
## | ## |
## TestBinRepository | ## TestBinRepository |
## | ## |
|
### bug 3011 disabled Binary Repository testing on LINUX_IA64 to allow |
|
### the nightly tests to run |
|
|
TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo | TestBinRepository: TestBinClean TestBinBuildRepo TestBinRepo |
$(ECHO) TestBinRepository +++++ passed all test |
@ $(ECHO) TestBinRepository +++++ passed all test |
|
|
| |
############################ | ############################ |
## | ## |
## TestBinRepositoryServer | ## TestBinRepositoryServer |
## | ## |
TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo | TestBinRepositoryServer: TestBinClean TestBinBuildRepoServ TestBinRepo |
$(ECHO) TestBinRepositoryServer +++++ passed all test |
@ $(ECHO) TestBinRepositoryServer +++++ passed all test |
|
|
|
############################ |
|
## |
|
## TestBinCmpRepository - run poststarttest on Compressed BIN Repository |
|
## |
|
ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY |
|
TestBinCmpRepository: FORCE |
|
@ $(ECHO) TestBinCmpRepository +++++ Repository compressed by default - nothing more to test. |
|
@ $(ECHO) TestBinCmpRepository +++++ passed all test |
|
else |
|
|
|
ifdef PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST |
|
|
|
TestBinCmpRepository: TestBinClean TestCmpBuild TestBinBuildRepo TestBinRepo TestRegBuild |
|
@ $(ECHO) TestBinCmpRepository +++++ passed all test |
|
else |
|
TestBinCmpRepository: FORCE |
|
@ $(ECHO) TestBinCmpRepository +++++ Not tested |
|
@ $(ECHO) TestBinCmpRepository +++++ refer to readme.compressed_repository |
|
@ $(ECHO) TestBinCmpRepository +++++ to enable: set PEGASUS_ENABLE_COMPRESSED_REPOSITORY_TEST=true |
|
endif |
|
endif |
|
|
| |
########################### | ########################### |
## | ## |
## TestBinClean | ## TestBinClean |
## | ## |
TestBinClean: |
TestBinClean: FORCE |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repositoryclean REPOSITORY_NAME=repository_bin |
| |
|
|
## | ## |
## TestBinStartServer | ## TestBinStartServer |
## | ## |
TestBinStartServer: |
TestBinStartServer: FORCE |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run | $(MAKE) --directory=$(PEGASUS_ROOT)/src/Server -f Makefile install_run |
- $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin | - $(MKDIRHIER) $(PEGASUS_HOME)/repository_bin |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin" | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableBinaryRepository=true repositoryDir=$(PEGASUS_HOME)/repository_bin" |
|
|
## | ## |
## TestBinBuildRepo | ## TestBinBuildRepo |
## | ## |
TestBinBuildRepo: |
TestBinBuildRepo: FORCE |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile repository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile testrepository REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN |
| |
|
|
## | ## |
## TestBinRepo | ## TestBinRepo |
## | ## |
TestBinRepo: poststarttestsclean TestBinStartServer |
TestBinRepo: poststarttestsclean |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinStartServer |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests REPOSITORY_NAME=repository_bin REPOSITORY_MODE=BIN |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
| |
| |
| |
|
|
|
############################ |
|
## |
|
## TestCmpBuild - used to compile the repository for compression |
|
## |
|
TestCmpBuild: FORCE |
|
@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean |
|
@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1 |
|
@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository PEGASUS_ENABLE_COMPRESSED_REPOSITORY=1 |
|
|
|
|
|
############################ |
|
## |
|
## TestRegBuild - used to compile the repository for no compression |
|
## |
|
TestRegBuild: FORCE |
|
@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository clean |
|
@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository depend |
|
@ $(MAKE) "-SC" $(ROOT)/src/Pegasus/Repository |
|
|
|
|
############################################################################### | ############################################################################### |
## | ## |
## Trace Configuration | ## Trace Configuration |