2013-09-03 10:30:53 +00:00
|
|
|
diff -up pegasus/Makefile.ReleaseTest.orig pegasus/Makefile.ReleaseTest
|
|
|
|
--- pegasus/Makefile.ReleaseTest.orig 2013-08-27 13:21:13.433679327 +0200
|
|
|
|
+++ pegasus/Makefile.ReleaseTest 2013-08-27 13:27:20.055022758 +0200
|
|
|
|
@@ -128,6 +128,7 @@ POSTSTARTTEST_CMDS = \
|
2008-01-21 14:51:46 +00:00
|
|
|
$(PEGASUS_TEST_DIR)/bin/TestIndicationStressTest@@IndicationStressTestClass@@test/TestProvider@@cleanup
|
|
|
|
|
2013-09-03 10:30:53 +00:00
|
|
|
ifeq ($(PEGASUS_USE_NET_SNMP),true)
|
2008-01-21 14:51:46 +00:00
|
|
|
+ POSTSTARTTEST_CMDS_NO_SNMP := $(POSTSTARTTEST_CMDS)
|
|
|
|
POSTSTARTTEST_CMDS += \
|
|
|
|
$(PEGASUS_TEST_DIR)/bin/TestSnmpHandler@@setup@@WQL \
|
|
|
|
$(PEGASUS_TEST_DIR)/bin/TestSnmpHandler@@run@@4@@2 \
|
2013-09-03 10:30:53 +00:00
|
|
|
@@ -212,10 +213,23 @@ createMakefile_poststarttests:
|
2008-01-21 14:51:46 +00:00
|
|
|
@$(ECHO-E) "poststarttests:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
@$(ECHO-E) "\t@$(MAKE) -s poststarttests_internal\n" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
@$(ECHO-E) "poststarttests_internal:" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
2013-09-03 10:30:53 +00:00
|
|
|
+ifeq ($(PEGASUS_USE_NET_SNMP),true)
|
2008-01-21 14:51:46 +00:00
|
|
|
+ @$(foreach i, $(POSTSTARTTEST_CMDS_NO_SNMP), $(ECHO-E) "\t$(subst @@, ,$(i))" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile;)
|
|
|
|
+else
|
|
|
|
@$(foreach i, $(POSTSTARTTEST_CMDS), $(ECHO-E) "\t$(subst @@, ,$(i))" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile;)
|
|
|
|
@$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+endif
|
|
|
|
|
|
|
|
createMakefile_tests:
|
2013-09-03 10:30:53 +00:00
|
|
|
+ifeq ($(PEGASUS_USE_NET_SNMP),true)
|
2008-01-21 14:51:46 +00:00
|
|
|
+ @$(ECHO-E) "# To test OpenPegasus with net-snmp support, please setup net-snmp" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+ @$(ECHO-E) "# and uncomment following four lines." >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+ @$(ECHO-E) "#\t/usr/share/Pegasus/test/bin/TestSnmpHandler setup WQL" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+ @$(ECHO-E) "#\t/usr/share/Pegasus/test/bin/TestSnmpHandler run 4 2" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+ @$(ECHO-E) "#\t/usr/share/Pegasus/test/bin/TestSnmpHandler cleanup" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+ @$(ECHO-E) "#\t/usr/share/Pegasus/test/bin/TestSnmpHandler removelog" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+ @$(ECHO-E) "" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
+endif
|
|
|
|
@$(ECHO-E) "###############################################################################" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
@$(ECHO-E) "# The tests target stops the cimserver, runs the unit tests, starts the" >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|
|
|
|
@$(ECHO-E) "# cimserver, and runs the poststarttests and local TestClient." >> $(PEGASUS_STAGING_DIR)$(PEGASUS_TEST_DIR)/Makefile
|