diff options
-rw-r--r-- | test/Makefile | 12 |
1 files changed, 9 insertions, 3 deletions
diff --git a/test/Makefile b/test/Makefile index 175c477aaa..85267558b7 100644 --- a/test/Makefile +++ b/test/Makefile @@ -1,8 +1,14 @@ LEVEL = ../../.. include $(LEVEL)/Makefile.common +TESTDIRS := CodeGen Lexer Preprocessor Parser Sema Analysis Serialization + +# Only run rewriter tests on darwin. +ifeq ($(OS),Darwin) +TESTDIRS += Rewriter +endif + all:: - PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts find\ - Rewriter CodeGen Lexer Preprocessor Parser Sema Analysis Serialization\ - \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \)\ + PATH=$$PATH:$(ToolDir):$(LLVM_SRC_ROOT)/test/Scripts \ + find $(TESTDIRS) \( -name '*.c' -or -name '*.cpp' -or -name '*.m' \) \ -print -exec ./TestRunner.sh {} \; |