20216332 twisted-web2 should have some master test results to compare against
authorRich Burridge <rich.burridge@oracle.com>
Wed, 11 Feb 2015 20:08:18 -0800
changeset 3771 f82d2dc12afc
parent 3770 ca450a806cc1
child 3772 fd37c7ac6708
20216332 twisted-web2 should have some master test results to compare against
components/python/twisted-web2/Makefile
components/python/twisted-web2/test/results-all.master
--- a/components/python/twisted-web2/Makefile	Tue Feb 10 14:10:51 2015 -0800
+++ b/components/python/twisted-web2/Makefile	Wed Feb 11 20:08:18 2015 -0800
@@ -20,7 +20,7 @@
 #
 
 #
-# Copyright (c) 2013, 2014, Oracle and/or its affiliates. All rights reserved.
+# Copyright (c) 2013, 2015, Oracle and/or its affiliates. All rights reserved.
 #
 
 include ../../../make-rules/shared-macros.mk
@@ -44,14 +44,29 @@
 include $(WS_TOP)/make-rules/setup.py.mk
 include $(WS_TOP)/make-rules/ips.mk
 
+# Master test results are the same for all versions of Python, so override
+# here, rather than create multiple identical master files.
+COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
+
+# Use nawk to just extract lines:
+# containing "[OK]" or "[ERROR]"
+# starting with "Ran . tests in"
+# starting with "FAILED" or "PASSED"
+# and stripping out the random portions (like time to complete the tests).
+COMPONENT_TEST_TRANSFORMER =    $(NAWK)
+COMPONENT_TEST_TRANSFORMS = "'/\[ERROR\]/ { print }; /\[OK\]/ { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^PASSED / { print };'"
+
+COMPONENT_TEST_DIR =	$(COMPONENT_SRC)
+COMPONENT_TEST_CMD =	/usr/demo/twisted-python$(PYTHON_VERSION)/trial
+COMPONENT_TEST_ARGS =	twisted/web2/test/test_xmlrpc.py
+
 ASLR_MODE = $(ASLR_NOT_APPLICABLE)
 
-# common targets
 build:          $(BUILD_NO_ARCH)
 
 install:        $(INSTALL_NO_ARCH)
 
-test:           $(NO_TESTS)
+test:           $(TEST_NO_ARCH)
 
 BUILD_PKG_DEPENDENCIES =        $(BUILD_TOOLS)
 
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/components/python/twisted-web2/test/results-all.master	Wed Feb 11 20:08:18 2015 -0800
@@ -0,0 +1,10 @@
+    test_childGET ...                                                      [OK]
+    test_rootGET ...                                                       [OK]
+    test_RPCFailures ...                                                   [OK]
+    test_RPCFaults ...                                                     [OK]
+    test_RPCMethods ...                                                    [OK]
+    test_listMethods ...                                                   [OK]
+    test_methodHelp ...                                                    [OK]
+    test_methodSignature ...                                               [OK]
+Ran 8 tests in
+PASSED (successes=8)