Mark some LLVM tests which require a default_triple (NFC)
authorMehdi Amini <joker.eph@gmail.com>
Fri, 19 Jun 2020 04:41:24 +0000 (04:41 +0000)
committerMehdi Amini <joker.eph@gmail.com>
Fri, 19 Jun 2020 06:36:20 +0000 (06:36 +0000)
These tests involve a JIT, and like other tests should have the
REQUIRE: default_triple present.
This allow to run `ninja check` without the host target configured
in.

llvm/test/Bindings/Go/go.test
llvm/test/Examples/Kaleidoscope/Chapter4.test
llvm/test/Examples/Kaleidoscope/Chapter5.test
llvm/test/Examples/Kaleidoscope/Chapter6.test
llvm/test/Examples/Kaleidoscope/Chapter7.test

index bb39e6c..2d31c27 100644 (file)
@@ -1,4 +1,4 @@
 ; RUN: llvm-go test llvm.org/llvm/bindings/go/llvm
 
-; REQUIRES: shell
+; REQUIRES: shell, default_triple
 ; UNSUPPORTED: asan, ubsan, msan
index 5fd0e42..7cc6521 100644 (file)
@@ -1,4 +1,5 @@
 # RUN: Kaleidoscope-Ch4 < %s 2>&1 | FileCheck %s
+# REQUIRES: default_target
 
 # Test basic definition, binding, and execution.
 def foo(x) x + 1;
index 1ad9023..b226338 100644 (file)
@@ -1,4 +1,5 @@
 # RUN: Kaleidoscope-Ch5 < %s 2>&1 | FileCheck %s
+# REQUIRES: default_target
 
 # Test 'if' expression.
 def foo(x) if x < 10 then 0 else 1;
@@ -16,4 +17,4 @@ for i = 1, i < 5, 1.0 in
 # CHECK: 3.0
 # CHECK: 4.0
 # CHECK: 5.0
-# CHECK: Evaluated to 0.000000
\ No newline at end of file
+# CHECK: Evaluated to 0.000000
index cbdd01f..57d8eae 100644 (file)
@@ -1,4 +1,5 @@
 # RUN: Kaleidoscope-Ch6 < %s 2>&1 | FileCheck %s
+# REQUIRES: default_target
 
 # Test unary operator definition.
 def unary-(x) 0 - x;
index 4843ca7..75d20ae 100644 (file)
@@ -1,4 +1,5 @@
 # RUN: Kaleidoscope-Ch7 < %s 2>&1 | FileCheck %s
+# REQUIRES: default_target
 
 # Sequence operator and iterative fibonacci function to test user defined vars.
 def binary : 1 (x y) y;