-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathTestIRISFuzzer.java
More file actions
30 lines (25 loc) · 933 Bytes
/
TestIRISFuzzer.java
File metadata and controls
30 lines (25 loc) · 933 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
26
27
28
29
30
package sqlancer.dbms;
import static org.junit.jupiter.api.Assertions.assertEquals;
import org.junit.jupiter.api.Test;
import sqlancer.Main;
public class TestIRISFuzzer {
@Test
public void test() throws Exception {
try (TestingIRISServer irisServer = new TestingIRISServer()) {
System.out.println("URL: " + irisServer.getConnectionString());
assertEquals(0,
Main.executeMain(new String[] {
"--random-seed", "0",
"--timeout-seconds", TestConfig.SECONDS,
"--num-threads", "4",
"--num-queries", TestConfig.NUM_QUERIES,
"--username", irisServer.getUsername(),
"--password", irisServer.getUsername(),
// "--port", String.valueOf(irisServer.getPort()),
"iris",
"--connection-url", irisServer.getConnectionString(),
"--oracle", "fuzzer",
}));
}
}
}