Fix golang bindtest and check-mli.sh for out-of-tree builds
authorHilko Bengen <bengen@debian.org>
Mon, 27 Dec 2021 00:17:16 +0000 (01:17 +0100)
committerHilko Bengen <bengen@debian.org>
Mon, 24 Jul 2023 20:48:10 +0000 (21:48 +0100)
Gbp-Pq: Name Fix-golang-bindtest-and-check-mli.sh-for-out-of-tree-buil.patch

check-mli.sh
golang/run-bindtests

index 8a931872aa7d865b3c643d6b2451a58366de8217..1b3da07af9188737204a70ce5d63db8c09a402e5 100755 (executable)
@@ -22,7 +22,7 @@
 exitcode=0
 
 for f in $(
-    find -name '*.ml' |
+    find "$abs_srcdir" "$abs_builddir" -name '*.ml' |
     grep -v builder/templates |
     grep -v contrib/ |
     grep -v ocaml/examples/ |
index e79bb07a1048c2bc808e1544a49b2eb4ba0c86b5..b62132bb1c6976ec0a48440bce574cccc21e217a 100755 (executable)
@@ -18,7 +18,6 @@
 
 set -e
 
-cd $srcdir/bindtests
-$GOLANG run bindtests.go > bindtests.tmp
-diff -u $srcdir/../../bindtests bindtests.tmp
+( cd $srcdir/bindtests && $GOLANG run bindtests.go ) > bindtests.tmp
+diff -u $srcdir/../bindtests bindtests.tmp
 rm bindtests.tmp