Skip to content

Instantly share code, notes, and snippets.

@praiskup
Created January 26, 2017 15:06
Show Gist options
  • Save praiskup/c787e08296a11938f4d73f66cd701292 to your computer and use it in GitHub Desktop.
Save praiskup/c787e08296a11938f4d73f66cd701292 to your computer and use it in GitHub Desktop.
Parallell run of tests in sclorg/postgresql-container
#! /bin/sh
# GPLv3+
images='
centos/postgresql-95-centos7:9.5
centos/postgresql-94-centos7:9.4
'
wait_for=
for spec in $images
do
image=${spec%%:*}
version=${spec##*:}
make runtests SKIP_SQUASH=1 IMAGE_NAME=$image VERSION=$version &
wait_for="$wait_for $!"
done
exit_ok=:
for pid in $wait_for
do
wait -n $pid || exit_ok=false
done
$exit_ok
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment