diff --git a/.github/workflows/aot-test.yml b/.github/workflows/aot-test.yml index f5ec8dd..259ece4 100644 --- a/.github/workflows/aot-test.yml +++ b/.github/workflows/aot-test.yml @@ -58,6 +58,12 @@ jobs: target/graalvm-native-image/jelly-cli rdf to-jelly --in-format "rdfxml" > rdfxml.jelly && \ [ -s rdfxml.jelly ] + # Invalid RDF/XMl input test + # Regression test for: https://github.com/Jelly-RDF/cli/issues/217 + echo 'invalidxml' | \ + ( ! target/graalvm-native-image/jelly-cli rdf to-jelly --in-format "rdfxml" &> error.txt ) && \ + grep 'Content is not allowed in prolog' error.txt + # Test rdf validate target/graalvm-native-image/jelly-cli \ rdf validate out.jelly --compare-to-rdf-file in.nt diff --git a/build.sbt b/build.sbt index efdbdbb..1354bb4 100644 --- a/build.sbt +++ b/build.sbt @@ -36,6 +36,9 @@ lazy val graalOptions = Seq( "-H:+UsePredicates", // SkipFlow optimization -- will be default in GraalVM 25 // Make sure we don't include stuff that should be unreachable in the native image "-H:AbortOnMethodReachable=*UUID.randomUUID*", + // Include XML error messages + // Issue: https://github.com/Jelly-RDF/cli/issues/217 + "-H:IncludeResourceBundles=com.sun.org.apache.xerces.internal.impl.msg.XMLMessages", ) lazy val TestSerial = config("test-serial") extend Test