[llvm] r220294 - Add support for addmod to mri scripts.

Rafael EspĂ­ndola rafael.espindola at gmail.com
Tue Oct 21 19:18:19 PDT 2014


>> --- llvm/trunk/test/Object/mri-addmod.test (added)
>> +++ llvm/trunk/test/Object/mri-addmod.test Tue Oct 21 09:46:17 2014
>> @@ -0,0 +1,18 @@
>> +; RUN: echo create %t.a > %t.mri
>> +; RUN: echo addmod %p/Inputs/trivial-object-test.elf-x86-64 >> %t.mri
>> +; RUN: echo save >> %t.mri
>> +; RUN: echo end >> %t.mri
>
>
> Would it be possible to use relative paths here and have the MRI script be
> the one with the RUN lines? That would be a lot cleaner and avoid the
> `REQUIRES: shell`.

Good question. Running the test I see that the current work directory
is /home/espindola/llvm/build/test/Object and that the temporary
outputs are in  /home/espindola/llvm/build/test/Object/Output.

With that in mind, the attached test works in my machine, but I am not
sure whether it is expected to work everywhere.

Note that my patch adding crlf support to line_iterator will also let
us drop the `REQUIRES: shell`.

Cheers,
Rafael
-------------- next part --------------
A non-text attachment was scrubbed...
Name: t.patch
Type: text/x-patch
Size: 652 bytes
Desc: not available
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20141021/53dbe868/attachment.bin>


More information about the llvm-commits mailing list