mirror of
https://git.FreeBSD.org/ports.git
synced 2025-01-24 09:25:01 +00:00
add a regression-test target and fix the clang build
This commit is contained in:
parent
a459b71ddd
commit
779a20adf2
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=280042
@ -33,6 +33,7 @@ PLIST_SUB= PORTNAME="${PORTNAME}"
|
||||
|
||||
post-patch:
|
||||
@${REINPLACE_CMD} -e 's|echo aout|echo elf|' ${WRKSRC}/configure
|
||||
@${REINPLACE_CMD} -e 's|return|& (0)|' ${WRKSRC}/testu01/fftc.c
|
||||
.ifdef(NOPORTDOCS)
|
||||
@${REINPLACE_CMD} -e '/^SUBDIRS \=/s/ doc / /' ${WRKSRC}/Makefile.in
|
||||
@${FIND} -X ${WRKSRC} -name 'Makefile.in' | ${XARGS} ${REINPLACE_CMD} \
|
||||
@ -47,4 +48,25 @@ post-install:
|
||||
@${INSTALL_DATA} ${DISTDIR}/testu01.pdf ${DOCSDIR}
|
||||
.endif
|
||||
|
||||
check regression-test test: build
|
||||
@cd ${WRKSRC}/examples ; \
|
||||
for f in [mx]*.c ; do \
|
||||
${CC} ${CFLAGS} -c $${f} -I. -I../include ; \
|
||||
done ; \
|
||||
for t in [befs]*.c; do \
|
||||
case $${t} in \
|
||||
ex3.c) x="my16807.o" ;; \
|
||||
ex7.c) x="mrg32k3a.o xorshift.o" ;; \
|
||||
scat.c) continue ;; \
|
||||
*) x="" ;; \
|
||||
esac ; \
|
||||
${CC} ${CFLAGS} ${LDFLAGS} -o $${t%.c} $${t} -I. -I../include \
|
||||
-Wl,--as-needed $${x} ../testu01/.libs/libtestu01.so \
|
||||
../probdist/.libs/libprobdist.so ../mylib/.libs/libmylib.so -lm ; \
|
||||
${ECHO_CMD} "Running $${t%.c}..." ; \
|
||||
${SETENV} \
|
||||
LD_LIBRARY_PATH=../testu01/.libs:../probdist/.libs:../mylib/.libs \
|
||||
./$${t%.c} ; \
|
||||
done
|
||||
|
||||
.include <bsd.port.mk>
|
||||
|
Loading…
Reference in New Issue
Block a user