Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Teach lit to expand glob expressions.
This will enable removing hacks throughout the codebase in clang and compiler-rt that feed multiple inputs to a testing utility by globbing, all of which are either disabled on Windows currently or using xargs / find hacks. Differential Revision: https://reviews.llvm.org/D30380 llvm-svn: 296904
- Loading branch information
Zachary Turner
committed
Mar 3, 2017
1 parent
0a4ec55
commit b471d4f
Showing
5 changed files
with
86 additions
and
9 deletions.
There are no files selected for viewing
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,28 @@ | ||
RUN: echo TA > %T/TA.txt | ||
RUN: echo TB > %T/TB.txt | ||
RUN: echo TAB > %T/TAB.txt | ||
|
||
RUN: echo %T/TA* | FileCheck -check-prefix=STAR %s | ||
RUN: echo %T/'TA'* | FileCheck -check-prefix=STAR %s | ||
RUN: echo %T/T'A'* | FileCheck -check-prefix=STAR %s | ||
|
||
RUN: echo %T/T?.txt | FileCheck -check-prefix=QUESTION %s | ||
RUN: echo %T/'T'?.txt | FileCheck -check-prefix=QUESTION %s | ||
|
||
RUN: echo %T/T??.txt | FileCheck -check-prefix=QUESTION2 %s | ||
RUN: echo %T/'T'??.txt | FileCheck -check-prefix=QUESTION2 %s | ||
|
||
RUN: echo 'T*' 'T?.txt' 'T??.txt' | FileCheck -check-prefix=QUOTEDARGS %s | ||
|
||
STAR-NOT: TB.txt | ||
STAR: {{(TA.txt.*TAB.txt|TAB.txt.*TA.txt)}} | ||
|
||
QUESTION-NOT: TAB.txt | ||
QUESTION: {{(TA.txt.*TB.txt|TB.txt.*TA.txt)}} | ||
|
||
QUESTION2-NOT: TA.txt | ||
QUESTION2-NOT: TB.txt | ||
QUESTION2: TAB.txt | ||
|
||
QUOTEDARGS-NOT: .txt | ||
QUOTEDARGS: T* T?.txt T??.txt |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters