-
Notifications
You must be signed in to change notification settings - Fork 397
Expand file tree
/
Copy pathTestOceanBaseTLP.java
More file actions
26 lines (20 loc) · 1.08 KB
/
TestOceanBaseTLP.java
File metadata and controls
26 lines (20 loc) · 1.08 KB
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
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 TestOceanBaseTLP {
@Test
public void testTLP() {
assumeTrue(TestConfig.isEnvironmentTrue(TestConfig.OCEANBASE_ENV));
assertEquals(0,
Main.executeMain(new String[] { "--random-seed", "0", "--timeout-seconds", TestConfig.SECONDS,
"--num-threads", "4", "--database-prefix", "tlpdb", "--num-queries", TestConfig.NUM_QUERIES,
"--username", "sqlancer@test", "--password", "sqlancer",
// after deploy oceanbase,if you don't create tenant to test,firstly create tenant test,then
// create user sqlancer:
// mysql -h127.1 -uroot@test -P2881 -Doceanbase -A -e"create user sqlancer identified by
// 'sqlancer';grant all on *.* to sqlancer;"
"oceanbase", "--oracle", "TLP_WHERE" }));
}
}