components/tcpdump/Makefile
changeset 7383 93f1d98a66f9
parent 7245 934578b959f0
child 7674 e5be4a3b0c32
equal deleted inserted replaced
7382:76874cb9666f 7383:93f1d98a66f9
    36 
    36 
    37 # Enable adiheap and adistack security extensions
    37 # Enable adiheap and adistack security extensions
    38 ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
    38 ADIHEAP_MODE =	$(ADIHEAP_ENABLE)
    39 ADISTACK_MODE =	$(ADISTACK_ENABLE)
    39 ADISTACK_MODE =	$(ADISTACK_ENABLE)
    40 
    40 
       
    41 SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_64)
    41 include $(WS_MAKE_RULES)/common.mk
    42 include $(WS_MAKE_RULES)/common.mk
    42 
    43 
    43 ifeq ($(OS_VERSION),5.11)
    44 ifeq ($(OS_VERSION),5.11)
    44 # Prevent macro redefinition error
    45 # Prevent macro redefinition error
    45 CFLAGS += -D _NETINET_IP_H
    46 CFLAGS += -D _NETINET_IP_H
    58 
    59 
    59 CONFIGURE_OPTIONS += --enable-ipv6=yes
    60 CONFIGURE_OPTIONS += --enable-ipv6=yes
    60 CONFIGURE_OPTIONS += --with-user=nobody
    61 CONFIGURE_OPTIONS += --with-user=nobody
    61 CONFIGURE_OPTIONS += --without-crypto
    62 CONFIGURE_OPTIONS += --without-crypto
    62 
    63 
    63 # common targets
    64 COMPONENT_TEST_TRANSFORMS += \
       
    65 	'-e "/Entering directory/d" ' \
       
    66 	'-e "/Leaving directory/d" ' \
       
    67 	'-e "/cd tests/d" '
       
    68 
    64 COMPONENT_PRE_TEST_ACTION = \
    69 COMPONENT_PRE_TEST_ACTION = \
    65         ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
    70         ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
    66 
    71 
       
    72 # We don't want to build tcpdump, so override the equivalent of "gmake check"
       
    73 # in the main Makefile.
       
    74 COMPONENT_SYSTEM_TEST_CMD =	./TESTrun.sh
       
    75 COMPONENT_SYSTEM_TEST_DIR =	$(@D)/tests
       
    76 COMPONENT_SYSTEM_TEST_ENV +=	TCPDUMP_BIN=$(USRSBINDIR)/tcpdump
       
    77 COMPONENT_SYSTEM_TEST_TARGETS =
       
    78 COMPONENT_PRE_SYSTEM_TEST_ACTION = \
       
    79         ($(CP) -r $(SOURCE_DIR)/tests $(@D)/.)
       
    80 
    67 REQUIRED_PACKAGES += system/library/libpcap
    81 REQUIRED_PACKAGES += system/library/libpcap