diff options
Diffstat (limited to 'test/Bindings')
-rw-r--r-- | test/Bindings/Ocaml/dg.exp | 5 | ||||
-rw-r--r-- | test/Bindings/Ocaml/lit.local.cfg | 13 |
2 files changed, 13 insertions, 5 deletions
diff --git a/test/Bindings/Ocaml/dg.exp b/test/Bindings/Ocaml/dg.exp deleted file mode 100644 index fb4bd07..0000000 --- a/test/Bindings/Ocaml/dg.exp +++ /dev/null @@ -1,5 +0,0 @@ -load_lib llvm.exp - -if [ llvm_supports_binding ocaml ] then { - RunLLVMTests [lsort [glob -nocomplain $srcdir/$subdir/*.{ll,c,cpp,ml}]] -} diff --git a/test/Bindings/Ocaml/lit.local.cfg b/test/Bindings/Ocaml/lit.local.cfg new file mode 100644 index 0000000..127c3d5 --- /dev/null +++ b/test/Bindings/Ocaml/lit.local.cfg @@ -0,0 +1,13 @@ +config.suffixes = ['.ll', '.c', '.cpp', '.ml'] + +def getRoot(config): + if not config.parent: + return config + return getRoot(config.parent) + +root = getRoot(config) + +bindings = set([s.strip() for s in root.llvm_bindings.split(',')]) +if not 'ocaml' in bindings: + config.unsupported = True + |