zstan commented on code in PR #13602:
URL: https://github.com/apache/ignite/pull/13602#discussion_r4104005305


##########
modules/calcite/src/test/java/org/apache/ignite/testsuites/ScriptTestSuite.java:
##########
@@ -71,7 +97,253 @@
  * @see <a 
href="https://www.sqlite.org/sqllogictest/doc/trunk/about.wiki";>Extended format 
documentation.</a></a>
  *
  */
-@RunWith(ScriptTestRunner.class)
 @ScriptRunnerTestsEnvironment(scriptsRoot = "modules/calcite/src/test/sql", 
timeout = 180000)
 public class ScriptTestSuite {
+    /** Filesystem. */
+    private static final FileSystem FS = FileSystems.getDefault();
+
+    /** Suffix of the scripts that are reported as ignored. */
+    private static final String IGNORED_SUFFIX = ".test_ignore";
+
+    /** Shared finder. */
+    private static final TcpDiscoveryVmIpFinder sharedFinder = new 
TcpDiscoveryVmIpFinder().setShared(true);
+
+    /** */
+    private static IgniteLogger log;
+
+    static {
+        try {
+            log = new 
GridTestLog4jLogger(U.resolveIgnitePath("modules/core/src/test/config/log4j2-test.xml"));
+        }
+        catch (Exception e) {
+            e.printStackTrace(System.err);
+
+            log = null;
+
+            assert false : "Cannot init logger";
+        }
+    }
+
+    /** Scripts root directory. */
+    private final Path scriptsRoot;
+
+    /** Regex to filter test path to run only specified tests. */
+    private final Pattern testRegex;
+
+    /** Nodes count. */
+    private final int nodes;
+
+    /** Restart cluster for each test group. */
+    private final boolean restartCluster;
+
+    /** Test script timeout. */
+    private final long timeout;
+
+    /** Directory (test group) of the last executed script. */
+    private Path lastTestDir;
+
+    /** */
+    public ScriptTestSuite() {
+        ScriptRunnerTestsEnvironment env = 
ScriptTestSuite.class.getAnnotation(ScriptRunnerTestsEnvironment.class);
+
+        assert !F.isEmpty(env.scriptsRoot());

Review Comment:
   done



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]

Reply via email to