commit | author | age
|
8aa8b9
|
1 |
# |
AL |
2 |
# This file and its contents are supplied under the terms of the |
|
3 |
# Common Development and Distribution License ("CDDL"), version 1.0. |
|
4 |
# You may only use this file in accordance with the terms of version |
|
5 |
# 1.0 of the CDDL. |
|
6 |
# |
|
7 |
# A full copy of the text of the CDDL should have accompanied this |
|
8 |
# source. A copy of the CDDL is also available via the Internet at |
|
9 |
# http://www.illumos.org/license/CDDL. |
|
10 |
# |
|
11 |
|
|
12 |
# |
|
13 |
# Copyright 2014-2017 Aurelien Larcher. All rights reserved. |
fdf80a
|
14 |
# Copyright 2020, Michal Nowak |
8aa8b9
|
15 |
# |
fdf80a
|
16 |
|
MN |
17 |
BUILD_BITS= 32_and_64 |
8aa8b9
|
18 |
include ../../../make-rules/shared-macros.mk |
AL |
19 |
|
|
20 |
COMPONENT_NAME= check |
a0d208
|
21 |
COMPONENT_VERSION= 0.15.2 |
8aa8b9
|
22 |
COMPONENT_FMRI= developer/check |
AL |
23 |
COMPONENT_SUMMARY= Unit Testing Framework for C |
|
24 |
COMPONENT_PROJECT_URL= https://libcheck.github.io/check |
|
25 |
COMPONENT_CLASSIFICATION=Development/C |
|
26 |
COMPONENT_SRC= $(COMPONENT_NAME)-$(COMPONENT_VERSION) |
|
27 |
COMPONENT_ARCHIVE= $(COMPONENT_SRC).tar.gz |
a0d208
|
28 |
COMPONENT_ARCHIVE_HASH= sha256:a8de4e0bacfb4d76dd1c618ded263523b53b85d92a146d8835eb1a52932fa20a |
AW |
29 |
COMPONENT_ARCHIVE_URL= https://github.com/libcheck/check/releases/download/$(COMPONENT_VERSION)/$(COMPONENT_ARCHIVE) |
8aa8b9
|
30 |
COMPONENT_LICENSE= LGPLv2 |
AL |
31 |
|
fdf80a
|
32 |
include $(WS_MAKE_RULES)/common.mk |
8aa8b9
|
33 |
|
AL |
34 |
CFLAGS+=-std=gnu99 |
|
35 |
|
05ff98
|
36 |
CONFIGURE_OPTIONS+= --includedir=$(CONFIGURE_PREFIX)/include/check |
AL |
37 |
CONFIGURE_OPTIONS+= --enable-shared |
|
38 |
CONFIGURE_OPTIONS+= --disable-static |
|
39 |
CONFIGURE_OPTIONS+= --disable-gcov |
8aa8b9
|
40 |
CONFIGURE_OPTIONS+= --enable-timeout-tests |
AL |
41 |
# Needed to get all the tests to pass (problems with "inf/nan" vs "Inf/Nan"). |
|
42 |
CONFIGURE_OPTIONS+= --enable-snprintf-replacement |
|
43 |
|
|
44 |
# Tests failure |
|
45 |
unexport SHELLOPTS |
|
46 |
|
05ff98
|
47 |
COMPONENT_TEST_MASTER = $(COMPONENT_TEST_RESULTS_DIR)/results-all.master |
AL |
48 |
|
|
49 |
COMPONENT_TEST_TRANSFORMS += \ |
|
50 |
'-n ' \ |
|
51 |
'-e "/TOTAL:/p" ' \ |
|
52 |
'-e "/SKIP:/p" ' \ |
|
53 |
'-e "/PASS:/p" ' \ |
|
54 |
'-e "/FAIL:/p" ' \ |
|
55 |
'-e "/ERROR:/p" ' |
8aa8b9
|
56 |
|
AL |
57 |
# Auto-generated dependencies |
|
58 |
REQUIRED_PACKAGES += system/library |
|
59 |
REQUIRED_PACKAGES += system/library/math |
|
60 |
REQUIRED_PACKAGES += text/gawk |