IGNITE-7690 Move shared memory suite (IpcSharedMemoryCrashDetectionSelfTest) to Ignit...
authorIvan Rakov <ivan.glukos@gmail.com>
Wed, 14 Feb 2018 07:52:05 +0000 (10:52 +0300)
committerAlexey Goncharuk <alexey.goncharuk@gmail.com>
Wed, 14 Feb 2018 07:52:05 +0000 (10:52 +0300)
Signed-off-by: Alexey Goncharuk <alexey.goncharuk@gmail.com>
modules/core/src/test/java/org/apache/ignite/testsuites/IgniteBasicTestSuite.java
modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIpcTestSuite.java [new file with mode: 0644]

index 9fee224..4472b68 100644 (file)
@@ -124,9 +124,6 @@ public class IgniteBasicTestSuite extends TestSuite {
         GridTestUtils.addTestIfNeeded(suite, GridMessagingSelfTest.class, ignoredTests);
         GridTestUtils.addTestIfNeeded(suite, GridMessagingNoPeerClassLoadingSelfTest.class, ignoredTests);
 
-        if (U.isLinux() || U.isMacOs())
-            suite.addTest(IgniteIpcSharedMemorySelfTestSuite.suite());
-
         GridTestUtils.addTestIfNeeded(suite, GridReleaseTypeSelfTest.class, ignoredTests);
         suite.addTestSuite(GridProductVersionSelfTest.class);
         suite.addTestSuite(GridAffinityProcessorRendezvousSelfTest.class);
diff --git a/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIpcTestSuite.java b/modules/core/src/test/java/org/apache/ignite/testsuites/IgniteIpcTestSuite.java
new file mode 100644 (file)
index 0000000..b2f2b8d
--- /dev/null
@@ -0,0 +1,38 @@
+/*
+* Licensed to the Apache Software Foundation (ASF) under one or more
+* contributor license agreements.  See the NOTICE file distributed with
+* this work for additional information regarding copyright ownership.
+* The ASF licenses this file to You under the Apache License, Version 2.0
+* (the "License"); you may not use this file except in compliance with
+* the License.  You may obtain a copy of the License at
+*
+*      http://www.apache.org/licenses/LICENSE-2.0
+*
+* Unless required by applicable law or agreed to in writing, software
+* distributed under the License is distributed on an "AS IS" BASIS,
+* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+* See the License for the specific language governing permissions and
+* limitations under the License.
+*/
+package org.apache.ignite.testsuites;
+
+import junit.framework.TestSuite;
+import org.apache.ignite.internal.util.typedef.internal.U;
+
+/**
+ * Suite for shared memory mode.
+ */
+public class IgniteIpcTestSuite extends TestSuite {
+    /**
+     * @return IgniteCache test suite.
+     * @throws Exception Thrown in case of the failure.
+     */
+    public static TestSuite suite() throws Exception {
+        TestSuite suite = new TestSuite("Ignite IPC Shared Memory Suite");
+
+        if (U.isLinux() || U.isMacOs())
+            suite.addTest(IgniteIpcSharedMemorySelfTestSuite.suite());
+
+        return suite;
+    }
+}