If dejagnu is not found, tell the user instead of bombing out with an
authorChris Lattner <sabre@nondot.org>
Tue, 1 Aug 2006 00:07:58 +0000 (00:07 +0000)
committerChris Lattner <sabre@nondot.org>
Tue, 1 Aug 2006 00:07:58 +0000 (00:07 +0000)
obscure error.

git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@29421 91177308-0d34-0410-b5e6-96231b3b80d8

test/Makefile

index f06d389261a16b0a6d498eb646cd64d5755b42ed..5b03583add1688df2e41a2010589f962170542de 100644 (file)
@@ -31,9 +31,14 @@ ifndef RUNLLVM2CPP
 RUNTESTFLAGS += --ignore llvm2cpp.exp
 endif
 
+ifneq ($(RUNTEST),)
 check-local:: site.exp
        PATH="$(LLVMToolDir):$(LLVMExmplDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \
        $(RUNTEST) $(RUNTESTFLAGS)
+else
+check-local:: site.exp
+       @echo "*** dejagnu not found.  Make sure runtest is in your PATH, then reconfigure llvm."
+endif
 
 clean::
        $(RM) -rf `find $(LLVM_OBJ_ROOT)/test/Regression -name Output -type d -print`