components/check/Makefile
author Jiri Sasek <Jiri.Sasek@Oracle.COM>
Wed, 27 Jan 2016 18:45:20 -0800
changeset 5398 f499dad29f21
parent 5179 07d5ad88cb1d
child 5682 94c0ca64c022
permissions -rw-r--r--
22662663 samba: Uprev to 4.1.22 22526544 problem in UTILITY/SAMBA 22526597 problem in UTILITY/SAMBA 22526577 problem in UTILITY/SAMBA
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     1
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     2
# CDDL HEADER START
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     3
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     4
# The contents of this file are subject to the terms of the
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     5
# Common Development and Distribution License (the "License").
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     6
# You may not use this file except in compliance with the License.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     7
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     8
# You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
     9
# or http://www.opensolaris.org/os/licensing.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    10
# See the License for the specific language governing permissions
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    11
# and limitations under the License.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    12
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    13
# When distributing Covered Code, include this CDDL HEADER in each
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    14
# file and include the License file at usr/src/OPENSOLARIS.LICENSE.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    15
# If applicable, add the following below this CDDL HEADER, with the
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    16
# fields enclosed by brackets "[]" replaced with your own identifying
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    17
# information: Portions Copyright [yyyy] [name of copyright owner]
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    18
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    19
# CDDL HEADER END
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    20
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    21
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    22
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    23
# Copyright (c) 2015, Oracle and/or its affiliates. All rights reserved.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    25
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    26
include ../../make-rules/shared-macros.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    27
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    28
COMPONENT_NAME=		check
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    29
COMPONENT_VERSION=	0.9.14
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    30
COMPONENT_PROJECT_URL=	http://check.sourceforge.net/
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_SRC=		$(COMPONENT_NAME)-$(COMPONENT_VERSION)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    32
COMPONENT_ARCHIVE=	$(COMPONENT_SRC).tar.gz
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    33
COMPONENT_ARCHIVE_HASH=	\
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    34
    sha256:c272624645b1b738cf57fd5d81a3e4d9b722b99d6133ee3f3c4007d4d279840a
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
COMPONENT_ARCHIVE_URL=	http://downloads.sourceforge.net/project/$(COMPONENT_NAME)/$(COMPONENT_NAME)/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    36
COMPONENT_BUGDB=	utility/check
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    38
TPNO=			19836
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    39
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
include $(WS_MAKE_RULES)/prep.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
include $(WS_MAKE_RULES)/configure.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    42
include $(WS_MAKE_RULES)/ips.mk
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    44
# Several tests fail when the Studio compiler is used.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    45
COMPILER =      gcc
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    46
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    47
CC +=		$(CC_BITS)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    48
5179
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    49
# Override tests in m4/acx_pthread.m4 that try to set obsolete/incompatible
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    50
# flags for linking threaded code on Solaris.
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    51
PTHREAD_CFLAGS = -D__EXTENSIONS__
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    52
ifeq ($(BUILD_TYPE), evaluation)
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    53
# No longer needed on S12 due to PSARC/2014/019, but still needed on S11
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    54
PTHREAD_CFLAGS += -D_POSIX_PTHREAD_SEMANTICS
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    55
endif
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    56
CONFIGURE_OPTIONS += PTHREAD_CFLAGS="$(PTHREAD_CFLAGS)"
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    57
CONFIGURE_OPTIONS += PTHREAD_LIBS="-lc"
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    58
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    59
# Master test results are the same for 32-bit and 64-bit, so override
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    60
# here, rather than create multiple identical master files.
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    61
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    62
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    63
COMPONENT_TEST_TRANSFORMS += \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    64
        '-n ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    65
	'-e "/passed/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    66
	'-e "/failed/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    67
	'-e "/Checks:/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    68
	'-e "/Total:/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    69
	'-e "/Passed/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    70
	'-e "/Failed/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    71
	'-e "/Failure expected/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    72
        '-e "/SKIP/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    73
	'-e "/PASS/p" ' \
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    74
        '-e "/FAIL/p" '
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    75
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    76
COMPONENT_SYSTEM_TEST_ENV =	CHECKMK_SCRIPT=/usr/bin/checkmk
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    77
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    78
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    79
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    80
configure:	$(CONFIGURE_32_and_64)
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    81
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    82
build:		$(BUILD_32_and_64)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    83
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
install:	$(INSTALL_32_and_64)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    85
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    86
test:		$(TEST_32_and_64)
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
4747
0e43ac303e45 21571218 Even more Userland components should have their system-test targets hooked up
Rich Burridge <rich.burridge@oracle.com>
parents: 4339
diff changeset
    88
system-test:    configure $(SYSTEM_TEST_32_and_64)
4339
6501cf9c29f9 21116842 add system-test targets to each component Makefile and to top-level Makefiles
Stacy Yeh <stacy.yeh@oracle.com>
parents: 4065
diff changeset
    89
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    90
REQUIRED_PACKAGES +=	system/library
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    91
REQUIRED_PACKAGES +=	system/library/math
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    92
REQUIRED_PACKAGES +=	text/gawk