[lld] r226951 - [lld] Added REQUIRES lines to tests

Rafael EspĂ­ndola rafael.espindola at gmail.com
Fri Jan 23 16:11:54 PST 2015


What about having directories like

test/pecoff/x86
test/elf/x86
test/elf/arm
...



On 23 January 2015 at 17:32, Filipe Cabecinhas <me at filcab.net> wrote:

> Author: filcab
> Date: Fri Jan 23 16:32:12 2015
> New Revision: 226951
>
> URL: http://llvm.org/viewvc/llvm-project?rev=226951&view=rev
> Log:
> [lld] Added REQUIRES lines to tests
>
> Modified:
>     lld/trunk/test/elf/ifunc.test
>     lld/trunk/test/elf/tls.test
>     lld/trunk/test/elf/x86_64-kinds.test
>     lld/trunk/test/mach-o/lazy-bind-x86_64.yaml
>     lld/trunk/test/pecoff/alternatename.test
>     lld/trunk/test/pecoff/armnt-blx23t.test
>     lld/trunk/test/pecoff/armnt-branch24t.test
>     lld/trunk/test/pecoff/armnt-mov32t-exec.test
>     lld/trunk/test/pecoff/armnt-movt32t.test
>     lld/trunk/test/pecoff/common-symbol.test
>     lld/trunk/test/pecoff/hello64.test
>     lld/trunk/test/pecoff/imagebase.test
>     lld/trunk/test/pecoff/importlib.test
>     lld/trunk/test/pecoff/lib.test
>     lld/trunk/test/pecoff/multi.test
>     lld/trunk/test/pecoff/reloc.test
>     lld/trunk/test/pecoff/reloc64.test
>
> Modified: lld/trunk/test/elf/ifunc.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/ifunc.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/elf/ifunc.test (original)
> +++ lld/trunk/test/elf/ifunc.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +
>  # This test checks that IRELATIVE relocations are created for symbols that
>  # need relocation even for static links.
>  RUN: lld -flavor gnu -target x86_64-linux --output-filetype=yaml -r \
>
> Modified: lld/trunk/test/elf/tls.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/tls.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/elf/tls.test (original)
> +++ lld/trunk/test/elf/tls.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # This tests verifies that TLS variables have correct offsets
>  RUN: lld -flavor gnu -target x86_64-linux %p/Inputs/tls.x86-64 -static  \
>  RUN: --output-filetype=yaml --noinhibit-exec | FileCheck %s
> -check-prefix=YAML
>
> Modified: lld/trunk/test/elf/x86_64-kinds.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/elf/x86_64-kinds.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/elf/x86_64-kinds.test (original)
> +++ lld/trunk/test/elf/x86_64-kinds.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +REQUIRES: X86
> +
>  RUN: lld -flavor gnu -target x86_64-linux -o %t1 %p/Inputs/relocs.x86-64 \
>  RUN:   -e _start -static
>  RUN: llvm-objdump -d %t1 | FileCheck %s -check-prefix=RELOCS
>
> Modified: lld/trunk/test/mach-o/lazy-bind-x86_64.yaml
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/mach-o/lazy-bind-x86_64.yaml?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/mach-o/lazy-bind-x86_64.yaml (original)
> +++ lld/trunk/test/mach-o/lazy-bind-x86_64.yaml Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: lld -flavor darwin -arch x86_64 -macosx_version_min 10.8 %s -o %t
> \
>  # RUN:   %p/Inputs/libSystem.yaml
>  # RUN: llvm-objdump -lazy-bind %t | FileCheck %s
>
> Modified: lld/trunk/test/pecoff/alternatename.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/alternatename.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/alternatename.test (original)
> +++ lld/trunk/test/pecoff/alternatename.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: yaml2obj %p/Inputs/alternatename1.obj.yaml > %t1.obj
>  # RUN: yaml2obj %p/Inputs/alternatename2.obj.yaml > %t2.obj
>  # RUN: yaml2obj %p/Inputs/alternatename3.obj.yaml > %t3.obj
>
> Modified: lld/trunk/test/pecoff/armnt-blx23t.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/armnt-blx23t.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/armnt-blx23t.test (original)
> +++ lld/trunk/test/pecoff/armnt-blx23t.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: ARM
> +#
>  # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-blx23t.obj.yaml
>  # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
>  # RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe
> %t.obj
>
> Modified: lld/trunk/test/pecoff/armnt-branch24t.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/armnt-branch24t.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/armnt-branch24t.test (original)
> +++ lld/trunk/test/pecoff/armnt-branch24t.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: ARM
> +#
>  # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-branch24t.obj.yaml
>  # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
>  # RUN: lld -flavor link /entry:function /subsystem:console /out:%t.exe
> %t.obj
>
> Modified: lld/trunk/test/pecoff/armnt-mov32t-exec.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/armnt-mov32t-exec.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/armnt-mov32t-exec.test (original)
> +++ lld/trunk/test/pecoff/armnt-mov32t-exec.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: ARM
> +#
>  # RUN: yaml2obj -format coff -o %t.obj
> %p/Inputs/armnt-mov32t-exec.obj.yaml
>  # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
>  # RUN: lld -flavor link /out:%t.exe /subsystem:console
> /entry:get_function %t.obj
>
> Modified: lld/trunk/test/pecoff/armnt-movt32t.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/armnt-movt32t.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/armnt-movt32t.test (original)
> +++ lld/trunk/test/pecoff/armnt-movt32t.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: ARM
> +#
>  # RUN: yaml2obj -format coff -o %t.obj %p/Inputs/armnt-mov32t.obj.yaml
>  # RUN: llvm-objdump -d %t.obj | FileCheck %s -check-prefix BEFORE
>  # RUN: lld -flavor link /entry:get_buffer /subsystem:console /out:%t.exe
> %t.obj
>
> Modified: lld/trunk/test/pecoff/common-symbol.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/common-symbol.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/common-symbol.test (original)
> +++ lld/trunk/test/pecoff/common-symbol.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: yaml2obj %p/Inputs/common-symbol.obj.yaml > %t.obj
>  #
>  # RUN: lld -flavor link /machine:x64 /out:%t.exe /subsystem:console
> /force \
>
> Modified: lld/trunk/test/pecoff/hello64.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/hello64.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/hello64.test (original)
> +++ lld/trunk/test/pecoff/hello64.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: yaml2obj %p/Inputs/hello64.obj.yaml > %t.obj
>
>  # RUN: lld -flavor link /out:%t.exe /subsystem:windows /machine:x64 \
>
> Modified: lld/trunk/test/pecoff/imagebase.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/imagebase.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/imagebase.test (original)
> +++ lld/trunk/test/pecoff/imagebase.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: yaml2obj %p/Inputs/imagebase.obj.yaml > %t.obj
>
>  # RUN: lld -flavor link /out:%t1.exe /subsystem:console /entry:_start \
>
> Modified: lld/trunk/test/pecoff/importlib.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/importlib.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/importlib.test (original)
> +++ lld/trunk/test/pecoff/importlib.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # Verify that lld can handle .lib files. "main.obj" refers "var" and
>  # "fn" defined in "vars.lib".
>  #
>
> Modified: lld/trunk/test/pecoff/lib.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/lib.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/lib.test (original)
> +++ lld/trunk/test/pecoff/lib.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # Verify that lld can handle a library file.
>  #
>  # RUN: yaml2obj %p/Inputs/main.obj.yaml > %t.obj
>
> Modified: lld/trunk/test/pecoff/multi.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/multi.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/multi.test (original)
> +++ lld/trunk/test/pecoff/multi.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # Verify that lld can handle multiple input files.
>  #
>  # RUN: yaml2obj %p/Inputs/main.obj.yaml > %t1.obj
>
> Modified: lld/trunk/test/pecoff/reloc.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/reloc.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/reloc.test (original)
> +++ lld/trunk/test/pecoff/reloc.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: yaml2obj %p/Inputs/reloc.obj.yaml > %t.obj
>  #
>  # RUN: lld -flavor link /out:%t.exe /subsystem:console /force /opt:noref \
>
> Modified: lld/trunk/test/pecoff/reloc64.test
> URL:
> http://llvm.org/viewvc/llvm-project/lld/trunk/test/pecoff/reloc64.test?rev=226951&r1=226950&r2=226951&view=diff
>
> ==============================================================================
> --- lld/trunk/test/pecoff/reloc64.test (original)
> +++ lld/trunk/test/pecoff/reloc64.test Fri Jan 23 16:32:12 2015
> @@ -1,3 +1,5 @@
> +# REQUIRES: X86
> +#
>  # RUN: yaml2obj %p/Inputs/reloc64.obj.yaml > %t.obj
>
>  # RUN: lld -flavor link /out:%t.exe /subsystem:console /machine:x64 \
>
>
> _______________________________________________
> llvm-commits mailing list
> llvm-commits at cs.uiuc.edu
> http://lists.cs.uiuc.edu/mailman/listinfo/llvm-commits
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/llvm-commits/attachments/20150123/0d13b6cc/attachment.html>


More information about the llvm-commits mailing list