Fix win32 testing
diff --git a/test/shaping/Makefile.am b/test/shaping/Makefile.am
index 7fcb54c..42c37c3 100644
--- a/test/shaping/Makefile.am
+++ b/test/shaping/Makefile.am
@@ -36,6 +36,7 @@
 
 TESTS = tests/context-matching.tests
 TESTS_ENVIRONMENT = \
+	EXEEXT="$(EXEEXT)" \
 	srcdir="$(srcdir)" \
 	builddir="$(builddir)" \
 	$(srcdir)/run-tests.sh \
diff --git a/test/shaping/run-tests.sh b/test/shaping/run-tests.sh
index 1da2064..4f34f94 100755
--- a/test/shaping/run-tests.sh
+++ b/test/shaping/run-tests.sh
@@ -4,7 +4,7 @@
 test "x$builddir" = x && builddir=.
 test "x$top_builddir" = x && top_builddir=../..
 
-hb_shape=$top_builddir/util/hb-shape
+hb_shape=$top_builddir/util/hb-shape$EXEEXT
 
 fails=0