cwl testing: use the proposed 1.2.1 CWL conformance tests.

This commit is contained in:
Michael R. Crusoe
2023-09-07 12:39:22 +02:00
parent 3db5f5631c
commit 6cd71508e1
+11 -6
View File
@@ -17,13 +17,18 @@ for version in $VERSIONS; do
conformance_filepath=conformance_tests.yaml
tests_dir=tests
fi
wget "https://github.com/common-workflow-language/${repo_name}/archive/main.zip"
unzip main.zip
if [ "$version" = '1.2' ]; then
branch=1.2.1_proposed
else
branch=main
fi
wget "https://github.com/common-workflow-language/${repo_name}/archive/${branch}.zip"
unzip ${branch}.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
cp "${repo_name}-${branch}/${conformance_filepath}" "${DEST_DIR}/v${version}/conformance_tests.yaml"
cp -r "${repo_name}-${branch}/${tests_dir}" "${DEST_DIR}/v${version}"/
rm -rf "${repo_name}-${branch}"
rm -rf ${branch}.zip
python3 scripts/cwl_conformance_to_test_cases.py "${DEST_DIR}" "v${version}"
done