forked from sqlancer/sqlancer
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestSQLitePQS.java
More file actions
21 lines (15 loc) · 856 Bytes
/
TestSQLitePQS.java
File metadata and controls
21 lines (15 loc) · 856 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
package sqlancer.dbms;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import sqlancer.Main;
public class TestSQLitePQS {
@Test
public void testSqlitePQS() {
// run with one thread due to multithreading issues, see https://github.com/sqlancer/sqlancer/pull/45
assertEquals(0, Main.executeMain(new String[] { "--random-seed", "0", "--timeout-seconds", TestConfig.SECONDS,
"--num-threads", "1", "--num-queries", "1000", "--random-string-generation", "ALPHANUMERIC_SPECIALCHAR",
"--database-prefix", "pqsdb" /* Workaround for connections not being closed */, "sqlite3", "--oracle",
"PQS", "--test-fts", "false", "--test-rtree", "false", "--test-check-constraints", "false",
"--test-in-operator", "false" }));
}
}