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. llvm-svn: 306303
This commit is contained in:
parent
f07663876a
commit
892d2a5767
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue