Skip to content

Commit

Permalink
Add test as dependency to daffodil-test-integration
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
olabusayoT committed Oct 11, 2024
1 parent 96dbe0b commit 73f631a
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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>")
Expand All @@ -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)
Expand Down

0 comments on commit 73f631a

Please sign in to comment.