From 6c3c000ee821e37b0232afbb8c5733c573892ad2 Mon Sep 17 00:00:00 2001 From: Sergey Mironov Date: Fri, 15 Aug 2014 07:11:31 +0000 Subject: Add tests/dbupload2.* files tests/dbupload2.sh is a shell script which run the test scenario On my machine the executable segfaults after curl request --- tests/dbupload2.sh | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100755 tests/dbupload2.sh (limited to 'tests/dbupload2.sh') diff --git a/tests/dbupload2.sh b/tests/dbupload2.sh new file mode 100755 index 00000000..cecf1960 --- /dev/null +++ b/tests/dbupload2.sh @@ -0,0 +1,17 @@ +#!/bin/sh + +set -e + +cd `dirname $0` + +urweb -dbms sqlite dbupload2 + +rm -rf dbupload2.db || true +sqlite3 dbupload2.db < dbupload2.sql + +./dbupload2.exe -p 8083 & +sleep 1 + +touch /tmp/empty +curl --verbose -F"operation=upload" -F"filename=@/tmp/empty" http://localhost:8083/Blabla/bla + -- cgit v1.2.3