From 96a5021d586a20cbf00eb7f74ca08084bbaf048a Mon Sep 17 00:00:00 2001
From: Rasmus Dahlberg <rasmus.dahlberg@kau.se>
Date: Tue, 27 Oct 2020 10:53:46 +0100
Subject: added additional interactive test scripts

---
 server/testdata/cmd/get-entries | 15 +++++++++++++++
 1 file changed, 15 insertions(+)
 create mode 100755 server/testdata/cmd/get-entries

(limited to 'server/testdata/cmd/get-entries')

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
-- 
cgit v1.2.3