File: installcheck

package info (click to toggle)
mobilitydb 1.2.0-2
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 70,300 kB
  • sloc: ansic: 151,249; sql: 72,957; xml: 20,918; yacc: 447; makefile: 188; lex: 151; sh: 141
file content (17 lines) | stat: -rwxr-xr-x 447 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
#!/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 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