Run regression tests via autopkgtest

This commit is contained in:
Christoph Berg 2017-11-12 21:05:48 +01:00
parent 78df9c314a
commit 5c4a64197d
3 changed files with 29 additions and 0 deletions

7
debian/tests/control vendored Normal file
View File

@ -0,0 +1,7 @@
Depends: @, make, postgresql-10-ip4r
Tests: regress
Restrictions: allow-stderr
Depends: @, make, default-mysql-server
Tests: local
Restrictions: allow-stderr, needs-root

12
debian/tests/local vendored Executable file
View File

@ -0,0 +1,12 @@
#!/bin/sh
set -ex
trap "service mysql stop" 0 2 3 15
service mysql start
cd test
pg_virtualenv -i '--auth=trust' << EOF
set -ex
make -j1 local PGLOADER=/usr/bin/pgloader PGUSER=postgres DBPATH=sqlite/sqlite.db
EOF

10
debian/tests/regress vendored Executable file
View File

@ -0,0 +1,10 @@
#!/bin/sh
set -ex
cd test
pg_virtualenv << EOF
set -ex
make -j1 prepare PGLOADER=/usr/bin/pgloader PGUSER=$(whoami)
make -j1 regress PGLOADER=/usr/bin/pgloader PGUSER=$(whoami)
EOF