summaryrefslogtreecommitdiff
path: root/devel/git-base
diff options
context:
space:
mode:
authorleot <leot@pkgsrc.org>2019-12-11 14:54:25 +0000
committerleot <leot@pkgsrc.org>2019-12-11 14:54:25 +0000
commit070540cc8993ed84712a356308be3aa0f4feaa09 (patch)
tree2dd559c9c0d5f5d142370dad7e755c9d5c12bbd3 /devel/git-base
parentb44c0a628d0c6b71d316434e7af4e0362f7bc1cd (diff)
downloadpkgsrc-070540cc8993ed84712a356308be3aa0f4feaa09.tar.gz
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 (limited to 'devel/git-base')
-rw-r--r--devel/git-base/Makefile10
1 files changed, 8 insertions, 2 deletions
diff --git a/devel/git-base/Makefile b/devel/git-base/Makefile
index cb1bcbae0b7..e4a967d5480 100644
--- a/devel/git-base/Makefile
+++ b/devel/git-base/Makefile
@@ -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-Net-SMTP-SSL>=1.01:../../mail/p5-Net-SMTP-SSL
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_STAGE.fix-cd-P= pre-build
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"