From 7eed31b91fd7f41f269c15740d5cc32b1dff2367 Mon Sep 17 00:00:00 2001
From: Lukas Stadler <lukas.stadler@oracle.com>
Date: Fri, 13 May 2016 15:29:04 +0200
Subject: [PATCH] make sure all node test classes are recognized as test files

---
 .../truffle/r/nodes/access/vector/ExtractVectorNodeTest.java | 4 ++++
 .../truffle/r/nodes/access/vector/ReplaceVectorNodeTest.java | 4 ++++
 .../truffle/r/nodes/access/vector/StringCompareNodeTest.java | 4 ++++
 .../truffle/r/nodes/access/vector/StringSearchNodeTest.java  | 5 +++++
 .../truffle/r/nodes/test/BinaryArithmeticNodeTest.java       | 4 ++++
 .../oracle/truffle/r/nodes/test/BinaryBooleanNodeTest.java   | 5 +++++
 .../oracle/truffle/r/nodes/test/UnaryArithmeticNodeTest.java | 4 ++++
 7 files changed, 30 insertions(+)

diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ExtractVectorNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ExtractVectorNodeTest.java
index 93fba81369..3d8898ebd7 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ExtractVectorNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ExtractVectorNodeTest.java
@@ -40,6 +40,10 @@ import com.oracle.truffle.r.runtime.data.model.*;
 
 @RunWith(Theories.class)
 public class ExtractVectorNodeTest extends TestBase {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     @DataPoints public static RType[] vectorTypes = RType.getVectorTypes();
 
diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ReplaceVectorNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ReplaceVectorNodeTest.java
index 411b401346..d7245041c0 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ReplaceVectorNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/ReplaceVectorNodeTest.java
@@ -40,6 +40,10 @@ import com.oracle.truffle.r.runtime.data.model.*;
 
 @RunWith(Theories.class)
 public class ReplaceVectorNodeTest extends TestBase {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     @DataPoints public static RType[] vectorTypes = RType.getVectorTypes();
 
diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringCompareNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringCompareNodeTest.java
index da49faeff0..737a99bf9d 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringCompareNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringCompareNodeTest.java
@@ -39,6 +39,10 @@ import com.oracle.truffle.r.runtime.*;
 
 @RunWith(Theories.class)
 public class StringCompareNodeTest extends TestBase {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     // Please note that "FB" and "Ea" produce a hash collision. Thats why its tested here.
     @DataPoints public static String[] TEST = {RRuntime.STRING_NA, "a", "abc", "bc".intern(), "bc".intern(), "FB", "Ea"};
diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringSearchNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringSearchNodeTest.java
index a3d95895c7..b7fb90d88d 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringSearchNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/access/vector/StringSearchNodeTest.java
@@ -26,6 +26,7 @@ import static com.oracle.truffle.r.nodes.test.TestUtilities.*;
 import static org.hamcrest.CoreMatchers.*;
 import static org.hamcrest.MatcherAssert.*;
 
+import org.junit.Test;
 import org.junit.experimental.theories.*;
 import org.junit.runner.*;
 
@@ -37,6 +38,10 @@ import com.oracle.truffle.r.runtime.data.model.*;
 
 @RunWith(Theories.class)
 public class StringSearchNodeTest extends TestBase {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     // Please note that "FB" and "Ea" produce a hash collision. Thats why its tested here.
     @DataPoints public static String[] TEST = {RRuntime.STRING_NA, "a", "abc", "bc".intern(), "bc".intern(), "FB", "Ea"};
diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryArithmeticNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryArithmeticNodeTest.java
index 22b255d67d..bb690557e1 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryArithmeticNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryArithmeticNodeTest.java
@@ -83,6 +83,10 @@ import com.oracle.truffle.r.runtime.ops.BinaryArithmeticFactory;
  */
 @RunWith(Theories.class)
 public class BinaryArithmeticNodeTest extends BinaryVectorTest {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     @DataPoints public static final BinaryArithmeticFactory[] BINARY = BinaryArithmetic.ALL;
 
diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryBooleanNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryBooleanNodeTest.java
index 1695b43334..c706cf0580 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryBooleanNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/BinaryBooleanNodeTest.java
@@ -43,6 +43,7 @@ import static org.junit.Assume.assumeThat;
 import org.junit.After;
 import org.junit.Assert;
 import org.junit.Before;
+import org.junit.Test;
 import org.junit.experimental.theories.DataPoint;
 import org.junit.experimental.theories.DataPoints;
 import org.junit.experimental.theories.Theories;
@@ -69,6 +70,10 @@ import com.oracle.truffle.r.runtime.ops.BooleanOperationFactory;
  */
 @RunWith(Theories.class)
 public class BinaryBooleanNodeTest extends BinaryVectorTest {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     @DataPoint public static final RAbstractVector EMPTY_STRING = createEmptyStringVector();
     @DataPoint public static final RAbstractVector EMPTY_RAW = createEmptyRawVector();
diff --git a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/UnaryArithmeticNodeTest.java b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/UnaryArithmeticNodeTest.java
index f79b00999d..caf3f27d52 100644
--- a/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/UnaryArithmeticNodeTest.java
+++ b/com.oracle.truffle.r.nodes.test/src/com/oracle/truffle/r/nodes/test/UnaryArithmeticNodeTest.java
@@ -70,6 +70,10 @@ import com.oracle.truffle.r.runtime.ops.UnaryArithmeticFactory;
  */
 @RunWith(Theories.class)
 public class UnaryArithmeticNodeTest extends BinaryVectorTest {
+    @Test
+    public void dummy() {
+        // to make sure this file is recognized as a test
+    }
 
     public static final UnaryArithmeticFactory[] ALL = new UnaryArithmeticFactory[]{NEGATE, Round.ROUND, Floor.FLOOR, Ceiling.CEILING, PLUS};
 
-- 
GitLab