File: installcheck

package info (click to toggle)
postgresql-filedump 17.4-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 420 kB
  • sloc: ansic: 3,554; sql: 152; perl: 118; sh: 24; makefile: 23
file content (18 lines) | stat: -rwxr-xr-x 388 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

# remove test artifacts before possibly switching user (but keep pg_filedump)
rm -rf results tmp_check *.heap [1-9]*[0-9]

# switch to postgres when invoked as root
if [ "$(id -u)" = "0" ]; then
  mkdir -p results
  chmod 777 . results
  exec su -c $0 postgres
fi

if ! pg_virtualenv make installcheck; then
  head -n1000 regression.diffs tmp_check/log/*
  exit 1
fi