File: test.sh

package info (click to toggle)
pgaudit-17 17.1-1
  • links: PTS, VCS
  • area: main
  • in suites: trixie
  • size: 332 kB
  • sloc: ansic: 1,358; sql: 1,174; makefile: 25; sh: 6
file content (14 lines) | stat: -rwxr-xr-x 338 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/bin/bash
set -e

# Clean and build pgaudit
make -C /pgaudit clean all USE_PGXS=1

# Install pgaudit so postgres will start with shared_preload_libraries set
sudo bash -c "PATH=${PATH?} make -C /pgaudit install USE_PGXS=1"

# Start postgres
${PGBIN}/pg_ctl -w start -D ${PGDATA}

# Test pgaudit
make -C /pgaudit installcheck USE_PGXS=1