package sqlancer;

import static org.junit.jupiter.api.Assertions.assertEquals;

import org.junit.jupiter.api.Test;

public class TestMain {

    private static final String NUM_QUERIES = "1000";
    private static final String SECONDS = "300";

    @Test
    public void testDuckDB() {
        assertEquals(0, Main.executeMain(new String[] { "--timeout-seconds", SECONDS, "--num-queries", NUM_QUERIES,
                "duckdb", "--oracle", "NoREC" }));
        assertEquals(0, Main.executeMain(new String[] { "--timeout-seconds", SECONDS, "--num-queries", NUM_QUERIES,
                "duckdb", "--oracle", "QUERY_PARTITIONING" }));
    }

}
@@ -280,16 +280,126 @@
 kDB() %7B%0A
+        // run with one thread due to multithreading issues, see https://github.com/sqlancer/sqlancer/pull/45%0A
         
@@ -475,32 +475,70 @@
 SECONDS, %22--num-
+threads%22, %221%22,%0A                %22--num-
 queries%22, NUM_QU
@@ -543,32 +543,16 @@
 QUERIES,
-%0A               
  %22duckdb
@@ -664,32 +664,70 @@
 SECONDS, %22--num-
+threads%22, %221%22,%0A                %22--num-
 queries%22, NUM_QU
@@ -732,32 +732,16 @@
 QUERIES,
-%0A               
  %22duckdb

Test DuckDB only with one thread due to multithreading issues