aboutsummaryrefslogtreecommitdiff
path: root/server/testdata/cmd/get-entries
diff options
context:
space:
mode:
authorRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-27 10:53:46 +0100
committerRasmus Dahlberg <rasmus.dahlberg@kau.se>2020-10-27 10:53:46 +0100
commit96a5021d586a20cbf00eb7f74ca08084bbaf048a (patch)
treec1e18bc03852c47e04de81ac34241ed58cd3adca /server/testdata/cmd/get-entries
parent550f7878bf509cc825726e6d95506e62857d48c9 (diff)
added additional interactive test scripts
Diffstat (limited to 'server/testdata/cmd/get-entries')
-rwxr-xr-xserver/testdata/cmd/get-entries15
1 files changed, 15 insertions, 0 deletions
diff --git a/server/testdata/cmd/get-entries b/server/testdata/cmd/get-entries
new file mode 100755
index 0000000..b0075ab
--- /dev/null
+++ b/server/testdata/cmd/get-entries
@@ -0,0 +1,15 @@
+#!/bin/bash
+
+set -eo pipefail
+source config
+
+first=0
+second=0
+if [[ ! -z $1 ]] && [[ ! -z $2 ]]; then
+ first=$1
+ second=$2
+fi
+
+info "downloading entries [$first, $second]"
+curl -G -d "start=$first" -d "end=$second" $base_url/get-entries
+newline