Commit a64123c9 authored by Mathias Goebel's avatar Mathias Goebel 🎠
Browse files

more verbose testing

parent 3cb0d298
......@@ -27,7 +27,7 @@ installation:
- while [ $(curl -I -s http://localhost:8080 | grep -c "200 OK") == 0 ]; do sleep 2s; done
# shutdown eXist
- bash ${EXIST_DB}/bin/shutdown.sh
- ls -al /tmp/tests*; mv /tmp/tests-* .
- ls -al /tmp; mv /tmp/tests-* .
artifacts:
paths:
- output.log
......
......@@ -2,10 +2,11 @@ xquery version "3.1";
exrest:register-module(xs:anyURI("/db/apps/SADE/modules/fontane/index-api.xqm")),
exrest:register-module(xs:anyURI("/db/apps/SADE/modules/fontane/toc-api.xqm")),
let $doc := doc("expath-pkg.xml")//*:package,
(let $doc := doc("expath-pkg.xml")//*:package,
$app := string($doc/@abbrev),
$version := string($doc/@version),
$filename := string-join(("/tmp/tests", $app, $version), "-") || ".xml"
return
<tests application="{$app}" version="{$version}">{util:eval("modules/fontane/tests.xq")}</tests>
=> file:serialize($filename, ())
$filename := string-join(("/tmp/tests", $app, $version), "-") || ".xml",
$node := <tests application="{$app}" version="{$version}">{util:eval("modules/fontane/tests.xq")}</tests>,
$sysout := util:log-system-out($node)
return file:serialize($node, $filename, ())
)
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment