version 1.13, 2005/02/20 06:25:59
|
version 1.14, 2005/02/21 20:25:51
|
|
|
# Ensure that config.mak is included (so that the OS variable is set correctly) |
# commands.mak is a helper Makefile that is intended to be included in an upper level Makefile. |
|
|
|
# Ensure that config.mak is included (so that the ROOT variable is set correctly) |
|
|
ifndef ROOT | ifndef ROOT |
ifdef PEGASUS_ROOT | ifdef PEGASUS_ROOT |
ROOT = $(subst \,/,$(PEGASUS_ROOT)) | ROOT = $(subst \,/,$(PEGASUS_ROOT)) |
|
|
cimstop: CMDSFORCE | cimstop: CMDSFORCE |
$(CIMSERVER_STOP_SERVICE) | $(CIMSERVER_STOP_SERVICE) |
| |
cimstop_IgnoreError: CMDSFORCE |
|
@make -f $(ROOT)/mak/commands.mak -i cimstop |
|
|
|
cimstart: CMDSFORCE | cimstart: CMDSFORCE |
$(CIMSERVER_START_SERVICE) | $(CIMSERVER_START_SERVICE) |
| |
|
|
mkdirhier: CMDSFORCE | mkdirhier: CMDSFORCE |
$(MKDIRHIER) $(DIRNAME) | $(MKDIRHIER) $(DIRNAME) |
| |
mkdirhier_IgnoreError: CMDSFORCE |
|
@make -f $(ROOT)/mak/commands.mak -i mkdirhier |
|
|
|
rmdirhier: CMDSFORCE | rmdirhier: CMDSFORCE |
$(RMDIRHIER) $(DIRNAME) | $(RMDIRHIER) $(DIRNAME) |
| |
rmdirhier_IgnoreError: CMDSFORCE |
|
@make -f $(ROOT)/mak/commands.mak -i rmdirhier |
|
|
|
setpermissions: CMDSFORCE | setpermissions: CMDSFORCE |
$(CHMOD) $(PERMISSIONS) $(OBJECT) | $(CHMOD) $(PERMISSIONS) $(OBJECT) |
$(CHOWN) $(OWNER) $(OBJECT) | $(CHOWN) $(OWNER) $(OBJECT) |
|
|
createrandomseed: CMDSFORCE | createrandomseed: CMDSFORCE |
$(GENERATE_RANDSEED) $(FILENAME) | $(GENERATE_RANDSEED) $(FILENAME) |
| |
# The runTestSuite option restarts the CIM Server |
# Because commands.mak is intended to be used as |
|
# helper Makefile, embedded use of calls to "make" are |
|
# problematic because the name of toplevel is not known. |
|
# To workaround this problem, the MAKEOPTIONS define |
|
# has been added to the following commands to |
|
# allow the name of the toplevel Makefile to be included. |
|
# E.g., |
|
# |
|
# make MAKEOPTION="-f TestMakefile" cimstop_IgnoreError |
|
# |
|
# However, a better alternative would be to call the |
|
# the command directly from the toplevel makefile. |
|
# E.g., |
|
# |
|
# make -f TestMakefile -i cimstop |
|
|
|
cimstop_IgnoreError: CMDSFORCE |
|
@$(MAKE) $(MAKEOPTIONS) -i cimstop |
|
|
|
rmdirhier_IgnoreError: CMDSFORCE |
|
@$(MAKE) $(MAKEOPTIONS) -i rmdirhier |
|
|
|
mkdirhier_IgnoreError: CMDSFORCE |
|
@$(MAKE) $(MAKEOPTIONS) -i mkdirhier |
|
|
|
|
|
# The runTestSuite option starts the CIM Server |
# with a designated set of configuration options (i.e., | # with a designated set of configuration options (i.e., |
# CIMSERVER_CONFIG_OPTIONS) and then runs a specified | # CIMSERVER_CONFIG_OPTIONS) and then runs a specified |
# set of tests (i.e., TESTSUITE_CMDS). After the tests | # set of tests (i.e., TESTSUITE_CMDS). After the tests |
|
|
# $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/Client/tests/InvokeMethod2@@poststarttests | # $(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/Client/tests/InvokeMethod2@@poststarttests |
# | # |
#runTestSuiteTest: CMDSFORCE | #runTestSuiteTest: CMDSFORCE |
# $(MAKE) -f $(ROOT)/mak/commands.mak runTestSuite CIMSERVER_CONFIG_OPTIONS="$(runTestSuiteTest_CONFIG_OPTIONS)" TESTSUITE_CMDS="$(runTestSuiteTest_TEST_CMDS)" |
# $(MAKE) $(MAKEOPTIONS) runTestSuite CIMSERVER_CONFIG_OPTIONS="$(runTestSuiteTest_CONFIG_OPTIONS)" TESTSUITE_CMDS="$(runTestSuiteTest_TEST_CMDS)" |
| |
runTestSuite: CMDSFORCE | runTestSuite: CMDSFORCE |
$(MAKE) -f $(ROOT)/mak/commands.mak cimstop_IgnoreError |
$(CIMSERVER_START_SERVICE) |
$(MAKE) -f $(ROOT)/mak/commands.mak cimstart CIMSERVER_CONFIG_OPTIONS=$(CIMSERVER_CONFIG_OPTIONS) |
|
$(foreach i, $(TESTSUITE_CMDS), $(subst @@, ,$(i));) | $(foreach i, $(TESTSUITE_CMDS), $(subst @@, ,$(i));) |
$(MAKE) -f $(ROOT)/mak/commands.mak cimstop |
$(CIMSERVER_STOP_SERVICE) |
|
|
testCommands: CMDSFORCE |
|
$(MAKE) -f $(ROOT)/mak/commands.mak sleep TIME=10 |
|
$(MAKE) -f $(ROOT)/mak/commands.mak rmdirhier_IgnoreError DIRNAME=$(TMP_DIR)/PegasusTestDirA/PegasusTestDirB |
|
$(MAKE) -f $(ROOT)/mak/commands.mak mkdirhier DIRNAME=$(TMP_DIR)/PegasusTestDirA/PegasusTestDirB |
|
$(MAKE) -f $(ROOT)/mak/commands.mak mkdirhier_IgnoreError DIRNAME=$(TMP_DIR)/PegasusTestDirA/PegasusTestDirB |
|
$(MAKE) -f $(ROOT)/mak/commands.mak rmdirhier DIRNAME=$(TMP_DIR)/PegasusTestDirA |
|
$(MAKE) -f $(ROOT)/mak/commands.mak rmdirhier_IgnoreError DIRNAME=$(TMP_DIR)/PegasusTestDirA/PegasusTestDirB |
|
$(MAKE) -f $(ROOT)/mak/commands.mak cimstop_IgnoreError |
|
$(MAKE) -f $(ROOT)/mak/commands.mak cimstart |
|
$(MAKE) -f $(ROOT)/mak/commands.mak cimstop |
|
$(MAKE) -f $(ROOT)/mak/commands.mak cimstop_IgnoreError |
|
$(MAKE) -f $(ROOT)/mak/commands.mak cimstart CIMSERVER_CONFIG_OPTIONS="traceLevel=1 traceComponents=XmlIO" |
|
cimconfig -g traceLevel -c |
|
cimconfig -g traceComponents -c |
|
$(MAKE) -f $(ROOT)/mak/commands.mak cimstop |
|