File: installcheck

package info (click to toggle)
mobilitydb 1.3.0~alpha-3
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 118,528 kB
  • sloc: ansic: 166,361; sql: 99,983; xml: 22,860; yacc: 447; makefile: 200; lex: 151; sh: 142
file content (18 lines) | stat: -rwxr-xr-x 467 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/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

export LANG=C.UTF-8
export PGOPTIONS="-c session_preload_libraries=postgis-3"

pg_buildext run_installed /usr/bin/cmake -B /tmp/test-%v
# exclude 'build' test which rebuilds the extension
pg_buildext run_installed /usr/bin/make ARGS="-E build" -C /tmp/test-%v test