|
|
|
@ -2,16 +2,18 @@
|
|
|
|
|
opt_parallel=
|
|
|
|
|
opt_version=
|
|
|
|
|
opt_mode=both
|
|
|
|
|
while getopts 'pv:m:?h' c
|
|
|
|
|
while getopts 'pv:m:r?h' c
|
|
|
|
|
do
|
|
|
|
|
case $c in
|
|
|
|
|
p) opt_parallel=1 ;;
|
|
|
|
|
v) opt_version=$OPTARG ;;
|
|
|
|
|
m) opt_mode=$OPTARG ;;
|
|
|
|
|
r) opt_report=1 ;;
|
|
|
|
|
?|h) printf "Usage: %s [-p] [-v mono-ver] [-m sonarr|complete]\n" $0
|
|
|
|
|
printf " -p run parallel\n"
|
|
|
|
|
printf " -v run specified mono version\n"
|
|
|
|
|
printf " -m run only mono-'complete' or 'sonarr' package variants\n"
|
|
|
|
|
printf " -r only report\n"
|
|
|
|
|
exit 2
|
|
|
|
|
esac
|
|
|
|
|
done
|
|
|
|
@ -20,17 +22,22 @@ done
|
|
|
|
|
# make sure that the docker host has enough memory to handle about ~300 MB per container, so 2-3 GB total
|
|
|
|
|
# excess goes to the swap and will slow down the entire system
|
|
|
|
|
|
|
|
|
|
# Preferred versions
|
|
|
|
|
MONO_VERSIONS="6.8 6.6 6.4 6.0 5.20 5.18"
|
|
|
|
|
MONO_VERSIONS=""
|
|
|
|
|
|
|
|
|
|
# Future versions
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 6.10=preview-xenial"
|
|
|
|
|
|
|
|
|
|
# Semi-Supported versions
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 6.8 6.6 6.4 6.0"
|
|
|
|
|
|
|
|
|
|
# Supported versions
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 5.16 5.14 5.12 5.10 5.8 5.4"
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 5.20 5.18"
|
|
|
|
|
|
|
|
|
|
# Legacy unsupported versions (but appear to work)
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 5.16 5.14 5.12"
|
|
|
|
|
|
|
|
|
|
# Legacy unsupported versions
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 5.0"
|
|
|
|
|
MONO_VERSIONS="$MONO_VERSIONS 5.10 5.8 5.4 5.0"
|
|
|
|
|
#MONO_VERSIONS="$MONO_VERSIONS 4.8=stable-wheezy/snapshots/4.8"
|
|
|
|
|
|
|
|
|
|
if [ "$opt_version" != "" ]; then
|
|
|
|
@ -86,23 +93,29 @@ runOne() {
|
|
|
|
|
echo "Finished Test Docker for mono $MONO_VERSION"
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
if [ "$opt_parallel" == "1" ]; then
|
|
|
|
|
if [ "$opt_report" != "1" ]; then
|
|
|
|
|
|
|
|
|
|
if [ "$opt_parallel" == "1" ]; then
|
|
|
|
|
for MONO_VERSION_PAIR in $MONO_VERSIONS; do
|
|
|
|
|
prepOne "$MONO_VERSION_PAIR"
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for MONO_VERSION_PAIR in $MONO_VERSIONS; do
|
|
|
|
|
prepOne "$MONO_VERSION_PAIR"
|
|
|
|
|
if [ "$opt_parallel" == "1" ]; then
|
|
|
|
|
runOne "$MONO_VERSION_PAIR" &
|
|
|
|
|
else
|
|
|
|
|
prepOne "$MONO_VERSION_PAIR"
|
|
|
|
|
runOne "$MONO_VERSION_PAIR"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
for MONO_VERSION_PAIR in $MONO_VERSIONS; do
|
|
|
|
|
if [ "$opt_parallel" == "1" ]; then
|
|
|
|
|
runOne "$MONO_VERSION_PAIR" &
|
|
|
|
|
else
|
|
|
|
|
prepOne "$MONO_VERSION_PAIR"
|
|
|
|
|
runOne "$MONO_VERSION_PAIR"
|
|
|
|
|
echo "Waiting for all runs to finish"
|
|
|
|
|
wait
|
|
|
|
|
echo "Finished all runs"
|
|
|
|
|
fi
|
|
|
|
|
done
|
|
|
|
|
|
|
|
|
|
if [ "$opt_parallel" == "1" ]; then
|
|
|
|
|
echo "Waiting for all runs to finish"
|
|
|
|
|
wait
|
|
|
|
|
echo "Finished all runs"
|
|
|
|
|
fi
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
grep "<test-run" ../../_tests_results/**/*.xml | sed -r 's/.*?mono-([0-9.]+(-s)?).*?_([IU]).*?\.xml.*?failed="([0-9]*)".*/\1\t\3:\tfailed \4/g' | sort -V -t.
|