[test-suite] r254765 - [test-suite] Add the TEST_SUITE_EXE_WRAPPER option for cross-compiling.

Chad Rosier via llvm-commits llvm-commits at lists.llvm.org
Fri Dec 4 12:37:01 PST 2015


Author: mcrosier
Date: Fri Dec  4 14:37:01 2015
New Revision: 254765

URL: http://llvm.org/viewvc/llvm-project?rev=254765&view=rev
Log:
[test-suite] Add the TEST_SUITE_EXE_WRAPPER option for cross-compiling.

The value of variable TEST_SUITE_EXE_WRAPPER, if present, is passed to
RunSafely.sh 's -u parameter, to wrap the test execution within. This is mainly
intended to be used while cross-compiling to run under an emulator.

Modified:
    test-suite/trunk/CMakeLists.txt
    test-suite/trunk/lit.cfg
    test-suite/trunk/lit.site.cfg.in

Modified: test-suite/trunk/CMakeLists.txt
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/CMakeLists.txt?rev=254765&r1=254764&r2=254765&view=diff
==============================================================================
--- test-suite/trunk/CMakeLists.txt (original)
+++ test-suite/trunk/CMakeLists.txt Fri Dec  4 14:37:01 2015
@@ -39,6 +39,9 @@ set(TEST_SUITE_REMOTE_USER "" CACHE STRI
 set(TEST_SUITE_REMOTE_PORT "" CACHE STRING "Remote execution port")
 mark_as_advanced(TEST_SUITE_REMOTE_USER TEST_SUITE_REMOTE_PORT)
 
+# Run Under configuration for RunSafely.sh (will be set in lit.site.cfg)
+set(TEST_SUITE_RUN_UNDER "" CACHE STRING "RunSafely.sh run-under (-u) parameter")
+
 include(MakefileFunctions)
 include(SingleMultiSource)
 find_package(YACC)

Modified: test-suite/trunk/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.cfg?rev=254765&r1=254764&r2=254765&view=diff
==============================================================================
--- test-suite/trunk/lit.cfg (original)
+++ test-suite/trunk/lit.cfg Fri Dec  4 14:37:01 2015
@@ -118,6 +118,8 @@ def prepareRunSafely(config, commandline
             runsafely_prefix += [ "-rc", config.remote_client ]
         if config.remote_port:
             runsafely_prefix += [ "-rp", config.remote_port ]
+    if config.run_under:
+        runsafely_prefix += [ "-u", config.run_under ]
     timeit = "%s/tools/timeit-target" % config.test_source_root
     timeout = "7200"
     runsafely_prefix += [ "-t", timeit, timeout, stdin, outfile ]

Modified: test-suite/trunk/lit.site.cfg.in
URL: http://llvm.org/viewvc/llvm-project/test-suite/trunk/lit.site.cfg.in?rev=254765&r1=254764&r2=254765&view=diff
==============================================================================
--- test-suite/trunk/lit.site.cfg.in (original)
+++ test-suite/trunk/lit.site.cfg.in Fri Dec  4 14:37:01 2015
@@ -6,5 +6,6 @@ config.remote_client = "@TEST_SUITE_REMO
 config.remote_host = "@TEST_SUITE_REMOTE_HOST@"
 config.remote_user = "@TEST_SUITE_REMOTE_USER@"
 config.remote_port = "@TEST_SUITE_REMOTE_PORT@"
+config.run_under = "@TEST_SUITE_RUN_UNDER@"
 
 lit_config.load_config(config, "@CMAKE_SOURCE_DIR@/lit.cfg")




More information about the llvm-commits mailing list