Marcel Telka
2022-07-08 96719fd3547b86c44a97995a5881fb70993f6d9d
makemaker.mk: Make sure test results contains 'test_harness' line

1 files modified
6 ■■■■ changed files
make-rules/makemaker.mk 6 ●●●● patch | view | raw | blame | history
make-rules/makemaker.mk
@@ -138,11 +138,15 @@
COMPONENT_TEST_TRANSFORM_CMD = $(COMPONENT_TEST_BUILD_DIR)/transform-$(PERL_VERSION)-$(BITS)-results
# Normalize perl test results.
COMPONENT_TEST_TRANSFORMS += '-e "1,/test_harness/d"'        # delete any lines up through test_harness
COMPONENT_TEST_TRANSFORMS += '-e "0,/test_harness/d"'        # delete any lines up through test_harness
COMPONENT_TEST_TRANSFORMS += '-e "s/,  *[0-9]* wallclock.*//"'    # delete timings
COMPONENT_TEST_TRANSFORMS += '-e "/^\#/d"'            # delete comments
COMPONENT_TEST_TRANSFORMS += '-e "/^make\[/d"'            # delete make logs
# Add the expected 'test_harness' line if it is missing in the test results.
COMPONENT_POST_TEST_ACTION += $(GNU_GREP) -q test_harness $(COMPONENT_TEST_OUTPUT) \
    || $(GSED) -i -e '1i\test_harness' $(COMPONENT_TEST_OUTPUT) ;
COMPONENT_TEST_TARGETS =    test
COMPONENT_TEST_ENV +=    $(COMMON_PERL_ENV)