Skip to content
Snippets Groups Projects
Commit 248b83c7 authored by Henrik (Grubba) Grubbström's avatar Henrik (Grubba) Grubbström
Browse files

Testsuite: Support SRCDIR substitution in lib testsuites too.

parent cb2767a0
No related branches found
No related tags found
No related merge requests found
...@@ -33,7 +33,12 @@ recurse () { ...@@ -33,7 +33,12 @@ recurse () {
echo >&2 "Could not create $dest_dir$path"testsuite echo >&2 "Could not create $dest_dir$path"testsuite
continue continue
fi 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>&- exec 5>&-
echo "$dest_dir$path"testsuite updated. echo "$dest_dir$path"testsuite updated.
fi fi
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment