Created
January 26, 2017 15:06
-
-
Save praiskup/c787e08296a11938f4d73f66cd701292 to your computer and use it in GitHub Desktop.
Parallell run of tests in sclorg/postgresql-container
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#! /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