Files
galaxy/.ci/validate_test_tools.sh
Matthias Bernt 1a25ef6f58 skip validation of upload tool
to allow for stricter xml schema (enforce one param child)
2023-12-13 18:40:25 +01:00

14 lines
434 B
Bash
Executable File

#!/bin/sh
cd "$(dirname "$0")"/..
xsd_path="lib/galaxy/tools/xsd/galaxy.xsd"
# Lint the XSD
xmllint --noout "$xsd_path"
test_tools_path='test/functional/tools'
# test all test tools except upload.xml which uses a non-standard conditional
# (without param) which does not survive xsd validation
tool_files_list=$(ls "$test_tools_path"/*.xml | grep -v '_conf.xml$' | grep -v upload.xml)
sh scripts/validate_tools.sh $tool_files_list