mirror of
https://github.com/galaxyproject/galaxy.git
synced 2026-09-19 10:51:34 +08:00
1) Download conformance tests to `test/functional/tools/cwl_tools` where they can be used also by framework and unit tests in the future. 2) Add populators to enable executing CWL conformance tests 3) Generate CWL conformance API tests only when needed for tests
30 lines
911 B
Bash
Executable File
30 lines
911 B
Bash
Executable File
#!/bin/sh
|
|
|
|
cd "$(dirname "$0")"/..
|
|
|
|
DEST_DIR='test/functional/tools/cwl_tools'
|
|
|
|
VERSIONS="1.0
|
|
1.1
|
|
1.2"
|
|
for version in $VERSIONS; do
|
|
if [ "$version" = '1.0' ]; then
|
|
repo_name=common-workflow-language
|
|
conformance_filepath=v1.0/conformance_test_v1.0.yaml
|
|
tests_dir=v1.0/v1.0
|
|
else
|
|
repo_name=cwl-v$version
|
|
conformance_filepath=conformance_tests.yaml
|
|
tests_dir=tests
|
|
fi
|
|
wget "https://github.com/common-workflow-language/${repo_name}/archive/main.zip"
|
|
unzip main.zip
|
|
rm -rf "${DEST_DIR}/v${version}"
|
|
mkdir -p "${DEST_DIR}/v${version}"
|
|
cp "${repo_name}-main/${conformance_filepath}" "${DEST_DIR}/v${version}/conformance_tests.yaml"
|
|
cp -r "${repo_name}-main/${tests_dir}" "${DEST_DIR}/v${version}"/
|
|
rm -rf "${repo_name}-main"
|
|
rm -rf main.zip
|
|
python3 scripts/cwl_conformance_to_test_cases.py "${DEST_DIR}" "v${version}"
|
|
done
|