[lld] r306303 - Add .yaml as an lld test suffix
    Reid Kleckner via llvm-commits 
    llvm-commits at lists.llvm.org
       
    Mon Jun 26 09:42:44 PDT 2017
    
    
  
Author: rnk
Date: Mon Jun 26 09:42:44 2017
New Revision: 306303
URL: http://llvm.org/viewvc/llvm-project?rev=306303&view=rev
Log:
Add .yaml as an lld test suffix
Over time we've started to add inputs and test cases using the .yaml
extension, which seems to be preferred over the .objtxt extension that
we were using initially. One nice thing about using .yaml is that it
triggers existing editor highlighting and formatting support.
Fix two pdb*.yaml test cases that I added that weren't being run as part
of check-lld.
Modified:
    lld/trunk/test/COFF/pdb-secrel-absolute.yaml
    lld/trunk/test/COFF/pdb-symbol-types.yaml
    lld/trunk/test/lit.cfg
Modified: lld/trunk/test/COFF/pdb-secrel-absolute.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/pdb-secrel-absolute.yaml?rev=306303&r1=306302&r2=306303&view=diff
==============================================================================
--- lld/trunk/test/COFF/pdb-secrel-absolute.yaml (original)
+++ lld/trunk/test/COFF/pdb-secrel-absolute.yaml Mon Jun 26 09:42:44 2017
@@ -1,6 +1,6 @@
 # RUN: yaml2obj %s -o %t.obj
 # RUN: lld-link -debug -entry:main -out:%t.exe -pdb:%t.pdb %t.obj
-# RUN: llvm-pdbutil raw -symbols %t.pdb | FileCheck %s
+# RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
 
 # There is an S_GDATA32 symbol record with .secrel32 and .secidx relocations in
 # it in this debug info. This is similar to the relocations in the loadcfg.obj
Modified: lld/trunk/test/COFF/pdb-symbol-types.yaml
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/COFF/pdb-symbol-types.yaml?rev=306303&r1=306302&r2=306303&view=diff
==============================================================================
--- lld/trunk/test/COFF/pdb-symbol-types.yaml (original)
+++ lld/trunk/test/COFF/pdb-symbol-types.yaml Mon Jun 26 09:42:44 2017
@@ -1,6 +1,6 @@
 # RUN: yaml2obj %s -o %t.obj
 # RUN: lld-link %t.obj -nodefaultlib -entry:main -debug -out:%t.exe -pdb:%t.pdb
-# RUN: llvm-pdbutil raw -symbols %t.pdb | FileCheck %s
+# RUN: llvm-pdbutil dump -symbols %t.pdb | FileCheck %s
 
 # To regenerate the object file:
 # $ cat symbol-types.c
@@ -15,7 +15,7 @@
 
 # CHECK:                           Symbols
 # CHECK: ============================================================
-# CHECK-LABEL:   Mod 0000 | `C:\src\llvm-project\build\tools\lld\test\COFF\Output\pdb-symbol-types.yaml.tmp.obj`:
+# CHECK-LABEL:   Mod 0000 | `{{.*}}pdb-symbol-types.yaml.tmp.obj`:
 # CHECK:   - S_OBJNAME [size = 52] sig=0, `C:\src\llvm-project\build\symbol-types.obj`
 # CHECK:   - S_COMPILE3 [size = 60]
 # CHECK:       machine = intel x86-x64, Ver = Microsoft (R) Optimizing Compiler, language = c
Modified: lld/trunk/test/lit.cfg
URL: http://llvm.org/viewvc/llvm-project/lld/trunk/test/lit.cfg?rev=306303&r1=306302&r2=306303&view=diff
==============================================================================
--- lld/trunk/test/lit.cfg (original)
+++ lld/trunk/test/lit.cfg Mon Jun 26 09:42:44 2017
@@ -45,7 +45,7 @@ else:
 config.test_format = lit.formats.ShTest(execute_external)
 
 # suffixes: A list of file extensions to treat as test files.
-config.suffixes = ['.ll', '.s', '.objtxt', '.test']
+config.suffixes = ['.ll', '.s', '.test', '.yaml', '.objtxt']
 
 # excludes: A list of directories to exclude from the testsuite. The 'Inputs'
 # subdirectories contain auxiliary inputs for various tests in their parent
    
    
More information about the llvm-commits
mailing list