From 248b83c73bbdd2a9bd6834692a56be90540b3347 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Henrik=20Grubbstr=C3=B6m=20=28Grubba=29?=
 <grubba@grubba.org>
Date: Sat, 24 May 2014 15:02:17 +0200
Subject: [PATCH] Testsuite: Support SRCDIR substitution in lib testsuites too.

---
 bin/mklibtests.sh | 7 ++++++-
 1 file changed, 6 insertions(+), 1 deletion(-)

diff --git a/bin/mklibtests.sh b/bin/mklibtests.sh
index 82c44853fb..10b4426bb6 100755
--- a/bin/mklibtests.sh
+++ b/bin/mklibtests.sh
@@ -33,7 +33,12 @@ recurse () {
          echo >&2 "Could not create $dest_dir$path"testsuite
 	 continue
        fi
-       "$bin_dir"mktestsuite "$src_dir$path$fn" >&5
+       if [ "$PIKE_PATH_TRANSLATE" = "" ]; then
+         "$bin_dir"mktestsuite "$src_dir$path$fn" >&5 -DSRCDIR="$src_dir$path"
+       else
+         "$bin_dir"mktestsuite "$src_dir$path$fn" >&5 \
+	   -DSRCDIR="`echo $src_dir$path|sed -e $PIKE_PATH_TRANSLATE|$bin_dir/../src/posix_to_native.sh`"
+       fi
        exec 5>&-
        echo "$dest_dir$path"testsuite updated.
     fi    
-- 
GitLab