42 |
42 |
43 include $(WS_TOP)/make-rules/prep.mk |
43 include $(WS_TOP)/make-rules/prep.mk |
44 include $(WS_TOP)/make-rules/setup.py.mk |
44 include $(WS_TOP)/make-rules/setup.py.mk |
45 include $(WS_TOP)/make-rules/ips.mk |
45 include $(WS_TOP)/make-rules/ips.mk |
46 |
46 |
|
47 # Master test results are the same for all versions of Python, so override |
|
48 # here, rather than create multiple identical master files. |
|
49 COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
|
50 |
|
51 # Use nawk to just extract lines: |
|
52 # containing "[OK]" or "[ERROR]" |
|
53 # starting with "Ran . tests in" |
|
54 # starting with "FAILED" or "PASSED" |
|
55 # and stripping out the random portions (like time to complete the tests). |
|
56 COMPONENT_TEST_TRANSFORMER = $(NAWK) |
|
57 COMPONENT_TEST_TRANSFORMS = "'/\[ERROR\]/ { print }; /\[OK\]/ { print }; /^Ran / { sub(\" tests in .+s\", \" tests in\"); print }; /^FAILED / { print }; /^PASSED / { print };'" |
|
58 |
|
59 COMPONENT_TEST_DIR = $(COMPONENT_SRC) |
|
60 COMPONENT_TEST_CMD = /usr/demo/twisted-python$(PYTHON_VERSION)/trial |
|
61 COMPONENT_TEST_ARGS = twisted/web2/test/test_xmlrpc.py |
|
62 |
47 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
63 ASLR_MODE = $(ASLR_NOT_APPLICABLE) |
48 |
64 |
49 # common targets |
|
50 build: $(BUILD_NO_ARCH) |
65 build: $(BUILD_NO_ARCH) |
51 |
66 |
52 install: $(INSTALL_NO_ARCH) |
67 install: $(INSTALL_NO_ARCH) |
53 |
68 |
54 test: $(NO_TESTS) |
69 test: $(TEST_NO_ARCH) |
55 |
70 |
56 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
71 BUILD_PKG_DEPENDENCIES = $(BUILD_TOOLS) |
57 |
72 |
58 include $(WS_TOP)/make-rules/depend.mk |
73 include $(WS_TOP)/make-rules/depend.mk |