version 1.108, 2011/08/09 07:32:51
|
version 1.118, 2015/01/15 19:57:57
|
|
|
$(USAGE)"slptests - Executes the slptests" | $(USAGE)"slptests - Executes the slptests" |
$(USAGE)"run_Cmpi_Sub - Executes the CMPI subscription tests" | $(USAGE)"run_Cmpi_Sub - Executes the CMPI subscription tests" |
$(USAGE) | $(USAGE) |
|
$(USAGE)"The following requires wseventsink to be installed on the server and is not run" |
|
$(USAGE)"as part of Primary target tests suites." |
|
$(USAGE)"run_WSMAN_TS - Executes the WSMAN indication deliver test" |
| |
| |
########################################################## | ########################################################## |
|
|
| |
serversuite: FORCE | serversuite: FORCE |
$(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests -f Makefile commandtests | $(MAKE) --directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests -f Makefile commandtests |
|
ifeq ($(PEGASUS_ENABLE_SLP),true) |
|
$(MAKE) --directory=$(PEGASUS_ROOT)/src/slp/tests/srv_reg/ -f Makefile tests |
|
endif |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimstart |
$(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests | $(MAKE) --directory=$(PEGASUS_ROOT) -f Makefile poststarttests |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile TestBinRepository |
|
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1 | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ExportClientSSL_TS1 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimserver_Availability | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cimserver_Availability |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_sslCipherSuiteTests | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_sslCipherSuiteTests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_TLSv1_2_tests |
ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true) | ifeq ($(PEGASUS_ENABLE_CMPI_PROVIDER_MANAGER),true) |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_Cmpi_Sub |
endif | endif |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimprovagt32tests | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile cimprovagt32tests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile chgdhoststests |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout1 | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout1 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout2 | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_idleConnectionTimeout2 |
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_providerLifecycleIndicationTests | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_providerLifecycleIndicationTests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile startcimListenAddress |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_interfaceRestrictionTest |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_providerReregisterTests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ENUMCTXT_TS1 |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile run_ENUMCTXT_TS2 |
| |
##################### | ##################### |
# | # |
|
|
| |
| |
############################################################################### | ############################################################################### |
|
## WSMAN Indication test suite : WSMAN Indication Testing over HTTPS |
|
## |
|
## Configuration Options: (none for cimserver) |
|
## wsevensink should be installed as the wsman listner. |
|
## |
|
## There is no WSMAN listner in OP as of now. Therefore, wseventsink of |
|
## openwsman is used. This is available only on Linux. On other OSes, the |
|
## destination of the subcription/indication should be changed to a Linux |
|
## system where wseventsink is running. |
|
## Once we have a wsman listner in OP we include this test in Nigthly tests. |
|
## As of now, this has to be run explicitly. |
|
## |
|
############################################################################### |
|
ifeq ($(OS),linux) |
|
ifeq ($(PEGASUS_ENABLE_PROTOCOL_WSMAN),true) |
|
INDWSMAN_CONFIG_OPTIONS = enableHttpsConnection=true enableAuthentication=false |
|
INDWSMAN_TS1a_TEST_CMDS = \ |
|
$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationTestProvider/wsmanTestClient@@-f@@Makefile@@runWSMANtests |
|
|
|
run_WSMAN_TS: FORCE |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(INDWSMAN_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(INDWSMAN_TS1a_TEST_CMDS)" |
|
endif |
|
endif |
|
|
|
############################################################################### |
| |
############################################################################### | ############################################################################### |
## SSL IPv4 Test Suite : Tests SSL connections for IPv4 | ## SSL IPv4 Test Suite : Tests SSL connections for IPv4 |
|
|
############################################################################### | ############################################################################### |
| |
| |
|
############################################################################### |
|
## TLS v 1.2 support test as per NIST 800-131a |
|
## |
|
## Configuration Options: enableHttpsConnection=true sslCipherSuite = TLSv1.2 |
|
## |
|
############################################################################### |
|
TLS_1_2_SUPPORT_CONFIG = enableHttpsConnection=true sslCipherSuite=TLSv1.2 |
|
TLSv1_2_support_tests = \ |
|
$(MAKE)@@--directory=$(PEGASUS_ROOT)/src/Pegasus/Server/tests/TLSv_1_2_Support@@-f@@Makefile@@test_TLSv1_2 |
|
|
|
ifdef PEGASUS_HAS_SSL |
|
run_TLSv1_2_tests: |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(TLS_1_2_SUPPORT_CONFIG)" \ |
|
TESTSUITE_CMDS="$(TLSv1_2_support_tests)" |
|
else |
|
run_TLSv1_2_tests: FORCE |
|
@ $(ECHO) "+++++ PEGASUS_HAS_SSL not defined: Skipping TLSv 1.2 support tests" |
|
endif |
|
|
|
############################################################################### |
|
|
| |
############################################################################### | ############################################################################### |
## idleConnectionTimeout Test Suite 1: uses ChunkingStressProvider Tests | ## idleConnectionTimeout Test Suite 1: uses ChunkingStressProvider Tests |
|
|
$(MAKE)@@--directory \ | $(MAKE)@@--directory \ |
$(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \ | $(PEGASUS_ROOT)/src/Providers/TestProviders/ChunkingStressProvider/testclient \ |
-f@@Makefile@@poststarttests | -f@@Makefile@@poststarttests |
|
|
run_idleConnectionTimeout1: FORCE | run_idleConnectionTimeout1: FORCE |
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ | $(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \ | CIMSERVER_CONFIG_OPTIONS="$(IDLE_CONNECTION_TIMEOUT_1_CONFIG_OPTIONS)" \ |
|
|
| |
############################################################################## | ############################################################################## |
| |
|
############################################################################### |
|
## EnumerationContext Black Box test 1 |
|
## |
|
## Configuration Options: Run with trace on and at least EnumContext compent |
|
## set. Trace output used to diagnose results |
|
## Run with forceProviderProcesses=true |
|
## Runs a test of pull operations and tests the trace output to determine if |
|
## it includes an equal number of create and remove trace entries indicating |
|
## that all enumerations contexts completed. Note that today the code that |
|
## tests the trace results is a sh script and grep so this runs only on |
|
## systems that have these tools |
|
## This test was added in OpenPegasus 2.14 when the pull operations were |
|
## added |
|
## |
|
############################################################################### |
|
ENUMCTXT_TS1_CONFIG_OPTIONS = traceComponents=EnumContext traceLevel=4 forceProviderProcesses=true |
|
|
|
ENUMCTXT_TS1A_TEST_CMDS = \ |
|
$(MAKE)@@--directory \ |
|
$(PEGASUS_ROOT)/src/Pegasus/Client/tests/pullop -f@@Makefile poststarttests |
|
|
|
ENUMCTXT_TS1B_TEST_CMDS = \ |
|
$(MAKE)@@--directory \ |
|
$(PEGASUS_ROOT)/src/Pegasus/Client/tests/PullErrors -f@@Makefile poststarttests |
|
|
|
ENUMCTXT_POSTTEST_CMD = $(PEGASUS_ROOT)/src/Pegasus/Client/tests/pullop/testContextTraceOutput |
|
|
|
run_ENUMCTXT_TS1: |
|
ifeq ($(findstring LINUX_, $(PEGASUS_PLATFORM)), LINUX_) |
|
$(RM) $(PEGASUS_HOME)/trace/* |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS1_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(ENUMCTXT_TS1A_TEST_CMDS)" |
|
$(ENUMCTXT_POSTTEST_CMDS) |
|
|
|
$(RM) $(PEGASUS_HOME)/trace/* |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS1_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(ENUMCTXT_TS1B_TEST_CMDS)" |
|
$(ENUMCTXT_POSTTEST_CMD) |
|
else |
|
@ $(ECHO) "+++++ run_ENUMCTXT_TS1 runs only in certain environments" |
|
endif |
|
############################################################################### |
|
|
|
############################################################################### |
|
## EnumerationContext Black Box test 2 |
|
## Parallel to ENUMCTXT_TS1 except with forceProviderProcesses=false |
|
## |
|
############################################################################### |
|
ENUMCTXT_TS2_CONFIG_OPTIONS = traceComponents=EnumContext traceLevel=4 forceProviderProcesses=false |
|
|
|
## uses the test commands from run_ENUMCTXT_TS1 |
|
|
|
run_ENUMCTXT_TS2: |
|
ifeq ($(findstring LINUX_, $(PEGASUS_PLATFORM)), LINUX_) |
|
$(RM) $(PEGASUS_HOME)/trace/* |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS2_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(ENUMCTXT_TS1A_TEST_CMDS)" |
|
$(ENUMCTXT_POSTTEST_CMDS) |
|
|
|
$(RM) $(PEGASUS_HOME)/trace/* |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(ENUMCTXT_TS2_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(ENUMCTXT_TS1B_TEST_CMDS)" |
|
$(ENUMCTXT_POSTTEST_CMD) |
|
else |
|
@ $(ECHO) "+++++ run_ENUMCTXT_TS1 runs only in certain environments" |
|
endif |
|
############################################################################### |
| |
############################################################################# | ############################################################################# |
## | ## |
|
|
@$(ECHO) "PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT not defined, skipping 32-bit tests..." | @$(ECHO) "PEGASUS_PLATFORM_FOR_32BIT_PROVIDER_SUPPORT not defined, skipping 32-bit tests..." |
endif | endif |
| |
|
############################################################################# |
|
## |
|
## CIMServer with overridden hostnames testing |
|
## |
|
############################################################################# |
|
|
|
TEST_CHGD_HOSTS_OPTIONS = "hostname=hugo fullyQualifiedHostName=hugo.bert" |
|
TEST_CHGD_HOSTS_CMDS = \ |
|
$(MAKE)@@--directory \ |
|
$(PEGASUS_ROOT)/src/Pegasus/Config/tests/ChgdHosts@@chgdhoststest |
|
chgdhoststests: FORCE |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS=$(TEST_CHGD_HOSTS_OPTIONS) \ |
|
TESTSUITE_CMDS="$(TEST_CHGD_HOSTS_CMDS)" |
|
|
| |
############################################################################# | ############################################################################# |
## | ## |
|
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop | $(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile testLogFile | $(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/TestProviderLifecycleIndications/testclient -f Makefile testLogFile |
| |
|
|
|
############################################################################# |
|
# |
|
# Provider reregistration tests. |
|
# |
|
############################################################################## |
|
run_providerReregisterTests:FORCE |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart |
|
$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient -f Makefile createSubscriptions |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart |
|
$(MAKE) --directory $(PEGASUS_ROOT)/src/Providers/TestProviders/IndicationStressTestProvider/testclient -f Makefile reregister_providerTests |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstop |
|
|
|
|
|
############################################################################# |
|
## |
|
## Network Interface restriction tests |
|
## |
|
## Configuration Options: enableHttpsConnection=true |
|
## enableHttpConnection=true |
|
## listenAddress=x.y.x.z |
|
## |
|
############################################################################# |
|
startcimListenAddress: FORCE |
|
$(MAKE) --directory=$(PEGASUS_ROOT) -f TestMakefile -i cimstart CIMSERVER_CONFIG_OPTIONS="enableHttpConnection=true enableHttpsConnection=true listenAddress=::1,127.0.0.1" |
|
$(SLEEP) 5 |
|
|
|
|
|
|
|
#Hardcoding the addess 127.0.0.1, |
|
RESTRICT_INTRFC_TEST_CONFIG_OPTIONS= enableHttpConnection=true enableHttpsConnection=true listenAddress=127.0.0.1 |
|
RESTRICT_INTRFC_TEST_CMDS=$(MAKE)@@--directory $(PEGASUS_ROOT)/src/Pegasus/Server/tests/InterfaceRestriction@@-f@@Makefile@@RestrictionTest |
|
|
|
run_interfaceRestrictionTest:FORCE |
|
$(MAKE) -f $(PEGASUS_ROOT)/TestMakefile runTestSuite \ |
|
CIMSERVER_CONFIG_OPTIONS="$(RESTRICT_INTRFC_TEST_CONFIG_OPTIONS)" \ |
|
TESTSUITE_CMDS="$(RESTRICT_INTRFC_TEST_CMDS)" |
|
|
|
|
############################################################################## | ############################################################################## |
## | ## |
## TestXMLRepository rule is used to run the poststarttests suite on | ## TestXMLRepository rule is used to run the poststarttests suite on |
|
|
$(USAGE)"Listener" | $(USAGE)"Listener" |
$(USAGE)"DiscardedData" | $(USAGE)"DiscardedData" |
$(USAGE)"ProviderAgent" | $(USAGE)"ProviderAgent" |
|
$(USAGE)"EnumContext" |
$(USAGE) | $(USAGE) |
| |
############################################################################### | ############################################################################### |
|
|
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W | cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/cimv2 -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W | cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/cimv2 -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W | cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_Internal -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/PG_InterOp -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n $(PEGASUS_INTEROP_NAMESPACE) -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W | cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/benchmark -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W | cimauth -a -u $(PEGASUS_TEST_USER_ID) -n root/sampleprovider -R -W |
cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W | cimauth -a -u $(PEGASUS_TEST_USER_ID) -n test/static -R -W |