File: installcheck

package info (click to toggle)
pgpointcloud 1.2.5-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 4,892 kB
  • sloc: sql: 40,767; ansic: 11,045; xml: 935; makefile: 297; cpp: 282; perl: 248; python: 178; sh: 92
file content (25 lines) | stat: -rwxr-xr-x 828 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/sh

set -eux

# we don't want to run configure, fake enough of it so PGXS works
test -f config.mk || ln -s config.mk.in config.mk
test -f pgsql/Makefile || ln -s Makefile.in pgsql/Makefile

DEB_HOST_ARCH_ENDIAN=$(dpkg-architecture -q"DEB_HOST_ARCH_ENDIAN")
DEB_HOST_ARCH=$(dpkg-architecture -q"DEB_HOST_ARCH")

for v in $(pg_buildext installed-versions); do
  PG_CONFIG=/usr/lib/postgresql/$v/bin/pg_config
  if ! pg_virtualenv -v $v \
     make installcheck \
       PG_CONFIG=$PG_CONFIG \
       PGXS=$($PG_CONFIG --pgxs) \
       PGSQL_MAJOR_VERSION=${v%.*} \
       LAZPERF_STATUS=disabled; then
     echo "*** pgsql/regression.diffs ***"
     cat pgsql/regression.diffs
     # ignore problems on big endian and armhf
     if [ $DEB_HOST_ARCH_ENDIAN != big ] && [ $DEB_HOST_ARCH != armhf ]; then exit 1; fi
  fi
done