mirror of
https://git.FreeBSD.org/ports.git
synced 2024-10-18 19:49:40 +00:00
Run regression tests with bash since some test scripts unfortunately
rely on bash features. PR: 240686 Reviewed by: jbeich
This commit is contained in:
parent
4e4beee32a
commit
804ef6e40e
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=512715
@ -15,6 +15,7 @@ LICENSE_FILE= ${WRKSRC}/COPYING
|
||||
BUILD_DEPENDS= zip:archivers/zip
|
||||
LIB_DEPENDS= libnspr4.so:devel/nspr \
|
||||
libsqlite3.so:databases/sqlite3
|
||||
TEST_DEPENDS= bash:shells/bash
|
||||
|
||||
WRKSRC_SUBDIR= nss
|
||||
|
||||
@ -63,12 +64,12 @@ USE_BINUTILS= # intel-gcm.s
|
||||
CC+= -B${LOCALBASE}/bin
|
||||
.endif
|
||||
|
||||
check regression-test test:
|
||||
do-test:
|
||||
cd ${WRKSRC}/tests; \
|
||||
${SETENV} PATH="${BINS}/bin:${PATH}" \
|
||||
LD_LIBRARY_PATH="${BINS}/lib" \
|
||||
${MAKE_ENV} \
|
||||
./all.sh
|
||||
bash ./all.sh
|
||||
@if ${GREP} -Fh '>Failed<' \
|
||||
${WRKSRC:H}/tests_results/security/*/results.html; then \
|
||||
echo "Some tests have failed. Let ${MAINTAINER} know."; \
|
||||
@ -83,8 +84,6 @@ post-patch:
|
||||
@cd ${WRKSRC} && \
|
||||
${FIND} . -name "*.c" -o -name "*.h" | \
|
||||
${XARGS} ${REINPLACE_CMD} -e 's|"nspr.h"|<nspr.h>|'
|
||||
${FIND} ${WRKSRC}/tests -name '*.sh' | ${XARGS} ${GREP} -l -F '/bin/bash' | \
|
||||
${XARGS} ${REINPLACE_CMD} -e 's|#! */bin/bash|#!${SH}|'
|
||||
|
||||
do-install:
|
||||
${MKDIR} ${STAGEDIR}${PREFIX}/include/nss/nss ${STAGEDIR}${PREFIX}/lib/nss
|
||||
|
Loading…
Reference in New Issue
Block a user