Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 1 addition & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -146,5 +146,4 @@ static
.idea
.vscode
*.zarr
*.tar.gz
*.dat
*.dat
29 changes: 16 additions & 13 deletions respondo/testdata/0_download_testdata.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

# taken from adcc repository, written by @mfherbst

SOURCE="https://wwwagdreuw.iwr.uni-heidelberg.de/respondo_test_data/0.3.0"
# SOURCE="https://wwwagdreuw.iwr.uni-heidelberg.de/respondo_test_data/0.3.0"
DATAFILES=(
data_0.3.0.tar.gz
)
Expand All @@ -14,17 +14,20 @@ THISDIR=$(dirname "${BASH_SOURCE[0]}")
cd "$THISDIR"
echo "Updating testdata ... please wait."

download() {
if which wget &> /dev/null; then
echo $@
wget -w 1 -qN --show-progress --no-check-certificate $@
else
echo "wget not installed" >&2
exit 1
fi
}

download $(for file in ${DATAFILES[@]}; do echo $SOURCE/$file; done)
#
# ToDo: temporary fix store testdata in repository.
# As soon as new server is online move testdata there
# download() {
# if which wget &> /dev/null; then
# echo $@
# wget -w 1 -qN --show-progress --no-check-certificate $@
# else
# echo "wget not installed" >&2
# exit 1
# fi
# }

# download $(for file in ${DATAFILES[@]}; do echo $SOURCE/$file; done)

if which sha256sum &> /dev/null; then
sha256sum --ignore-missing -c SHA256SUMS || exit 1
Expand All @@ -34,4 +37,4 @@ for file in ${DATAFILES[@]}; do
tar -xzf $file
done

exit 0
exit 0
Binary file added respondo/testdata/data_0.3.0.tar.gz
Binary file not shown.
Loading