From: Galina Kistanova Date: Tue, 31 May 2011 00:29:49 +0000 (+0000) Subject: Preparations for separating target-specific clang tests. X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=065063bdf42fac9732dcb0a7bac31e404249498b;p=clang Preparations for separating target-specific clang tests. git-svn-id: https://llvm.org/svn/llvm-project/cfe/trunk@132319 91177308-0d34-0410-b5e6-96231b3b80d8 --- diff --git a/test/Makefile b/test/Makefile index 050c3a51dd..157e83f191 100644 --- a/test/Makefile +++ b/test/Makefile @@ -45,6 +45,7 @@ lit.site.cfg: FORCE @$(ECHOPATH) s=@CLANG_SOURCE_DIR@=$(PROJ_SRC_DIR)/..=g >> lit.tmp @$(ECHOPATH) s=@CLANG_BINARY_DIR@=$(PROJ_OBJ_DIR)/..=g >> lit.tmp @$(ECHOPATH) s=@TARGET_TRIPLE@=$(TARGET_TRIPLE)=g >> lit.tmp + @$(ECHOPATH) s=@TARGETS_TO_BUILD@=$(TARGETS_TO_BUILD)=g >> lit.tmp @sed -f lit.tmp $(PROJ_SRC_DIR)/lit.site.cfg.in > $@ @-rm -f lit.tmp @@ -58,6 +59,7 @@ Unit/lit.site.cfg: FORCE @$(ECHOPATH) s=@CLANG_SOURCE_DIR@=$(PROJ_SRC_DIR)/..=g >> unit.tmp @$(ECHOPATH) s=@CLANG_BINARY_DIR@=$(PROJ_OBJ_DIR)/..=g >> unit.tmp @$(ECHOPATH) s=@TARGET_TRIPLE@=$(TARGET_TRIPLE)=g >> unit.tmp + @$(ECHOPATH) s=@TARGETS_TO_BUILD@=$(TARGETS_TO_BUILD)=g >> unit.tmp @$(ECHOPATH) s=@LLVM_BUILD_MODE@=$(BuildMode)=g >> unit.tmp @$(ECHOPATH) s=@ENABLE_SHARED@=$(ENABLE_SHARED)=g >> unit.tmp @$(ECHOPATH) s=@SHLIBDIR@=$(SharedLibDir)=g >> unit.tmp diff --git a/test/Unit/lit.site.cfg.in b/test/Unit/lit.site.cfg.in index 9f4d224eb6..1803294dc6 100644 --- a/test/Unit/lit.site.cfg.in +++ b/test/Unit/lit.site.cfg.in @@ -10,6 +10,12 @@ config.enable_shared = @ENABLE_SHARED@ config.shlibdir = "@SHLIBDIR@" config.shlibpath_var = "@SHLIBPATH_VAR@" config.target_triple = "@TARGET_TRIPLE@" +config.targets_to_build = "@TARGETS_TO_BUILD@" + +# Exclude not supported target-specific tests. +config.excludes = [] +if not 'X86' in config.targets_to_build: + config.excludes.append('X86') # Support substitution of the tools_dir, libs_dirs, and build_mode with user # parameters. This is used when we can't determine the tool dir at diff --git a/test/lit.site.cfg.in b/test/lit.site.cfg.in index df90b81055..c80e663ed0 100644 --- a/test/lit.site.cfg.in +++ b/test/lit.site.cfg.in @@ -7,6 +7,12 @@ config.llvm_libs_dir = "@LLVM_LIBS_DIR@" config.lit_tools_dir = "@LLVM_LIT_TOOLS_DIR@" config.clang_obj_root = "@CLANG_BINARY_DIR@" config.target_triple = "@TARGET_TRIPLE@" +config.targets_to_build = "@TARGETS_TO_BUILD@" + +# Exclude not supported target-specific tests. +config.excludes = [] +if not 'X86' in config.targets_to_build: + config.excludes.append('X86') # Support substitution of the tools and libs dirs with user parameters. This is # used when we can't determine the tool dir at configuration time.