From: bluhm Date: Fri, 30 Jun 2017 14:56:08 +0000 (+0000) Subject: Build and run libexpat regress tests from src/lib/libexpat/tests. X-Git-Url: http://artulab.com/gitweb/?a=commitdiff_plain;h=cfdf7ec00f8a56814f4d3cdb732338f2cfe01f61;p=openbsd Build and run libexpat regress tests from src/lib/libexpat/tests. --- diff --git a/regress/lib/libexpat/Makefile b/regress/lib/libexpat/Makefile new file mode 100644 index 00000000000..16614df6e2a --- /dev/null +++ b/regress/lib/libexpat/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $ + +SUBDIR= runtests runtestspp benchmark + +.include diff --git a/regress/lib/libexpat/Makefile.inc b/regress/lib/libexpat/Makefile.inc new file mode 100644 index 00000000000..cc8d1aed563 --- /dev/null +++ b/regress/lib/libexpat/Makefile.inc @@ -0,0 +1,10 @@ +# $OpenBSD: Makefile.inc,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $ + +EXPATDIR= ${.CURDIR}/../../../../lib/libexpat +.PATH: ${EXPATDIR}/tests ${EXPATDIR}/tests/benchmark +PROG= ${.CURDIR:T} +CFLAGS= -g -I${EXPATDIR}/lib +CPPFLAGS= -g -I${EXPATDIR}/lib +LDFLAGS= -g -static +LDADD= -lexpat +DPADD= ${LIBEXPAT} diff --git a/regress/lib/libexpat/benchmark/Makefile b/regress/lib/libexpat/benchmark/Makefile new file mode 100644 index 00000000000..620303eb870 --- /dev/null +++ b/regress/lib/libexpat/benchmark/Makefile @@ -0,0 +1,9 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $ + +# take any large xml file located in our source tree +XMLFILE?= ${BSDSRCDIR}/gnu/lib/libstdc++/libstdc++/docs/html/17_intro/porting-howto.xml + +run-regress-benchmark: ${PROG} + time ./${PROG} ${XMLFILE} 65535 10000 + +.include diff --git a/regress/lib/libexpat/runtests/Makefile b/regress/lib/libexpat/runtests/Makefile new file mode 100644 index 00000000000..bc37ec03c3b --- /dev/null +++ b/regress/lib/libexpat/runtests/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $ + +SRCS= runtests.c chardata.c memcheck.c minicheck.c + +.include diff --git a/regress/lib/libexpat/runtestspp/Makefile b/regress/lib/libexpat/runtestspp/Makefile new file mode 100644 index 00000000000..9baae155051 --- /dev/null +++ b/regress/lib/libexpat/runtestspp/Makefile @@ -0,0 +1,5 @@ +# $OpenBSD: Makefile,v 1.1.1.1 2017/06/30 14:56:08 bluhm Exp $ + +SRCS= runtestspp.cpp chardata.c memcheck.c minicheck.c + +.include