Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Mathis Rosenhauer
libaec
Commits
57a9e839
Commit
57a9e839
authored
Sep 06, 2016
by
Mathis Rosenhauer
Browse files
Use curl instead of wget to fetch remote data
parent
9bfaf0cf
Changes
2
Show whitespace changes
Inline
Side-by-side
tests/benc.sh
View file @
57a9e839
...
...
@@ -4,11 +4,11 @@ AEC=../src/aec
test_data
=
https://gitlab.dkrz.de/k202009/libaec/raw/master/data/typical.rz
if
[
!
-f
typical.dat
]
;
then
rm
-f
typical.rz
type
wget
>
/dev/null 2>&1
||
{
echo
>
&2
"
wget
not found. Please download
$test_data
by other means and place it in tests. Aborting."
type
curl
>
/dev/null 2>&1
||
{
echo
>
&2
"
curl
not found. Please download
$test_data
by other means and place it in tests. Aborting."
exit
1
}
wget
$test_data
||
{
curl
$test_data
-O
||
{
echo
>
&2
"Could not download
$test_data
. Please download it by other means and place it in tests. Aborting."
exit
1
}
...
...
tests/sampledata.sh
View file @
57a9e839
...
...
@@ -8,11 +8,11 @@ LOWE=${CCSDS_DATA}/LowEntropyOptions
archive
=
121B2TestData.zip
archive_url
=
http://cwe.ccsds.org/sls/docs/SLS-DC/BB121B2TestData/
$archive
if
[
!
-f
$archive
]
;
then
type
wget
>
/dev/null 2>&1
||
{
echo
>
&2
"
wget
not found. Please download
$archive_url
by other means and place it in tests.
\n
Aborting."
type
curl
>
/dev/null 2>&1
||
{
echo
>
&2
"
curl
not found. Please download
$archive_url
by other means and place it in tests.
\n
Aborting."
exit
1
}
wget
$archive_url
||
{
curl
$archive_url
-O
||
{
echo
>
&2
"Could not download
$archive_url
. Please download
$archive
by other means and place it in tests. Aborting."
exit
1
}
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment