Skip to content

Commit

Permalink
Merge branch 'master' into mv-step3-from-src-to-test
Browse files Browse the repository at this point in the history
  • Loading branch information
AirQuick committed May 5, 2023
2 parents 124c361 + 6d9ead1 commit 9ab7e92
Show file tree
Hide file tree
Showing 9 changed files with 35 additions and 33 deletions.
32 changes: 16 additions & 16 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
"version": "0.0.0",
"description": "This package is configured only for testing the XSpec repository",
"devDependencies": {
"@commitlint/cli": "^17.6.1",
"@commitlint/cli": "^17.6.3",
"@commitlint/config-angular": "^17.6.1",
"bats": "^1.8.2",
"prettier": "^2.8.8"
Expand Down
2 changes: 1 addition & 1 deletion test/ci/env/saxon-10.env
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#
# Latest Saxon 10
#
SAXON_VERSION=10.8
SAXON_VERSION=10.9
XMLCALABASH_VERSION=1.3.2-100
6 changes: 3 additions & 3 deletions test/ci/print-env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -32,12 +32,12 @@ java -cp "%XML_RESOLVER_JAR%" org.apache.xml.resolver.Version

echo:
echo === Check BaseX
java -cp "%BASEX_JAR%" org.basex.BaseX -h 2> NUL
java -cp "%BASEX_JAR%" org.basex.BaseX -h

echo:
echo === Check BaseX server start and stop
call "%BASEX_JAR%\..\bin\basexhttp.bat" -S 2> NUL
call "%BASEX_JAR%\..\bin\basexhttpstop.bat" 2> NUL
call "%BASEX_JAR%\..\bin\basexhttp.bat" -S
call "%BASEX_JAR%\..\bin\basexhttpstop.bat"

echo:
echo === Print environment variables
Expand Down
6 changes: 3 additions & 3 deletions test/ci/print-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -30,13 +30,13 @@ java -cp "${XML_RESOLVER_JAR}" org.apache.xml.resolver.Version

echo
echo "=== Check BaseX"
java -cp "${BASEX_JAR}" org.basex.BaseX -h 2> /dev/null
java -cp "${BASEX_JAR}" org.basex.BaseX -h

echo
echo "=== Check BaseX server start and stop"
basex_home=$(dirname -- "${BASEX_JAR}")
"${basex_home}/bin/basexhttp" -S 2> /dev/null
"${basex_home}/bin/basexhttpstop" 2> /dev/null
"${basex_home}/bin/basexhttp" -S
"${basex_home}/bin/basexhttpstop"

echo
echo "=== Print Bats version"
Expand Down
5 changes: 5 additions & 0 deletions test/ci/set-env.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,11 @@ if defined XMLCALABASH_CP if defined LOG4J_DIR (
rem
rem BaseX
rem

rem BaseX 10 requires Java 11
java -version 2>&1 | "%SYSTEMROOT%\system32\find" " 1.8." > NUL
if not errorlevel 1 set BASEX_VERSION=

if defined BASEX_VERSION (
rem Depends on the archive file structure
set "BASEX_JAR=%XSPEC_TEST_DEPS%\basex-%BASEX_VERSION%\basex\BaseX.jar"
Expand Down
6 changes: 6 additions & 0 deletions test/ci/set-env.sh
Original file line number Diff line number Diff line change
Expand Up @@ -117,6 +117,12 @@ fi
#
# BaseX
#

# BaseX 10 requires Java 11
if java -version 2>&1 | grep -F " 1.8." > /dev/null; then
unset BASEX_VERSION
fi

if [ -n "${BASEX_VERSION}" ]; then
# Depends on the archive file structure
export BASEX_JAR="${XSPEC_TEST_DEPS}/basex-${BASEX_VERSION}/basex/BaseX.jar"
Expand Down
4 changes: 0 additions & 4 deletions test/run-bats.cmd
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,6 @@ if not exist "%SAXON_JAR%" (
exit /b 1
)

rem If Java 8, unset BASEX_JAR because Java 8 is incompatible with BaseX 10
java -version 2>&1 | "%SYSTEMROOT%\system32\find" " 1.8." > NUL
if not errorlevel 1 set BASEX_JAR=

rem Check capabilities
java -cp "%SAXON_JAR%" net.sf.saxon.Version 2>&1 | "%SYSTEMROOT%\system32\find" " 9." > NUL
if not errorlevel 1 set XSLT_SUPPORTS_COVERAGE=1
Expand Down
5 changes: 0 additions & 5 deletions test/run-bats.sh
Original file line number Diff line number Diff line change
Expand Up @@ -16,11 +16,6 @@ if [ ! -f "${SAXON_JAR}" ]; then
exit 1
fi

# If Java 8, unset BASEX_JAR because Java 8 is incompatible with BaseX 10
if java -version 2>&1 | grep -F " 1.8." > /dev/null; then
export BASEX_JAR=
fi

# Check capabilities
if java -cp "${SAXON_JAR}" net.sf.saxon.Version 2>&1 | grep -F " 9." > /dev/null; then
export XSLT_SUPPORTS_COVERAGE=1
Expand Down

0 comments on commit 9ab7e92

Please sign in to comment.