pkgsrc-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[pkgsrc/trunk]: pkgsrc/devel/git-base git-base: Use bash to run tests



details:   https://anonhg.NetBSD.org/pkgsrc/rev/fff66fa66c86
branches:  trunk
changeset: 345414:fff66fa66c86
user:      leot <leot%pkgsrc.org@localhost>
date:      Wed Dec 11 14:54:25 2019 +0000

description:
git-base: Use bash to run tests

At least with NetBSD (9.99.17) sh(1) the `streaming support for --stdin'
test of t0008-ignores.sh hangs.  Force to use bash for tests and add it as a
test dependency. (This needs to be investigate further.)

The entire test suite is now runs but at least on NetBSD 9.99.17
t0301-credential-cache.sh test 29 `use user socket if user directory
exists' and test 30 `use user socket if user directory is a symlink to
a directory' fail.

diffstat:

 devel/git-base/Makefile |  10 ++++++++--
 1 files changed, 8 insertions(+), 2 deletions(-)

diffs (31 lines):

diff -r a0300968a404 -r fff66fa66c86 devel/git-base/Makefile
--- a/devel/git-base/Makefile   Wed Dec 11 14:52:35 2019 +0000
+++ b/devel/git-base/Makefile   Wed Dec 11 14:54:25 2019 +0000
@@ -1,4 +1,4 @@
-# $NetBSD: Makefile,v 1.72 2019/12/10 18:32:38 leot Exp $
+# $NetBSD: Makefile,v 1.73 2019/12/11 14:54:25 leot Exp $
 
 .include "../../devel/git/Makefile.common"
 
@@ -15,7 +15,7 @@
 DEPENDS+=      p5-Authen-SASL>=1.0:../../security/p5-Authen-SASL
 
 USE_LANGUAGES=         c99
-USE_TOOLS+=            perl:run sh:run msgfmt
+USE_TOOLS+=            perl:run sh:run msgfmt bash:test
 
 REPLACE_PERL+=         *.perl */*.perl */*/*.perl
 REPLACE_PERL+=         contrib/hooks/update-paranoid
@@ -82,6 +82,12 @@
 SUBST_SED.fix-cd-P=    -e "s/cd -P/cd/g"
 .endif
 
+SUBST_CLASSES+=                        test-shell
+SUBST_FILES.test-shell=                t/Makefile
+SUBST_MESSAGE.test-shell=      Use bash as TEST_SHELL_PATH
+SUBST_STAGE.test-shell=                pre-build
+SUBST_SED.test-shell=          -e '/^TEST_SHELL_PATH/ s;$$(SHELL_PATH);${TOOLS_BASH};'
+
 LDFLAGS.SunOS+=                -lintl -lnsl
 
 .include "../../mk/compiler.mk"



Home | Main Index | Thread Index | Old Index