Taewook Oh via llvm-dev
2017-Mar-03 18:46 UTC
[llvm-dev] [llvm-lit] Is it possible to write a test for Linux only?
Hello, I wonder if I can write a test that runs only on Linux. I was thinking of adding “REQUIRES” to the test, but couldn’t find a feature name for Linux (if one exists). Thanks! Best, Taewook -------------- next part -------------- An HTML attachment was scrubbed... URL: <http://lists.llvm.org/pipermail/llvm-dev/attachments/20170303/807b40ac/attachment-0001.html>
Jonathan Roelofs via llvm-dev
2017-Mar-03 18:57 UTC
[llvm-dev] [llvm-lit] Is it possible to write a test for Linux only?
On 3/3/17 11:46 AM, Taewook Oh via llvm-dev wrote:> Hello, > > > > I wonder if I can write a test that runs only on Linux. I was thinking > of adding “REQUIRES” to the test, but couldn’t find a feature name for > Linux (if one exists). Thanks!$ grep -r REQUIRES ../llvm/test/ | grep linux The feature name you want is: "x86_64-linux" Jon> > > > Best, > > Taewook > > > > _______________________________________________ > LLVM Developers mailing list > llvm-dev at lists.llvm.org > http://lists.llvm.org/cgi-bin/mailman/listinfo/llvm-dev >-- Jon Roelofs jonathan at codesourcery.com CodeSourcery / Mentor Embedded
Taewook Oh via llvm-dev
2017-Mar-03 19:23 UTC
[llvm-dev] [llvm-lit] Is it possible to write a test for Linux only?
Thanks Jon. Actually I tried “x86_64-linux”, but it makes the test “Unsupported”
from my linux machine, and it was because my test is under clang, not llvm. It
seems that clang doesn’t support “x86_64-linux” yet. Thanks again!
Best,
Taewook
On 3/3/17, 10:57 AM, "Jonathan Roelofs" <jonathan at
codesourcery.com> wrote:
On 3/3/17 11:46 AM, Taewook Oh via llvm-dev wrote:
> Hello,
>
>
>
> I wonder if I can write a test that runs only on Linux. I was thinking
> of adding “REQUIRES” to the test, but couldn’t find a feature name for
> Linux (if one exists). Thanks!
$ grep -r REQUIRES ../llvm/test/ | grep linux
The feature name you want is: "x86_64-linux"
Jon
>
>
>
> Best,
>
> Taewook
>
>
>
> _______________________________________________
> LLVM Developers mailing list
> llvm-dev at lists.llvm.org
>
https://urldefense.proofpoint.com/v2/url?u=http-3A__lists.llvm.org_cgi-2Dbin_mailman_listinfo_llvm-2Ddev&d=DwIDaQ&c=5VD0RTtNlTh3ycd41b3MUw&r=kOsLCgQzH7N8ptZ7diJD9g&m=bzBdn7WCgwl6-0aL2ULfM0PsytR1IyK9EOCcVbUvlT4&s=Wtp9I5P84Z8qjfl3UMV9sOVOpNNik3wJH5knbhrN75s&e=
>
--
Jon Roelofs
jonathan at codesourcery.com
CodeSourcery / Mentor Embedded
Seemingly Similar Threads
- [llvm-lit] Is it possible to write a test for Linux only?
- [llvm-lit] Is it possible to write a test for Linux only?
- Redundant promotion of integer values in x86 target
- Redundant promotion of integer values in x86 target
- [GVN] same sequence of instructions in if and else branch