Skip to content

Commit

Permalink
Add sqllogictest
Browse files Browse the repository at this point in the history
  • Loading branch information
jnmugerwa authored and Rongrong Zhong committed Apr 9, 2021
1 parent 2dbc1ef commit e175bad
Show file tree
Hide file tree
Showing 10 changed files with 2,723 additions and 0 deletions.
30 changes: 30 additions & 0 deletions parser/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,36 @@
<artifactId>testng</artifactId>
<scope>test</scope>
</dependency>

<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
</dependency>

<dependency>
<groupId>com.facebook.airlift</groupId>
<artifactId>configuration</artifactId>
</dependency>

<dependency>
<groupId>com.facebook.airlift</groupId>
<artifactId>log</artifactId>
</dependency>

<dependency>
<groupId>com.facebook.airlift</groupId>
<artifactId>bootstrap</artifactId>
</dependency>

<dependency>
<groupId>com.google.inject</groupId>
<artifactId>guice</artifactId>
</dependency>

<dependency>
<groupId>com.google.guava</groupId>
<artifactId>guava</artifactId>
</dependency>
</dependencies>

<build>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,11 @@
*/
package com.facebook.coresql.parser;

import com.facebook.coresql.parser.sqllogictest.java.SqlLogicTest;
import org.testng.annotations.Test;

import java.io.IOException;

import static com.facebook.coresql.parser.ParserHelper.parseStatement;
import static com.facebook.coresql.parser.Unparser.unparse;
import static org.testng.Assert.assertEquals;
Expand Down Expand Up @@ -66,4 +69,11 @@ public void parseUnparseTest()
assertEquals(sql.trim(), unparse(ast).trim());
}
}

@Test
public void sqlLogicTest()
throws IOException
{
SqlLogicTest.execute();
}
}
Loading

0 comments on commit e175bad

Please sign in to comment.