forked from OSchip/llvm-project
[lit] Fix some issues with short paths in test discovery introduced in r312254
llvm-svn: 312288
This commit is contained in:
parent
0f3bc0f478
commit
9da05740d3
|
@ -59,7 +59,7 @@ def getTestSuite(item, litConfig, cache):
|
|||
return res
|
||||
|
||||
# Canonicalize the path.
|
||||
item = os.path.normpath(item)
|
||||
item = os.path.normpath(os.path.join(os.getcwd(), item))
|
||||
|
||||
# Skip files and virtual components.
|
||||
components = []
|
||||
|
|
|
@ -90,6 +90,13 @@
|
|||
# RUN: -j 1 --show-tests --show-suites -v > %t.out
|
||||
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s
|
||||
#
|
||||
# Try it again after cd'ing into the test suite using a short relative path.
|
||||
#
|
||||
# RUN: cd %{inputs}/exec-discovery-in-tree/obj/
|
||||
# RUN: %{lit} . \
|
||||
# RUN: -j 1 --show-tests --show-suites -v > %t.out
|
||||
# RUN: FileCheck --check-prefix=CHECK-ASEXEC-INTREE < %t.out %s
|
||||
#
|
||||
# CHECK-ASEXEC-INTREE: exec-discovery-in-tree-suite - 1 tests
|
||||
# CHECK-ASEXEC-INTREE-NEXT: Source Root: {{.*[/\\]exec-discovery-in-tree$}}
|
||||
# CHECK-ASEXEC-INTREE-NEXT: Exec Root : {{.*[/\\]exec-discovery-in-tree[/\\]obj$}}
|
||||
|
|
Loading…
Reference in New Issue