File: installcheck

package info (click to toggle)
pgagent 4.2.3-4
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 476 kB
  • sloc: cpp: 1,913; sql: 1,739; xml: 100; ansic: 58; makefile: 31; sh: 18
file content (25 lines) | stat: -rwxr-xr-x 544 bytes parent folder | download | duplicates (4)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
#!/bin/bash

set -e

VERSIONS=$(pg_buildext supported-versions)

cd test

trap "cat pgagent.out" ERR

for v in $VERSIONS; do
	if ! [ -f /usr/share/postgresql/$v/extension/pgagent.control ]; then
		echo "/usr/share/postgresql/$v/extension/pgagent.control missing, cannot test PostgreSQL $v"
		continue
	fi
	if ! [ -f /usr/lib/postgresql/$v/bin/postgres ]; then
		echo "/usr/lib/postgresql/$v/bin/postgres missing, cannot test PostgreSQL $v"
		continue
	fi
	rm -f pgagent.out
	pg_buildext installcheck-$v
	cat pgagent.out
done

rm -f pgagent.out