make/RunTests.gmk
changeset 45104 b8a6cd8674d1
parent 44511 f3c27401a860
child 46230 e0ca0417b74d
--- a/make/RunTests.gmk	Fri May 12 19:09:50 2017 +0200
+++ b/make/RunTests.gmk	Fri May 12 19:11:14 2017 +0200
@@ -299,6 +299,12 @@
   $1_TEST_NAME := $$(strip $$(patsubst jtreg:%, %, $$($1_TEST)))
   $1_COMPONENT := $$(firstword $$(subst /, $$(SPACE), $$($1_TEST_NAME)))
 
+  ifeq ($$(JT_HOME), )
+    $$(info Error: jtreg framework is not found.)
+    $$(info Please run configure using --with-jtreg.)
+    $$(error Cannot continue)
+  endif
+
   # Unfortunately, we need different defaults for some JTREG values,
   # depending on what component we're running.