From 4f61c646397f29353fe2fb0c76d0c6ca40769ea1 Mon Sep 17 00:00:00 2001 From: Reid Spencer Date: Wed, 13 Jul 2005 00:35:12 +0000 Subject: [PATCH] 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. llvm-svn: 22415 --- llvm/test/Makefile | 2 +- llvm/test/Regression/ExecutionEngine/parallel.ll | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) create mode 100644 llvm/test/Regression/ExecutionEngine/parallel.ll diff --git a/llvm/test/Makefile b/llvm/test/Makefile index e7a2f6324bd5..e2306dad5d02 100644 --- a/llvm/test/Makefile +++ b/llvm/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:: diff --git a/llvm/test/Regression/ExecutionEngine/parallel.ll b/llvm/test/Regression/ExecutionEngine/parallel.ll new file mode 100644 index 000000000000..6dc3f760d993 --- /dev/null +++ b/llvm/test/Regression/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"