components/check/Makefile
author Rich Burridge <rich.burridge@oracle.com>
Wed, 05 Apr 2017 18:14:11 -0700
changeset 7837 e695e26f0bb2
parent 7754 9db565f67d81
permissions -rw-r--r--
25615619 "gmake test" failures for check version 0.11.0
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
#
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 5965
diff changeset
    23
# Copyright (c) 2015, 2017, Oracle and/or its affiliates. All rights reserved.
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    24
#
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5179
diff changeset
    25
BUILD_BITS= 64_and_32
4065
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
7754
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    29
COMPONENT_VERSION=	0.11.0
5965
de76ec1c88a0 23209341 Upgrade check to 0.10.0
Rich Burridge <rich.burridge@oracle.com>
parents: 5682
diff changeset
    30
COMPONENT_PROJECT_URL=	https://libcheck.github.io/check
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    31
COMPONENT_ARCHIVE_HASH=	\
7754
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    32
    sha256:24f7a48aae6b74755bcbe964ce8bc7240f6ced2141f8d9cf480bc3b3de0d5616
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    33
COMPONENT_ARCHIVE_URL=	https://github.com/libcheck/$(COMPONENT_NAME)/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE)
7687
1093e2a9adbd 25590368 Userland components should include "upstream" release tracking information
Rich Burridge <rich.burridge@oracle.com>
parents: 5965
diff changeset
    34
COMPONENT_ANITYA_ID=	7593
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    35
7754
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    36
TPNO=			33944
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    37
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5179
diff changeset
    38
SYSTEM_TEST_TARGET= configure $(SYSTEM_TEST_32_and_64)
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5179
diff changeset
    39
include $(WS_MAKE_RULES)/common.mk
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    40
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    41
# 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
    42
COMPILER =      gcc
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    43
5179
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    44
# 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
    45
# 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
    46
PTHREAD_CFLAGS = -D__EXTENSIONS__
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    47
ifeq ($(BUILD_TYPE), evaluation)
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    48
# 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
    49
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
    50
endif
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    51
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
    52
CONFIGURE_OPTIONS += PTHREAD_LIBS="-lc"
07d5ad88cb1d 22341948 check.pc includes cflags that break Studio
Rich Burridge <rich.burridge@oracle.com>
parents: 4747
diff changeset
    53
7837
e695e26f0bb2 25615619 "gmake test" failures for check version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7754
diff changeset
    54
# Needed to get all the tests to pass (problems with "inf/nan" vs "Inf/Nan").
e695e26f0bb2 25615619 "gmake test" failures for check version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7754
diff changeset
    55
CONFIGURE_OPTIONS += --enable-snprintf-replacement
e695e26f0bb2 25615619 "gmake test" failures for check version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7754
diff changeset
    56
7754
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    57
# Needed for "gmake test" to work successfully.
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    58
# If SHELLOPTS is exported (as it is by the userland makefiles),
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    59
# then all shell options get exported to child invocations of bash,
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    60
# which results in test failures due to nounset and xtrace being
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    61
# set unexpectedly, and errors such as "$1: unbound variable" and
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    62
# diffs failing due to script tracing in output files.
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    63
unexport SHELLOPTS
9db565f67d81 25615586 Update check to version 0.11.0
Rich Burridge <rich.burridge@oracle.com>
parents: 7687
diff changeset
    64
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    65
# 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
    66
# 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
    67
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
    68
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
    69
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
    70
        '-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
    71
	'-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
    72
	'-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
    73
	'-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
    74
	'-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
    75
	'-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
    76
	'-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
    77
	'-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
    78
        '-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
    79
	'-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
    80
        '-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
    81
5682
94c0ca64c022 15558602 TCL_LD_SEARCH_FLAGS is wrongly defined in tclConfig.sh
Shawn Walker-Salas <shawn.walker@oracle.com>
parents: 5179
diff changeset
    82
COMPONENT_SYSTEM_TEST_ENV =	CHECKMK_SCRIPT=$(USRBINDIR)/checkmk
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
    83
4065
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    84
ASLR_MODE = $(ASLR_NOT_APPLICABLE)
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
REQUIRED_PACKAGES +=	system/library/math
15a3200fff2d PSARC 2014/373 check version 0.9.14
Rich Burridge <rich.burridge@oracle.com>
parents:
diff changeset
    87
REQUIRED_PACKAGES +=	text/gawk