[llvm] r354474 - [obj2yaml][yaml2obj]Locate all .yaml and .test tests

James Henderson via llvm-commits llvm-commits at lists.llvm.org
Wed Feb 20 07:13:44 PST 2019


Author: jhenderson
Date: Wed Feb 20 07:13:44 2019
New Revision: 354474

URL: http://llvm.org/viewvc/llvm-project?rev=354474&view=rev
Log:
[obj2yaml][yaml2obj]Locate all .yaml and .test tests

A number of the obj2yaml tests end in .yaml, but .yaml is not a default
file type picked up by lit, so these tests weren't being run when
running the testsuite as a whole (they could be run explicitly still).
This change adds a lit local config file to specify the known file types
for obj2yaml tests (.yaml and .test). Additionally, it fixes the
yaml2obj config file to allow both .test and .yaml suffixed tests
(previously, the two tests ending in '.test' were not being run).

Reviewed by: grimar

Differential Revision: https://reviews.llvm.org/D58439

Added:
    llvm/trunk/test/tools/obj2yaml/lit.local.cfg
Modified:
    llvm/trunk/test/tools/yaml2obj/lit.local.cfg

Added: llvm/trunk/test/tools/obj2yaml/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/obj2yaml/lit.local.cfg?rev=354474&view=auto
==============================================================================
--- llvm/trunk/test/tools/obj2yaml/lit.local.cfg (added)
+++ llvm/trunk/test/tools/obj2yaml/lit.local.cfg Wed Feb 20 07:13:44 2019
@@ -0,0 +1 @@
+config.suffixes = ['.test', '.yaml']

Modified: llvm/trunk/test/tools/yaml2obj/lit.local.cfg
URL: http://llvm.org/viewvc/llvm-project/llvm/trunk/test/tools/yaml2obj/lit.local.cfg?rev=354474&r1=354473&r2=354474&view=diff
==============================================================================
--- llvm/trunk/test/tools/yaml2obj/lit.local.cfg (original)
+++ llvm/trunk/test/tools/yaml2obj/lit.local.cfg Wed Feb 20 07:13:44 2019
@@ -1 +1 @@
-config.suffixes = ['.yaml']
+config.suffixes = ['.test', '.yaml']




More information about the llvm-commits mailing list