Skip to content

Commit e0d072b

Browse files
committed
[Postgres] Add CERT test
1 parent 5d0210b commit e0d072b

2 files changed

Lines changed: 21 additions & 0 deletions

File tree

.github/workflows/main.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -482,6 +482,7 @@ jobs:
482482
POSTGRES_AVAILABLE=true mvn -Dtest=TestPostgresPQS test
483483
POSTGRES_AVAILABLE=true mvn -Dtest=TestPostgresTLP test
484484
POSTGRES_AVAILABLE=true mvn -Dtest=TestPostgresNoREC test
485+
POSTGRES_AVAILABLE=true mvn -Dtest=TestPostgresCERT test
485486
486487
presto:
487488
name: DBMS Tests (Presto)
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
package sqlancer.dbms;
2+
3+
import static org.junit.jupiter.api.Assertions.assertEquals;
4+
import static org.junit.jupiter.api.Assumptions.assumeTrue;
5+
6+
import org.junit.jupiter.api.Test;
7+
8+
import sqlancer.Main;
9+
10+
public class TestPostgresCERT {
11+
12+
@Test
13+
public void testCERT() {
14+
assumeTrue(TestConfig.isEnvironmentTrue(TestConfig.POSTGRES_ENV));
15+
assertEquals(0,
16+
Main.executeMain(new String[] { "--random-seed", "0", "--timeout-seconds", TestConfig.SECONDS,
17+
"--num-threads", "4", "--num-queries", TestConfig.NUM_QUERIES, "postgres", "--test-collations",
18+
"false", "--oracle", "CERT" }));
19+
}
20+
}

0 commit comments

Comments
 (0)