File: run-test

package info (click to toggle)
check-postgres 2.22.0-2%2Bdeb9u1
  • links: PTS, VCS
  • area: main
  • in suites: stretch
  • size: 996 kB
  • sloc: perl: 10,308; makefile: 13; sh: 13
file content (18 lines) | stat: -rwxr-xr-x 359 bytes parent folder | download | duplicates (2)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh

set -eux

export LC_ALL=C
export SKIP_NETWORK_TESTS=1

cleanup () {
	rm -rf test_database_check_postgres* /tmp/cptesting_socket*
}
trap cleanup 0 2 3 15

for version in $(/usr/share/postgresql-common/supported-versions); do
	echo "#### running make test for $version ####"
	cleanup
	export PGBINDIR=/usr/lib/postgresql/$version/bin
	make test
done