head	1.2;
access;
symbols
	netbsd-11-0-RC4:1.2
	netbsd-11-0-RC3:1.2
	netbsd-11-0-RC2:1.2
	netbsd-11-0-RC1:1.2
	perseant-exfatfs-base-20250801:1.2
	netbsd-11:1.2.0.6
	netbsd-11-base:1.2
	netbsd-10-1-RELEASE:1.2
	perseant-exfatfs-base-20240630:1.2
	perseant-exfatfs:1.2.0.4
	perseant-exfatfs-base:1.2
	netbsd-10-0-RELEASE:1.2
	netbsd-10-0-RC6:1.2
	netbsd-10-0-RC5:1.2
	netbsd-10-0-RC4:1.2
	netbsd-10-0-RC3:1.2
	netbsd-10-0-RC2:1.2
	netbsd-10-0-RC1:1.2
	netbsd-10:1.2.0.2
	netbsd-10-base:1.2;
locks; strict;
comment	@# @;


1.2
date	2022.11.13.21.57.12;	author mrg;	state Exp;
branches;
next	1.1;
commitid	jUWIt0bQ3SFPCA1E;

1.1
date	2022.11.13.09.36.37;	author mrg;	state Exp;
branches;
next	;
commitid	S5xPaufMpk6Lww1E;


desc
@@


1.2
log
@add a 'check' target to run the tests (needs to be on the same arch as host.)
@
text
@
#	$NetBSD: Makefile,v 1.1 2022/11/13 09:36:37 mrg Exp $

NOINSTALL=1
NOMAN=1

.include <bsd.own.mk>

PROGS=					\
	oob-test			\
	infinite-loop			\
	trap-crasher			\
	fence-image-self-test		\
	region-translate-test		\
	fetch-test			\
	a1-trap-test			\
	prng-test			\
	radial-invalid			\
	pdf-op-test			\
	region-test			\
	combiner-test			\
	scaling-crash-test		\
	alpha-loop			\
	scaling-helpers-test		\
	thread-test			\
	rotate-test			\
	alphamap			\
	gradient-crash-test		\
	pixel-test			\
	matrix-test			\
	filter-reduction-test		\
	composite-traps-test		\
	region-contains-test		\
	glyph-test			\
	solid-test			\
	stress-test			\
	cover-test			\
	blitters-test			\
	affine-test			\
	scaling-test			\
	composite			\
	tolerance-test

ADDSRCS+=	utils.c utils-prng.c

.for _p in ${PROGS}
SRCS.${_p}=	${_p}.c ${ADDSRCS}
.endfor

CPPFLAGS+=	-I${X11SRCDIR.pixman}/pixman

LDFLAGS+=	-lpthread
LDADD+=		-lpixman-1

.include "../Makefile.cflags"

.PATH:	${X11SRCDIR.pixman}/test

check:
.for test in ${PROGS}
	echo -n "Starting ${test}: "; date
	./${test} && echo Passed: ${test}
.endfor
	echo -n "Done: "; date

.include <bsd.x11.mk>
.include <bsd.prog.mk>
@


1.1
log
@add build infrastructure to build the pixman tests

not built or installed by default.
@
text
@d2 1
a2 1
#	$NetBSD$
d59 7
@

