File: unittests

package info (click to toggle)
pygresql 1%3A6.1.0-2
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid, trixie
  • size: 1,944 kB
  • sloc: python: 15,052; ansic: 5,730; makefile: 16; sh: 10
file content (15 lines) | stat: -rwxr-xr-x 431 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
#!/bin/sh

set -efu

# copy tests to a directory where the "pg" sibling directory doesn't get in the way ("import pg" fails weirdly otherwise)
cp -a tests ${AUTOPKGTEST_TMP:=/tmp}
cd $AUTOPKGTEST_TMP

for py in $(py3versions -s); do
    for pg in $(/usr/share/postgresql-common/supported-versions); do
	echo "### PostgreSQL $pg, $py ###"
	pg_virtualenv -v $pg $py -m unittest discover -v
	echo "### End $pg, $py ###"
    done
done