blob: dc8138c7d76636666a5dcba68c0433d7be6d80fb (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
|
# $NetBSD: Makefile,v 1.10 2016/10/14 10:31:12 maya Exp $
#
DISTNAME= acpica-unix2-20160930
PKGNAME= ${DISTNAME:S/-unix2-/-utils-/}
CATEGORIES= sysutils devel
MASTER_SITES= https://acpica.org/sites/acpica/files/
MAINTAINER= pkgsrc-users@NetBSD.org
HOMEPAGE= http://www.acpica.org/
COMMENT= Intel ACPI CA Unix utilities
LICENSE= modified-bsd OR gnu-gpl-v2
TESTS_DISTNAME= ${DISTNAME:S/acpica-unix2-/acpitests-unix-/}
DISTFILES= ${DEFAULT_DISTFILES}
DISTFILES+= ${TESTS_DISTNAME}${EXTRACT_SUFX}
USE_TOOLS+= bison flex gm4 gmake bash
REPLACE_BASH+= tests/aapits/bin/aapitsrun
REPLACE_BASH+= tests/aapits/bin/cadir
REPLACE_BASH+= tests/aapits/bin/run1
REPLACE_BASH+= tests/aslts.sh
REPLACE_BASH+= tests/aslts/bin/Do
REPLACE_BASH+= tests/aslts/bin/asltsdiffres
REPLACE_BASH+= tests/aslts/bin/asltsrun
REPLACE_BASH+= tests/aslts/bin/bugstate/bdemosconc
REPLACE_BASH+= tests/aslts/bin/bugstate/bdemossum
REPLACE_BASH+= tests/aslts/bin/bugstate/bdemostabs
REPLACE_BASH+= tests/aslts/bin/bugstate/parsebuglist
REPLACE_BASH+= tests/aslts/bin/common
REPLACE_BASH+= tests/aslts/bin/diffproc
REPLACE_BASH+= tests/aslts/bin/settings
REPLACE_BASH+= tests/templates/templates.sh
post-extract:
${RUN}rm -rf ${WRKSRC}/tests
${RUN}mv ${WRKDIR}/${TESTS_DISTNAME}/tests ${WRKSRC}
do-test:
# ACPICA Tests rely on non-zero exit
## ASL tests
cd ${WRKSRC}/tests && ./aslts.sh -u
## API tests
cd ${WRKSRC}/tests/aapits && gmake
cd ${WRKSRC}/tests/aapits/asl && \
ASL=${WRKSRC}/generate/unix/bin/iasl gmake
# This one needs to be fixed
# cd ${WRKSRC}/tests/aapits/bin && ./aapitsrun
## Template tests
# This test is broken too
# cd ${WRKSRC}/tests/templates && gmake
.include "../../mk/bsd.pkg.mk"
|