--- /dev/null
- siridb-server (2.0.43-0~tt1) unstable; urgency=medium
++siridb-server (2.0.43-1+rpi1) bullseye-staging; urgency=medium
+
- * New upstream release
- - Fixed HTTP pipeline issue (@srdgame, #161)
- - Fixed possible memory corruption (@ubnt-michals, #158)
- - Changed SIRIDB_DB_PATH configuration (#154)
- - Fixed shard duration for ARM builds (@srdgame, #164)
- - Use IPv4 for health and API when configured (@ubnt-michals, #155)
-
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Thu, 04 Feb 2021 15:36:02 +0100
-
- siridb-server (2.0.42-0~tt1) unstable; urgency=medium
++ * Move valgrind to build-conflicts, the version in raspbian
++ has issues.
+
- * New upstream release
- - Fixed handle ready status in Kubernetes statefulset (#153)
++ -- Peter Michael Green <plugwash@raspbian.org> Sat, 08 May 2021 12:17:27 +0000
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Thu, 12 Nov 2020 09:39:13 +0100
++siridb-server (2.0.43-1) unstable; urgency=medium
+
- siridb-server (2.0.41-0~tt1) unstable; urgency=medium
++ [ Helmut Grohne ]
++ * Improve cross building: (Closes: #982363)
+
++ [ Paul Gevers ]
+ * New upstream release
- - Fixed bug in insert loop (#147)
- - Fixed loading databases with duplicated series (#148)
- - Allow server names without defining a port (#150)
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Wed, 04 Nov 2020 13:15:29 +0100
++ -- Paul Gevers <elbrus@debian.org> Fri, 19 Feb 2021 20:37:54 +0100
+
- siridb-server (2.0.40-0~tt1) unstable; urgency=medium
++siridb-server (2.0.42-1) unstable; urgency=medium
+
- * New upstream release
- - Added `alter tag` syntax (#144)
- - Fixed list tags error when conditions are used (#145)
- - Fixed division by zero bug (#146)
++ New upstream release
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Fri, 25 Sep 2020 16:35:28 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 03 Jan 2021 21:54:23 +0100
+
- siridb-server (2.0.39-0~tt1) unstable; urgency=medium
++siridb-server (2.0.40-1) unstable; urgency=medium
+
+ * New upstream release
- - Added auto shard duration option (#141)
- - Added `shard_duration` property on list series (#140)
- - Added `timeval()` and `interval()` functions (#138)
- - Fixed build error on 32 bit systems (#135)
++ - Drop patches (applied upstream)
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Fri, 18 Sep 2020 15:50:10 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 18 Oct 2020 20:47:25 +0200
+
- siridb-server (2.0.38-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-3) unstable; urgency=medium
+
- * New upstream release
- - Added tag support (#74)
- - Fixed cleanup duplicate package (#134)
++ * Drop valgrind check on mips*el for now
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Fri, 28 Aug 2020 11:12:24 +0200
++ -- Paul Gevers <elbrus@debian.org> Sat, 12 Sep 2020 21:30:15 +0200
+
- siridb-server (2.0.37-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-2) unstable; urgency=medium
+
- * New upstream release
- - Fixed reading `series.dat` after unclean shutdown (#130)
- - Fixed `gcc-10` compile errors (#132)
++ * Only add valgrind as Build-Depends where it exists
++ * Add patches to fix issues found by valgrind on mips*el
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Thu, 23 Jul 2020 14:38:50 +0200
++ -- Paul Gevers <elbrus@debian.org> Thu, 10 Sep 2020 21:24:55 +0200
+
- siridb-server (2.0.36-0~tt1) unstable; urgency=medium
++siridb-server (2.0.38-1) unstable; urgency=medium
+
++ [ Paul Gevers ]
+ * New upstream release
- - Fixed bug in max open files setting (#125)
- - Accept Grafana compatible API requests (#129)
- - Added support for configuration using environment variable (#128)
-
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Wed, 22 Apr 2020 11:18:32 +0200
++ * Add simple (but not superficial) autopkgtest
+
- siridb-server (2.0.35-0~tt1) unstable; urgency=medium
++ [ Debian Janitor ]
++ * Set upstream metadata fields: Bug-Database, Bug-Submit, Repository,
++ Repository-Browse.
+
- * New upstream release
- - Added shard expiration (#123)
- - Added HTTP API (#124)
++ -- Paul Gevers <elbrus@debian.org> Thu, 10 Sep 2020 09:55:01 +0200
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Mon, 24 Feb 2020 16:23:37 +0100
-
- siridb-server (2.0.34-0~tt1) unstable; urgency=medium
++siridb-server (2.0.37-1) unstable; urgency=medium
+
+ * New upstream release
- - Added readiness and liveness HTTP handler (#122)
- - Fixed bug in sending packages to multiple SiriDB servers (#120)
++ - Fix FTBFS with GCC-10 (Closes: #957800)
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Mon, 08 Jul 2019 14:18:56 +0200
++ -- Paul Gevers <elbrus@debian.org> Mon, 27 Jul 2020 07:38:34 +0200
+
- siridb-server (2.0.33-0~tt1) unstable; urgency=medium
++siridb-server (2.0.36-1) unstable; urgency=medium
+
+ * New upstream release
- - Fixed deep recursion in series selection (#118)
- - Fixed a few gcc version 8 warnings (#117)
- - Increased package size limit and warning
- - Added check for unexpected time-stamps in shards at startup
++ - Fixed headers (Closes: #933220)
++ * Add new B-D: libyajl-dev
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Thu, 04 Apr 2019 14:19:22 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 17 May 2020 16:02:21 +0200
+
- siridb-server (2.0.32-0~tt1) unstable; urgency=medium
++siridb-server (2.0.34-1) unstable; urgency=medium
+
+ * New upstream release
- - Fixed drop database
++ * Update d/copyright
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Fri, 11 Jan 2019 16:03:42 +0100
++ -- Paul Gevers <elbrus@debian.org> Wed, 24 Jul 2019 14:58:21 +0200
+
- siridb-server (2.0.31-0~tt1) unstable; urgency=medium
++siridb-server (2.0.32-1) unstable; urgency=medium
+
+ * New upstream release
- - Added option for adding a data tee
- - Added option to drop a database (#115)
- - Remove limit of 4 database (#114)
- - Do not return with an error if series do not exist (#112)
- - Allow the use of parentheses in selecting series (#111)
- - Fixed bug in merging series with high time precision (#108)
- - Code forward compatible with upcoming cleri release
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Thu, 10 Jan 2019 11:35:12 +0100
++ -- Paul Gevers <elbrus@debian.org> Wed, 23 Jan 2019 20:06:04 +0100
+
- siridb-server (2.0.30-0~tt1) unstable; urgency=medium
++siridb-server (2.0.30-1) unstable; urgency=medium
+
++ [ Jeroen van der Heijden ]
+ * New upstream release
+ - SiriDB Server can now compile with gnu89/gnu90 (#101)
+ - Removed deprecated info- and loaddb requests
+ - Added named pipe support (#104, @pavelxdd)
+ - Changed writing buffer length to reduce random io
+ - Added option to fsync the buffer on a configurable interval
+ - Use posix_fadvise() on the buffer file (@Svedrin)
+ - The buffer size can now be adjusted by using the database.conf
+ configuration file
+ - Added conversion of invalid value types
++ * Lower log level of the service file
++
++ [ Paul Gevers ]
++ * Run testsuite during build
+
- -- Jeroen van der Heijden <jeroen@transceptor.technology> Fri, 12 Oct 2018 19:44:24 +0200
++ -- Paul Gevers <elbrus@debian.org> Sun, 28 Oct 2018 18:43:45 +0100
+
+siridb-server (2.0.29-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Wed, 25 Jul 2018 21:57:12 +0200
+
+siridb-server (2.0.28-1) unstable; urgency=medium
+
+ * New upstream release
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 02 Jul 2018 14:00:34 +0200
+
+siridb-server (2.0.27-1) unstable; urgency=medium
+
+ * New upstream release
+ * Update Maintainer and Vcs fields (Closes: #890700)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 28 May 2018 10:22:52 +0200
+
+siridb-server (2.0.26-1) unstable; urgency=medium
+
+ * New upstream release
+ * Drop all patches
+ * Add man page
+
+ -- Paul Gevers <elbrus@debian.org> Sat, 06 Jan 2018 07:54:21 +0100
+
+siridb-server (2.0.25-1) unstable; urgency=medium
+
+ * Initial release. (Closes: #882678)
+
+ -- Paul Gevers <elbrus@debian.org> Mon, 04 Dec 2017 21:40:02 +0100
--- /dev/null
--- /dev/null
++Index: siridb-server-2.0.42/Release/makefile
++===================================================================
++--- siridb-server-2.0.42.orig/Release/makefile 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/makefile 2021-02-09 13:54:43.760484998 +0100
++@@ -68,7 +68,7 @@
++ siridb-server: $(OBJS) $(USER_OBJS)
++ @echo 'Building target: $@'
++ @echo 'Invoking: GCC C Linker'
++- gcc -o "siridb-server" $(OBJS) $(USER_OBJS) $(LDFLAGS) $(LIBS) $(CRYPT) $(UUID)
+++ $(CC) -o "siridb-server" $(OBJS) $(USER_OBJS) $(LDFLAGS) $(LIBS) $(CRYPT) $(UUID)
++ @echo 'Finished building target: $@'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/argparse/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/argparse/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/argparse/subdir.mk 2021-02-09 13:58:08.904950637 +0100
++@@ -13,7 +13,7 @@
++ src/argparse/%.o: ../src/argparse/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/base64/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/base64/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/base64/subdir.mk 2021-02-09 13:57:03.898070586 +0100
++@@ -13,7 +13,7 @@
++ src/base64/%.o: ../src/base64/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/cexpr/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/cexpr/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/cexpr/subdir.mk 2021-02-09 13:58:23.868692868 +0100
++@@ -13,7 +13,7 @@
++ src/cexpr/%.o: ../src/cexpr/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/cfgparser/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/cfgparser/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/cfgparser/subdir.mk 2021-02-09 13:55:08.376060777 +0100
++@@ -13,7 +13,7 @@
++ src/cfgparser/%.o: ../src/cfgparser/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/ctree/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/ctree/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/ctree/subdir.mk 2021-02-09 13:57:50.265271761 +0100
++@@ -13,7 +13,7 @@
++ src/ctree/%.o: ../src/ctree/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/expr/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/expr/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/expr/subdir.mk 2021-02-09 13:57:43.253392574 +0100
++@@ -13,7 +13,7 @@
++ src/expr/%.o: ../src/expr/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/imap/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/imap/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/imap/subdir.mk 2021-02-09 13:56:47.978344845 +0100
++@@ -13,7 +13,7 @@
++ src/imap/%.o: ../src/imap/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/iso8601/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/iso8601/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/iso8601/subdir.mk 2021-02-09 13:57:00.386131093 +0100
++@@ -13,7 +13,7 @@
++ src/iso8601/%.o: ../src/iso8601/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/lib/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/lib/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/lib/subdir.mk 2021-02-09 13:57:07.850002504 +0100
++@@ -13,7 +13,7 @@
++ src/lib/%.o: ../src/lib/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/llist/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/llist/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/llist/subdir.mk 2021-02-09 13:56:52.910259884 +0100
++@@ -13,7 +13,7 @@
++ src/llist/%.o: ../src/llist/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/lock/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/lock/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/lock/subdir.mk 2021-02-09 13:58:27.912623208 +0100
++@@ -13,7 +13,7 @@
++ src/lock/%.o: ../src/lock/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/logger/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/logger/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/logger/subdir.mk 2021-02-09 13:58:14.300857679 +0100
++@@ -13,7 +13,7 @@
++ src/logger/%.o: ../src/logger/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/omap/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/omap/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/omap/subdir.mk 2021-02-09 13:58:17.328805518 +0100
++@@ -13,7 +13,7 @@
++ src/omap/%.o: ../src/omap/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/owcrypt/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/owcrypt/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/owcrypt/subdir.mk 2021-02-09 13:57:53.637213672 +0100
++@@ -13,7 +13,7 @@
++ src/owcrypt/%.o: ../src/owcrypt/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/procinfo/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/procinfo/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/procinfo/subdir.mk 2021-02-09 13:58:12.096895648 +0100
++@@ -13,7 +13,7 @@
++ src/procinfo/%.o: ../src/procinfo/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/qpack/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/qpack/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/qpack/subdir.mk 2021-02-09 13:58:03.633041467 +0100
++@@ -13,7 +13,7 @@
++ src/qpack/%.o: ../src/qpack/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/qpjson/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/qpjson/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/qpjson/subdir.mk 2021-02-09 13:57:58.949122161 +0100
++@@ -13,7 +13,7 @@
++ src/qpjson/%.o: ../src/qpjson/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/args/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/args/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/args/subdir.mk 2021-02-09 13:57:27.857657811 +0100
++@@ -13,7 +13,7 @@
++ src/siri/args/%.o: ../src/siri/args/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/cfg/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/cfg/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/cfg/subdir.mk 2021-02-09 13:57:30.545611508 +0100
++@@ -13,7 +13,7 @@
++ src/siri/cfg/%.o: ../src/siri/cfg/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/db/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/db/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/db/subdir.mk 2021-02-09 13:57:21.893760558 +0100
++@@ -139,7 +139,7 @@
++ src/siri/db/%.o: ../src/siri/db/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/file/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/file/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/file/subdir.mk 2021-02-09 13:57:14.473888393 +0100
++@@ -16,7 +16,7 @@
++ src/siri/file/%.o: ../src/siri/file/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/grammar/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/grammar/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/grammar/subdir.mk 2021-02-09 13:57:17.189841601 +0100
++@@ -13,7 +13,7 @@
++ src/siri/grammar/%.o: ../src/siri/grammar/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/help/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/help/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/help/subdir.mk 2021-02-09 13:57:35.621524052 +0100
++@@ -13,7 +13,7 @@
++ src/siri/help/%.o: ../src/siri/help/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/net/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/net/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/net/subdir.mk 2021-02-09 13:57:10.705953306 +0100
++@@ -37,6 +37,6 @@
++ src/siri/net/%.o: ../src/siri/net/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++Index: siridb-server-2.0.42/Release/src/siri/service/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/service/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/service/subdir.mk 2021-02-09 13:57:25.065705912 +0100
++@@ -19,7 +19,7 @@
++ src/siri/args/%.o: ../src/siri/args/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/siri/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/siri/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/siri/subdir.mk 2021-02-09 13:57:39.401458935 +0100
++@@ -43,7 +43,7 @@
++ src/siri/%.o: ../src/siri/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/timeit/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/timeit/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/timeit/subdir.mk 2021-02-09 13:57:56.529163852 +0100
++@@ -13,7 +13,7 @@
++ src/timeit/%.o: ../src/timeit/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/vec/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/vec/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/vec/subdir.mk 2021-02-09 13:56:56.358200485 +0100
++@@ -13,7 +13,7 @@
++ src/vec/%.o: ../src/vec/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/xmath/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/xmath/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/xmath/subdir.mk 2021-02-09 13:57:46.601334889 +0100
++@@ -13,7 +13,7 @@
++ src/xmath/%.o: ../src/xmath/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/xpath/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/xpath/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/xpath/subdir.mk 2021-02-09 13:58:20.560749844 +0100
++@@ -13,7 +13,7 @@
++ src/xpath/%.o: ../src/xpath/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/src/xstr/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/src/xstr/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/src/xstr/subdir.mk 2021-02-09 13:58:06.368994331 +0100
++@@ -13,7 +13,7 @@
++ src/xstr/%.o: ../src/xstr/%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
++Index: siridb-server-2.0.42/Release/subdir.mk
++===================================================================
++--- siridb-server-2.0.42.orig/Release/subdir.mk 2020-11-12 09:47:15.000000000 +0100
+++++ siridb-server-2.0.42/Release/subdir.mk 2021-02-09 13:58:30.316581802 +0100
++@@ -13,7 +13,7 @@
++ %.o: ../%.c
++ @echo 'Building file: $<'
++ @echo 'Invoking: GCC C Compiler'
++- gcc -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
+++ $(CC) -DNDEBUG -I../include -O3 -Wall -Wextra $(CPPFLAGS) $(CFLAGS) -c -fmessage-length=0 -MMD -MP -MF"$(@:%.o=%.d)" -MT"$(@)" -o "$@" "$<"
++ @echo 'Finished building: $<'
++ @echo ' '
++
--- /dev/null
--- /dev/null
++#!/bin/sh
++set -e
++
++RES=0
++
++echo '* fixing /etc/siridb/siridb.conf'
++sed --in-place 's/http_api_port = 0/http_api_port = 9020/' /etc/siridb/siridb.conf
++
++echo '* restarting siridb-server'
++service siridb-server restart
++
++echo '* run queries'
++echo ' get-version'
++curl --silent --show-error --location --output res.txt \
++ --request GET 'http://localhost:9020/get-version' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' || RES=1
++cat res.txt
++echo
++
++echo ' new-database'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/new-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "dbname": "sampledb",
++ "time_precision": "s",
++ "buffer_size": 8192,
++ "duration_num": "1w",
++ "duration_log": "3d"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' new-account'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/new-account' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "account": "bob",
++ "password": "passwd4bob"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' change-password'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/change-password' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "account": "bob",
++ "password": "pass"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' drop-account'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/drop-account' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "account": "bob"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' drop-database'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/drop-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "database": "sampledb",
++ "ignore_offline": false
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' drop-database again'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/drop-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "database": "sampledb",
++ "ignore_offline": false
++}' || RES=1
++cat res.txt
++echo
++expect='{"error_msg":"cannot find database '"'"'sampledb'"'"'"}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' get-accounts'
++curl --silent --show-error --location --output res.txt \
++ --request GET 'http://localhost:9020/get-accounts' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ=='
++cat res.txt
++echo
++expect='["sa"]'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' new-database for queries'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/new-database' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ==' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "dbname": "sampledb",
++ "time_precision": "s",
++ "buffer_size": 8192,
++ "duration_num": "1w",
++ "duration_log": "3d"
++}' || RES=1
++cat res.txt
++echo
++expect='"OK"'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' get-databases'
++curl --silent --show-error --location --output res.txt \
++ --request GET 'http://localhost:9020/get-databases' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic c2E6c2lyaQ=='
++cat res.txt
++echo
++expect='["sampledb"]'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' query data (nothing there)'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/query/sampledb' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic aXJpczpzaXJp' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "q": "select count() from '\''aggr'\''",
++ "t": "ms"
++}' || RES=1
++cat res.txt
++echo
++expect='{}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' insert data'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/insert/sampledb' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic aXJpczpzaXJp' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "aggr": [
++ [1578933215, 42],
++ [1578933223, 123]
++ ]
++}' || RES=1
++cat res.txt
++echo
++expect='{"success_msg":"Successfully inserted 2 point(s)."}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++echo ' query data'
++curl --silent --show-error --location --output res.txt \
++ --request POST 'http://localhost:9020/query/sampledb' \
++ --header 'Content-Type: application/json' \
++ --header 'Authorization: Basic aXJpczpzaXJp' \
++ --header 'Content-Type: text/plain' \
++ --data-raw '{
++ "q": "select count() from '\''aggr'\''",
++ "t": "ms"
++}' || RES=1
++cat res.txt
++echo
++expect='{"aggr":[[1578933223000,2]]}'
++if [ "$(cat res.txt)" != "$expect" ] ; then RES=1 ; echo "FAILED: expected $expect" ; fi
++
++exit $RES