[llvm] r247243 - Add a way to skip the Go bindings tests even when Go is configured in
Chandler Carruth via llvm-commits
llvm-commits at lists.llvm.org
Wed Sep 9 22:47:43 PDT 2015
Author: chandlerc
Date: Thu Sep 10 00:47:43 2015
New Revision: 247243
URL: http://llvm.org/viewvc/llvm-project?rev=247243&view=rev
Log:
Add a way to skip the Go bindings tests even when Go is configured in
CMake.
The Go bindings tests in an unoptimized build take over 30 seconds for
me, making it the slowest test in 'check-llvm' by a factor of two.
I've only rigged this up fully to the CMake build. If someone is
interested in rigging it up to the autoconf build, they're welcome to do
so.
Modified:
llvm/trunk/CMakeLists.txt
llvm/trunk/test/Bindings/Go/lit.local.cfg
llvm/trunk/test/Makefile
llvm/trunk/test/lit.site.cfg.in
Modified: llvm/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/CMakeLists.txt?rev=247243&r1=247242&r2=247243&view=diff
==============================================================================
--- llvm/trunk/CMakeLists.txt (original)
+++ llvm/trunk/CMakeLists.txt Thu Sep 10 00:47:43 2015
@@ -338,6 +338,7 @@ option(LLVM_INCLUDE_EXAMPLES "Generate b
option(LLVM_BUILD_TESTS
"Build LLVM unit tests. If OFF, just generate build targets." OFF)
option(LLVM_INCLUDE_TESTS "Generate build targets for the LLVM unit tests." ON)
+option(LLVM_INCLUDE_GO_TESTS "Include the Go bindings tests in test build targets." ON)
option (LLVM_BUILD_DOCS "Build the llvm documentation." OFF)
option (LLVM_INCLUDE_DOCS "Generate build targets for llvm documentation." ON)
Modified: llvm/trunk/test/Bindings/Go/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Bindings/Go/lit.local.cfg?rev=247243&r1=247242&r2=247243&view=diff
==============================================================================
--- llvm/trunk/test/Bindings/Go/lit.local.cfg (original)
+++ llvm/trunk/test/Bindings/Go/lit.local.cfg Thu Sep 10 00:47:43 2015
@@ -6,6 +6,9 @@ import sys
if not 'go' in config.root.llvm_bindings:
config.unsupported = True
+if config.root.include_go_tests != 'ON':
+ config.unsupported = True
+
def find_executable(executable, path=None):
if path is None:
path = os.environ['PATH']
Modified: llvm/trunk/test/Makefile
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/Makefile?rev=247243&r1=247242&r2=247243&view=diff
==============================================================================
--- llvm/trunk/test/Makefile (original)
+++ llvm/trunk/test/Makefile Thu Sep 10 00:47:43 2015
@@ -134,6 +134,7 @@ lit.site.cfg: FORCE
@$(ECHOPATH) s!@OCAMLFLAGS@!$(addprefix -cclib ,$(LDFLAGS))!g >> lit.tmp
@$(ECHOPATH) s=@HAVE_OCAMLOPT@=$(HAVE_OCAMLOPT)=g >> lit.tmp
@$(ECHOPATH) s=@HAVE_OCAML_OUNIT@=$(HAVE_OCAML_OUNIT)=g >> lit.tmp
+ @$(ECHOPATH) s=@LLVM_INCLUDE_GO_TESTS@=ON=g >> lit.tmp
@$(ECHOPATH) s=@GO_EXECUTABLE@=$(GO)=g >> lit.tmp
@$(ECHOPATH) s!@HOST_CC@!$(CC)!g >> lit.tmp
@$(ECHOPATH) s!@HOST_CXX@!$(CXX)!g >> lit.tmp
Modified: llvm/trunk/test/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/lit.site.cfg.in?rev=247243&r1=247242&r2=247243&view=diff
==============================================================================
--- llvm/trunk/test/lit.site.cfg.in (original)
+++ llvm/trunk/test/lit.site.cfg.in Thu Sep 10 00:47:43 2015
@@ -19,6 +19,7 @@ config.ocamlfind_executable = "@OCAMLFIN
config.have_ocamlopt = "@HAVE_OCAMLOPT@"
config.have_ocaml_ounit = "@HAVE_OCAML_OUNIT@"
config.ocaml_flags = "@OCAMLFLAGS@"
+config.include_go_tests = "@LLVM_INCLUDE_GO_TESTS@"
config.go_executable = "@GO_EXECUTABLE@"
config.enable_shared = @ENABLE_SHARED@
config.enable_assertions = @ENABLE_ASSERTIONS@
More information about the llvm-commits
mailing list