This is an automated email from the ASF dual-hosted git repository.
olabusayo pushed a commit to branch main
in repository https://gitbox.apache.org/repos/asf/daffodil.git
The following commit(s) were added to refs/heads/main by this push:
new b5d69141b Add test as dependency to daffodil-test-integration
b5d69141b is described below
commit b5d69141bb3e264a95f95452e36353b0544d1808
Author: olabusayoT <[email protected]>
AuthorDate: Tue Oct 8 17:57:30 2024 -0400
Add test as dependency to daffodil-test-integration
- currently, we only ensure the daffodil-cli and daffodil-uds jars are
built, so when some of our tests fork they can correctly reference the jars in
the classpaths we set up for them. Many tests reference daffodil-test, so when
you try to run daffodil-test-integration/test from a clean repo, some tests
fail so we have to ensure daffodil-test is built and available as well.
- add forks to cli project
DAFFODIL-2933
---
build.sbt | 2 +-
.../src/test/scala/org/apache/daffodil/cliTest/TestCLIUdfs.scala | 4 ++--
2 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/build.sbt b/build.sbt
index 8e6f4f939..a711217bf 100644
--- a/build.sbt
+++ b/build.sbt
@@ -195,7 +195,7 @@ lazy val testIBM1 = Project("daffodil-test-ibm1",
file("daffodil-test-ibm1"))
lazy val testIntegration =
Project("daffodil-test-integration", file("daffodil-test-integration"))
- .dependsOn(cli % "test->test", udf % "test->test")
+ .dependsOn(cli % "test->test", udf % "test->test", testDaf % "test->test")
.settings(commonSettings, nopublish)
.settings(
// CLI integration tests fork a new process which requires extra memory,
so these should
diff --git
a/daffodil-test-integration/src/test/scala/org/apache/daffodil/cliTest/TestCLIUdfs.scala
b/daffodil-test-integration/src/test/scala/org/apache/daffodil/cliTest/TestCLIUdfs.scala
index f43725cc0..4339903cc 100644
---
a/daffodil-test-integration/src/test/scala/org/apache/daffodil/cliTest/TestCLIUdfs.scala
+++
b/daffodil-test-integration/src/test/scala/org/apache/daffodil/cliTest/TestCLIUdfs.scala
@@ -47,7 +47,7 @@ class TestCLIUdfs {
"daffodil-udf/src/test/resources/org/apache/daffodil/udf/genericUdfSchema.xsd"
)
- runCLI(args"-v parse -s $schema -r fn_func") { cli =>
+ runCLI(args"-v parse -s $schema -r fn_func", fork = true) { cli =>
cli.send("strng", inputDone = true)
cli.expect("<fn_func>")
cli.expect("<data>strng</data>")
@@ -65,7 +65,7 @@ class TestCLIUdfs {
"daffodil-udf/src/test/resources/org/apache/daffodil/udf/genericUdfSchema.xsd"
)
- runCLI(args"-v parse -s $schema -r user_func1") { cli =>
+ runCLI(args"-v parse -s $schema -r user_func1", fork = true) { cli =>
cli.send("strng", inputDone = true)
cli.expectErr("[error] Schema Definition Error: Unsupported function:
jsudf:replace")
}(ExitCode.UnableToCreateProcessor)