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}
|