From: Reid Spencer Date: Wed, 13 Jul 2005 00:35:12 +0000 (+0000) Subject: Add a test that runs the ParallelJIT example program to ensure that the X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=87df3636e1a081abe888150959db269479c22ba1;p=oota-llvm.git Add a test that runs the ParallelJIT example program to ensure that the JIT can run against a multi-threaded program without getting its data structures messed up. Also had to add the examples directory to the path for the tests so that ParallelJIT can be found. git-svn-id: https://llvm.org/svn/llvm-project/llvm/trunk@22415 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/ExecutionEngine/parallel.ll b/test/ExecutionEngine/parallel.ll new file mode 100644 index 00000000000..6dc3f760d99 --- /dev/null +++ b/test/ExecutionEngine/parallel.ll @@ -0,0 +1,3 @@ +; This isn't really an assembly file. This test runs the ParallelJIT example +; program and ensures its output is sane. +; RUN: ParallelJIT | grep -q "Fib2 returned 267914296" diff --git a/test/Makefile b/test/Makefile index e7a2f6324bd..e2306dad5d0 100644 --- a/test/Makefile +++ b/test/Makefile @@ -28,7 +28,7 @@ RUNTESTFLAGS := --tool $(CLEANED_TESTSUITE) endif check-local:: site.exp - PATH="$(LLVMToolDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \ + PATH="$(LLVMToolDir):$(LLVMExmplDir):$(LLVM_SRC_ROOT)/test/Scripts:$(PATH)" \ $(RUNTEST) $(RUNTESTFLAGS) clean::