Allow 'make TESTDIRS=Sema' in test/ directory for only running a
subset of tests.
git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@55513 91177308-0d34-0410-b5e6-96231b3b80d8
diff --git a/test/Makefile b/test/Makefile
index d0532e3..5d0825b 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -1,8 +1,8 @@
LEVEL = ../../..
include $(LEVEL)/Makefile.common
-# Test in all immediate subdirectories.
-TESTDIRS = $(shell echo $(PROJ_SRC_DIR)/*/)
+# Test in all immediate subdirectories if unset.
+TESTDIRS ?= $(shell echo $(PROJ_SRC_DIR)/*/)
# Only run rewriter tests on darwin.
ifeq ($(OS),Darwin)