comparison tests/dbupload2.sh @ 2053:229a299d739d

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
author Sergey Mironov <grrwlf@gmail.com>
date Fri, 15 Aug 2014 07:11:31 +0000
parents
children
comparison
equal deleted inserted replaced
2052:15ecf697542b 2053:229a299d739d
1 #!/bin/sh
2
3 set -e
4
5 cd `dirname $0`
6
7 urweb -dbms sqlite dbupload2
8
9 rm -rf dbupload2.db || true
10 sqlite3 dbupload2.db < dbupload2.sql
11
12 ./dbupload2.exe -p 8083 &
13 sleep 1
14
15 touch /tmp/empty
16 curl --verbose -F"operation=upload" -F"filename=@/tmp/empty" http://localhost:8083/Blabla/bla
17