File: installcheck

package info (click to toggle)
h3-pg 4.2.3-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 1,196 kB
  • sloc: sql: 4,469; ansic: 3,497; python: 322; sh: 56; makefile: 18
file content (23 lines) | stat: -rwxr-xr-x 582 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
#!/bin/sh

set -eux

# re-exec as postgres when running as root
if [ "$(id -un)" = "root" ]; then
    exec su -c "$0" postgres
fi

# put temporary build trees into /tmp
trap "rm -rf /tmp/test-*/" EXIT

for v in $(pg_buildext installed-versions); do
    echo "### PostgreSQL $v test ###"

    cmake -B /tmp/test-$v -DPostgreSQL_CONFIG=/usr/lib/postgresql/$v/bin/pg_config
    make -C /tmp/test-$v test || EXIT=$?
    head -n1000 /tmp/test-$v/Testing/Temporary/LastTest.log /tmp/test-$v/h3*/test/regression.diffs 2>/dev/null || :

    echo "### End $v test ###"
done

exit ${EXIT:-0}