components/coreutils/Makefile
changeset 4747 0e43ac303e45
parent 4339 6501cf9c29f9
child 5169 c5d3147d411a
equal deleted inserted replaced
4746:8e237ffd0a48 4747:0e43ac303e45
    51 CONFIGURE_OPTIONS	+=	CFLAGS="$(CFLAGS)"
    51 CONFIGURE_OPTIONS	+=	CFLAGS="$(CFLAGS)"
    52 
    52 
    53 # Recreate configure and Makefile to pick up changes in .../src/local.mk
    53 # Recreate configure and Makefile to pick up changes in .../src/local.mk
    54 COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
    54 COMPONENT_PREP_ACTION = (cd $(@D) ; autoreconf -f && automake)
    55 
    55 
       
    56 # Needed to get tests to work when run directly from the tests subdirectory.
       
    57 COMPONENT_PRE_CONFIGURE_ACTION = ($(CLONEY) $(SOURCE_DIR) $(@D))
       
    58 
    56 # Always show the build and link lines for easier debugging.
    59 # Always show the build and link lines for easier debugging.
    57 COMPONENT_BUILD_ARGS +=		V=1
    60 COMPONENT_BUILD_ARGS +=		V=1
    58 
    61 
    59 # Enable ASLR for this component
       
    60 ASLR_MODE = $(ASLR_ENABLE)
    62 ASLR_MODE = $(ASLR_ENABLE)
    61 
    63 
    62 # common targets
       
    63 configure:	$(CONFIGURE_32_and_64)
    64 configure:	$(CONFIGURE_32_and_64)
    64 
    65 
    65 build:		$(BUILD_32_and_64)
    66 build:		$(BUILD_32_and_64)
    66 
    67 
    67 install:	$(INSTALL_32_and_64)
    68 install:	$(INSTALL_32_and_64)
    74 # diffs failing due to script tracing in output files.
    75 # diffs failing due to script tracing in output files.
    75 unexport SHELLOPTS
    76 unexport SHELLOPTS
    76 
    77 
    77 # Get the binaries to test from the component proto area.
    78 # Get the binaries to test from the component proto area.
    78 COMPONENT_TEST_ENV +=   PATH=$(PROTOUSRSBINDIR):/usr/bin
    79 COMPONENT_TEST_ENV +=   PATH=$(PROTOUSRSBINDIR):/usr/bin
       
    80 COMPONENT_TEST_DIR =	$(@D)/tests
    79 
    81 
    80 # Always show the build and link lines for easier debugging.
    82 # Always show the build and link lines for easier debugging.
    81 COMPONENT_TEST_ARGS +=	V=1
    83 COMPONENT_TEST_ARGS +=	V=1
    82 
    84 
    83 # The additional coreutils specific set of transforms to be applied to the
       
    84 # test results to try to normalize them.
       
    85 COMPONENT_TEST_TRANSFORMS += \
    85 COMPONENT_TEST_TRANSFORMS += \
    86 	'-e "s|^.*$(CC).*$$|XXX_CC_XXX|g" ' \
    86 	'-n ' \
    87 	'-e "s|^.*source=.*libtool=no.*$$|XXX_CC_XXX|g" ' \
    87 	'-e "/TOTAL/p" ' \
    88 	'-e "s|^.*DEPDIR=.deps.*$$|XXX_CC_XXX|g" ' \
    88 	'-e "/SKIP/p" ' \
    89 	'-e "/^XXX_CC_XXX$$/d" ' \
    89 	'-e "/PASS/p" ' \
    90 	'-e "/^separator.sh:/d" ' \
    90 	'-e "/FAIL/p" ' \
    91 	'-e "s|\(/gnulib-tests/test-getlogin.c:\).*|\1|" ' \
    91 	'-e "/ERROR/p" '
    92 	'-e "s|\(^/bin/bash: line 1:\).*|\1|" ' \
       
    93 	'-e "s|\(^df-symlink.sh: skipped test:\).*|\1|" ' \
       
    94 	'-e "s|\(^tail-n0f.sh: skipped test:\).*|\1|" '
       
    95 
    92 
    96 # There are currently two tests that are failing, for which the following
    93 # Get the binaries to test from their installed locations.
    97 # bugs are filed; see the bug reports for more details:
    94 COMPONENT_SYSTEM_TEST_ENV +=	PATH=/usr/gnu/bin:/usr/bin
    98 # test-mbsalign - 20432332
    95 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
    99 # test-posixtm  - 19344177
       
   100 
    96 
   101 test:		install $(TEST_64)
    97 test:		install $(TEST_64)
   102 
    98 
   103 # Add install as above when system-test target is implemented
    99 system-test:    configure $(SYSTEM_TEST_64)
   104 system-test:    $(SYSTEM_TESTS_NOT_IMPLEMENTED)
       
   105 
   100 
   106 REQUIRED_PACKAGES += library/gmp
   101 REQUIRED_PACKAGES += library/gmp
   107 REQUIRED_PACKAGES += system/library
   102 REQUIRED_PACKAGES += system/library