[Lldb-commits] [lldb] r255741 - Add a symbolic link from the test directory to the actual - elsewhere located - path that contains the test cases - and teach the test suite driver to resolve paths that contain symbolic links to test cases

Enrico Granata via lldb-commits lldb-commits at lists.llvm.org
Tue Dec 15 17:15:50 PST 2015


Author: enrico
Date: Tue Dec 15 19:15:49 2015
New Revision: 255741

URL: http://llvm.org/viewvc/llvm-project?rev=255741&view=rev
Log:
Add a symbolic link from the test directory to the actual - elsewhere located - path that contains the test cases - and teach the test suite driver to resolve paths that contain symbolic links to test cases

This is meant to reduce the typing that one needs to do to get from the test subdirectory to actual test cases. Now one can just do

$ ./dotest.py ./testcases/<yaddayaddayadda>


Added:
    lldb/trunk/test/testcases   (with props)
Modified:
    lldb/trunk/packages/Python/lldbsuite/test/dotest.py

Modified: lldb/trunk/packages/Python/lldbsuite/test/dotest.py
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/packages/Python/lldbsuite/test/dotest.py?rev=255741&r1=255740&r2=255741&view=diff
==============================================================================
--- lldb/trunk/packages/Python/lldbsuite/test/dotest.py (original)
+++ lldb/trunk/packages/Python/lldbsuite/test/dotest.py Tue Dec 15 19:15:49 2015
@@ -416,7 +416,7 @@ def parseOptionsAndInitTestdirs():
 
     # Gather all the dirs passed on the command line.
     if len(args.args) > 0:
-        configuration.testdirs = list(map(os.path.abspath, args.args))
+        configuration.testdirs = list(map(lambda x: os.path.realpath(os.path.abspath(x)), args.args))
         # Shut off multiprocessing mode when test directories are specified.
         configuration.no_multiprocess_test_runner = True
 

Added: lldb/trunk/test/testcases
URL: http://llvm.org/viewvc/llvm-project/lldb/trunk/test/testcases?rev=255741&view=auto
==============================================================================
--- lldb/trunk/test/testcases (added)
+++ lldb/trunk/test/testcases Tue Dec 15 19:15:49 2015
@@ -0,0 +1 @@
+link ../packages/Python/lldbsuite/test
\ No newline at end of file

Propchange: lldb/trunk/test/testcases
------------------------------------------------------------------------------
    svn:special = *




More information about the lldb-commits mailing list