-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
22 additions
and
13 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Submodule cwl-commandlinetools
updated
128 files
Submodule cwl_subworkflows
updated
17 files
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,18 +1,27 @@ | ||
#!/usr/bin/env bash | ||
|
||
|
||
# Test data is hosted on Google Drive at: | ||
# https://drive.google.com/u/0/uc?id=1i1GA4AZhuw6Si8RmPFPJxmejIUt3ZZ1D | ||
|
||
fileid=1i1GA4AZhuw6Si8RmPFPJxmejIUt3ZZ1D | ||
|
||
filename=test_nucleo_qc.tar.gz | ||
# Note: Drive seems to change somewhat frequently how it handles endpoints for large files | ||
# add confirm parameter to link for this to work | ||
# previously used another wget scheme and gdown | ||
wget -O $filename "https://drive.google.com/u/0/uc?id=1i1GA4AZhuw6Si8RmPFPJxmejIUt3ZZ1D&export=download&confirm=t" | ||
foldername=test_data | ||
|
||
# Skip if already have test data | ||
[[ -f $filename ]] && exit 0 | ||
[[ -d $foldername ]] && exit 0 | ||
|
||
#curl -c ./cookie -s -k -L "https://drive.google.com/uc?export=download&id=$fileid" > /dev/null | ||
#curl -k -Lb ./cookie "https://drive.google.com/uc?export=download&confirm=`awk '/download/ {print $NF}' ./cookie`&id=${fileid}" -o ${filename} | ||
cd tests/inputs || exit | ||
curl -L "https://drive.usercontent.google.com/download?id=${fileid}&confirm=xxx" -o ${filename} | ||
|
||
# Suppress linux warnings for MacOS tar.gz files | ||
if [[ "$OSTYPE" == "linux-gnu" ]]; then | ||
tar --warning=no-unknown-keyword -xzvf $filename -C tests/inputs/ | ||
tar --warning=no-unknown-keyword -xzvf $filename | ||
elif [[ "$OSTYPE" == "darwin"* ]]; then | ||
tar -xzvf $filename -C tests/inputs/ | ||
tar -xzvf $filename | ||
fi | ||
rm $filename | ||
|
||
rm $filename |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters