[llvm-dev] [llvm-lit] Is it possible to write a test for Linux only?

Jonathan Roelofs via llvm-dev llvm-dev at lists.llvm.org
Fri Mar 3 10:57:46 PST 2017



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


More information about the llvm-dev mailing list