Skip to content

Commit

Permalink
#2242: enable test
Browse files Browse the repository at this point in the history
  • Loading branch information
yegor256 committed Jul 12, 2023
1 parent aeb5d47 commit d17d789
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 8 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ebnf.yml
Original file line number Diff line number Diff line change
Expand Up @@ -38,8 +38,9 @@ jobs:
restore-keys: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: |
mkdir -p $CONVERT_PATH
wget http://public.yegor256.com/convert.zip -O /tmp/convert.zip
wget --quiet http://public.yegor256.com/convert.zip -O /tmp/convert.zip
unzip -o -d $CONVERT_PATH /tmp/convert.zip
if: matrix.os == 'ubuntu-20.04'
- run: mvn clean test '-P!jacoco' -Dtest=XMIRTest -pl :eo-parser --errors --batch-mode
- run: |
cp eo-parser/src/test/resources/tex/ebnf.tex eo-parser/target/ebnf.tex
Expand Down
5 changes: 0 additions & 5 deletions .github/workflows/mvn.yml
Original file line number Diff line number Diff line change
Expand Up @@ -33,9 +33,4 @@ jobs:
path: ~/.m2/repository
key: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-${{ hashFiles('**/pom.xml') }}
restore-keys: ${{ runner.os }}-jdk-${{ matrix.java }}-maven-
- run: |
mkdir -p $CONVERT_PATH
wget http://public.yegor256.com/convert.zip -O /tmp/convert.zip
unzip -o -d $CONVERT_PATH /tmp/convert.zip
if: matrix.os == 'ubuntu-20.04'
- run: mvn clean install -Pqulice --errors --batch-mode
6 changes: 4 additions & 2 deletions eo-parser/src/test/java/org/eolang/parser/XMIRTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,6 @@
import org.hamcrest.MatcherAssert;
import org.hamcrest.Matchers;
import org.junit.jupiter.api.Assumptions;
import org.junit.jupiter.api.Disabled;
import org.junit.jupiter.api.Test;
import org.junit.jupiter.params.ParameterizedTest;

Expand Down Expand Up @@ -81,7 +80,6 @@ final class XMIRTest {
* locally but it fails on github actions.
*/
@Test
@Disabled
void convertsAntlrToEbnf() throws Exception {
String home = System.getenv("CONVERT_PATH");
if (home == null) {
Expand All @@ -103,6 +101,7 @@ void convertsAntlrToEbnf() throws Exception {
args.add("de.bottlecaps.convert.Convert");
args.add("-xml");
args.add("src/main/antlr4/org/eolang/parser/Program.g4");
Logger.info(this, "+%s", args);
final Process proc = new ProcessBuilder()
.command(args)
.directory(new File(System.getProperty("user.dir")))
Expand All @@ -118,6 +117,9 @@ void convertsAntlrToEbnf() throws Exception {
).value();
}
final String output = stdout.toString();
if (!output.startsWith("<?xml")) {
Logger.warn(this, "Stdout: %n%s", output);
}
final XML xml = new XMLDocument(output);
final XML after = new Xsline(
new TrLogged(
Expand Down

0 comments on commit d17d789

Please sign in to comment.