version 1.40, 2005/11/17 17:01:00
|
version 1.46, 2006/10/13 17:55:20
|
|
|
#//%2005//////////////////////////////////////////////////////////////////////// |
#//%2006//////////////////////////////////////////////////////////////////////// |
#// | #// |
#// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development | #// Copyright (c) 2000, 2001, 2002 BMC Software; Hewlett-Packard Development |
#// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. | #// Company, L.P.; IBM Corp.; The Open Group; Tivoli Systems. |
|
|
#// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. | #// IBM Corp.; EMC Corporation; VERITAS Software Corporation; The Open Group. |
#// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; | #// Copyright (c) 2005 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
#// EMC Corporation; VERITAS Software Corporation; The Open Group. | #// EMC Corporation; VERITAS Software Corporation; The Open Group. |
|
#// Copyright (c) 2006 Hewlett-Packard Development Company, L.P.; IBM Corp.; |
|
#// EMC Corporation; Symantec Corporation; The Open Group. |
#// | #// |
#// Permission is hereby granted, free of charge, to any person obtaining a copy | #// Permission is hereby granted, free of charge, to any person obtaining a copy |
#// of this software and associated documentation files (the "Software"), to | #// of this software and associated documentation files (the "Software"), to |
|
|
#// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. | #// WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. |
#// | #// |
#//============================================================================== | #//============================================================================== |
# commands.mak is a helper Makefile that is intended to be included in an upper level Makefile. |
# 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) |
| |
# Ensure that config.mak is included (so that the ROOT variable is set correctly) |
|
| |
ifndef ROOT | ifndef ROOT |
ifdef PEGASUS_ROOT | ifdef PEGASUS_ROOT |
|
|
include $(ROOT)/mak/config.mak | include $(ROOT)/mak/config.mak |
endif | endif |
| |
ifndef OPENSSL_BIN |
|
OPENSSL_BIN = $(OPENSSL_HOME)/bin |
|
endif |
|
|
|
OPENSSL_COMMAND = $(OPENSSL_BIN)/openssl |
|
|
|
ifeq ($(OS),win32) | ifeq ($(OS),win32) |
STRIPCRS = stripcrs $(RESULTFILE) $(MASTERRESULTFILE) | STRIPCRS = stripcrs $(RESULTFILE) $(MASTERRESULTFILE) |
DIFF = mu compare | DIFF = mu compare |
|
|
endif | endif |
| |
Prwxr_xr_x = 755 | Prwxr_xr_x = 755 |
|
Prwx______ = 700 |
Prwxrwxrwx = 777 | Prwxrwxrwx = 777 |
Prwxrwxrwt = 1777 | Prwxrwxrwt = 1777 |
Pr_xr__r__ = 744 | Pr_xr__r__ = 744 |
Pr__r__r__ = 444 | Pr__r__r__ = 444 |
Pr________ = 400 | Pr________ = 400 |
Pr_xr_xr_x = 555 | Pr_xr_xr_x = 555 |
|
Prw_______ = 600 |
Prw_r__r__ = 644 | Prw_r__r__ = 644 |
|
Prw_r_____ = 640 |
CHMODDIRHIER = chmod -R | CHMODDIRHIER = chmod -R |
| |
INSTALL_USR = bin | INSTALL_USR = bin |
|
|
Prwxrwxrwx = 777 | Prwxrwxrwx = 777 |
Prwxrwxrwt = 1777 | Prwxrwxrwt = 1777 |
Prwxr_xr_x = 755 | Prwxr_xr_x = 755 |
|
Prwxr_x___ = 750 |
Pr_xr__r__ = 744 | Pr_xr__r__ = 744 |
|
Prwx______ = 700 |
Pr__r__r__ = 444 | Pr__r__r__ = 444 |
Pr________ = 400 | Pr________ = 400 |
Pr_xr_xr_x = 555 | Pr_xr_xr_x = 555 |
Pr_x______ = 500 | Pr_x______ = 500 |
|
Prw_______ = 600 |
Prw_r__r__ = 644 | Prw_r__r__ = 644 |
|
Prw_r_____ = 640 |
CHMODDIRHIER = chmod -R | CHMODDIRHIER = chmod -R |
| |
INSTALL_USR = root | INSTALL_USR = root |
INSTALL_GRP = root |
INSTALL_GRP = pegasus |
CIMSERVER_USR = root | CIMSERVER_USR = root |
CIMSERVER_GRP = root |
CIMSERVER_GRP = pegasus |
CHMOD = chmod | CHMOD = chmod |
CHOWN = chown | CHOWN = chown |
CHGRP = chgrp | CHGRP = chgrp |
|
|
REDIRECTERROR = $(MUEXE) echo "REDIRECTERROR not defined in commands.mak" | REDIRECTERROR = $(MUEXE) echo "REDIRECTERROR not defined in commands.mak" |
CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) | CIMSERVER_START_SERVICE = $(CIMSERVER_PATH)cimserver $(CIMSERVER_CONFIG_OPTIONS) |
CIMSERVER_STOP_SERVICE = $(CIMSERVER_PATH)cimserver -s | CIMSERVER_STOP_SERVICE = $(CIMSERVER_PATH)cimserver -s |
SLEEP = wait |
SLEEP = $(MUEXE) sleep |
TIME_CMD = | TIME_CMD = |
REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus | REMOVE_PEGASUS_DIRECTORY = mu rmdirhier pegasus |
MUEXE = mu | MUEXE = mu |
|
|
endif | endif |
endif | endif |
| |
|
|
CMDSFORCE: | CMDSFORCE: |
| |
## | ## |
|
|
mkdirhier_IgnoreError: CMDSFORCE | mkdirhier_IgnoreError: CMDSFORCE |
@$(MAKE) $(MAKEOPTIONS) -i mkdirhier | @$(MAKE) $(MAKEOPTIONS) -i mkdirhier |
| |
|
|
# The runTestSuite option starts the CIM Server | # 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 |
|
|
## cimstart command. | ## cimstart command. |
## | ## |
runTestSuite: CMDSFORCE | runTestSuite: CMDSFORCE |
$(MAKE) --directory $(PEGASUS_ROOT) -f TestMakefile cimstart |
-$(CIMSERVER_STOP_SERVICE) |
|
$(CIMSERVER_START_SERVICE) |
$(WINDOWS_ONLY_SLEEP) | $(WINDOWS_ONLY_SLEEP) |
$(foreach i, $(TESTSUITE_CMDS), $(subst @@, ,$(i))) | $(foreach i, $(TESTSUITE_CMDS), $(subst @@, ,$(i))) |
$(MAKE) --directory $(PEGASUS_ROOT) -f TestMakefile cimstop |
$(CIMSERVER_STOP_SERVICE) |
| |
ifndef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN | ifndef PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN |
PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(GET_HOSTNAME) | PEGASUS_SSLCNF_FULLY_QUALIFIED_DSN=$(GET_HOSTNAME) |