summaryrefslogtreecommitdiff
path: root/tests/test_tar_sqfs.sh.in
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-26 18:38:53 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2019-12-27 20:59:47 +0100
commit66ee810f13bbc296fdea0812231aece66bb0a59e (patch)
tree85ec7f1d3fae9e515dc961406b1417dcc577b919 /tests/test_tar_sqfs.sh.in
parentb65ef6722a8756780bac042563d8d97629267e2d (diff)
Fix corpora test scripts for Windows cross build
Signed-off-by: David Oberhollenzer <david.oberhollenzer@sigma-star.at>
Diffstat (limited to 'tests/test_tar_sqfs.sh.in')
-rwxr-xr-xtests/test_tar_sqfs.sh.in4
1 files changed, 4 insertions, 0 deletions
diff --git a/tests/test_tar_sqfs.sh.in b/tests/test_tar_sqfs.sh.in
index ea3b884..2c8e675 100755
--- a/tests/test_tar_sqfs.sh.in
+++ b/tests/test_tar_sqfs.sh.in
@@ -6,6 +6,10 @@ TARDIR="@abs_top_srcdir@/tests/tar"
SHA512FILE="@abs_top_srcdir@/tests/tar/sqfs.sha512"
TAR2SQFS="@abs_top_builddir@/tar2sqfs"
+if [ ! -f "$TAR2SQFS" -a -f "${TAR2SQFS}.exe" ]; then
+ TAR2SQFS="${TAR2SQFS}.exe"
+fi
+
for filename in $(find "$TARDIR" -name "*.tar" | grep -v ".*/file-size/.*"); do
dir="$(dirname $filename | sed -n -e 's;.*/tests/;tests/;p')"
imgname="$dir/$(basename $filename .tar).sqfs"