[llvm-commits] [llvm] r138640 - /llvm/trunk/utils/lit/lit/TestRunner.py

Douglas Gregor dgregor at apple.com
Fri Aug 26 13:22:54 PDT 2011


On Aug 26, 2011, at 1:19 PM, Andrew Trick wrote:

> Ignore me. Lit already substitutes %% (it just doesn't complain when people forget). Tests fixed.

Thanks!

	- Doug

> On Aug 26, 2011, at 1:01 PM, Andrew Trick wrote:
> 
>> I plan to improve this by allowing '%%' for literals so that tests like this still pass:
>> 
>> ; RUN: echo {%Ty = type opaque @GV = external global %Ty*} | llvm-as > %t.1.bc
>> 
>> If that's ok with everyone.
>> -Andy
>> 
>> On Aug 26, 2011, at 12:05 PM, Douglas Gregor wrote:
>> 
>>> Author: dgregor
>>> Date: Fri Aug 26 14:05:18 2011
>>> New Revision: 138640
>>> 
>>> URL: http://llvm.org/viewvc/llvm-project?rev=138640&view=rev
>>> Log:
>>> lit: Add %T as a replacement for the output directory
>>> 
>>> Modified:
>>>  llvm/trunk/utils/lit/lit/TestRunner.py
>>> 
>>> Modified: llvm/trunk/utils/lit/lit/TestRunner.py
>>> URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/utils/lit/lit/TestRunner.py?rev=138640&r1=138639&r2=138640&view=diff
>>> ==============================================================================
>>> --- llvm/trunk/utils/lit/lit/TestRunner.py (original)
>>> +++ llvm/trunk/utils/lit/lit/TestRunner.py Fri Aug 26 14:05:18 2011
>>> @@ -397,7 +397,8 @@
>>>   sourcedir = os.path.dirname(sourcepath)
>>>   execpath = test.getExecPath()
>>>   execdir,execbase = os.path.split(execpath)
>>> -    tmpBase = os.path.join(execdir, 'Output', execbase)
>>> +    tmpDir = os.path.join(execdir, 'Output')
>>> +    tmpBase = os.path.join(tmpDir, execbase)
>>>   if test.index is not None:
>>>       tmpBase += '_%d' % test.index
>>> 
>>> @@ -414,6 +415,7 @@
>>>                         ('%S', sourcedir),
>>>                         ('%p', sourcedir),
>>>                         ('%t', tmpBase + '.tmp'),
>>> +                          ('%T', tmpDir),
>>>                         # FIXME: Remove this once we kill DejaGNU.
>>>                         ('%abs_tmp', tmpBase + '.tmp'),
>>>                         ('#_MARKER_#', '%')])
>>> 
>>> 
>>> _______________________________________________
>>> llvm-commits mailing list
>>> llvm-commits at cs.uiuc.edu
>>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>> 
>> _______________________________________________
>> llvm-commits mailing list
>> llvm-commits at cs.uiuc.edu
>> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
> 




More information about the llvm-commits mailing list