-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathTestMySQLPQS.java
More file actions
25 lines (18 loc) · 908 Bytes
/
TestMySQLPQS.java
File metadata and controls
25 lines (18 loc) · 908 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
package sqlancer.dbms;
import static org.junit.jupiter.api.Assertions.assertEquals;
import static org.junit.jupiter.api.Assumptions.assumeTrue;
import org.junit.jupiter.api.Test;
import sqlancer.Main;
public class TestMySQLPQS {
String mysqlAvailable = System.getenv("MYSQL_AVAILABLE");
boolean mysqlIsAvailable = mysqlAvailable != null && mysqlAvailable.equalsIgnoreCase("true");
@Test
public void testPQS() {
assumeTrue(mysqlIsAvailable);
assertEquals(0,
Main.executeMain(new String[] { "--random-seed", "0", "--timeout-seconds", TestConfig.SECONDS,
"--num-threads", "4", "--random-string-generation", "ALPHANUMERIC", "--database-prefix",
"pqsdb" /* Workaround for connections not being closed */, "--num-queries",
TestConfig.NUM_QUERIES, "mysql", "--oracle", "PQS" }));
}
}