Commit dc22a254 authored by Vitaly Lipatov's avatar Vitaly Lipatov

dmake: add -t option for test build servers

parent ceaa592e
......@@ -4,7 +4,9 @@
. `dirname $0`/../share/eterbuild/functions/common
if [ "$1" = "-h" ] || [ "$1" = "--help" ] ; then
echo "dmake - make with distcc using (distributed build)"
echo "dmake [-t] [-p] - make with distcc using (distributed build)"
echo " -p run in plain mode (without pump)"
echo " -t run test compiler via ssh for build hosts"
exit 0
fi
......@@ -13,6 +15,24 @@ if [ "$1" = "-p" ] ; then
PLAIN_DISTCC=distcc
fi
get_quoted_list()
{
local LIST=
for i in $@ ; do
LIST="$LIST$i,"
done
echo "$LIST"
}
if [ "$1" = "-t" ] ; then
shift
PDSH=$(which pdsh 2>/dev/null)
[ -n "$PDSH" ] || fatal "Install pdsh package for test build cloud"
docmd $PDSH -w$(get_quoted_list $DISTCC_64_HOSTS $DISTCC_32_HOSTS) "g++ -v 2>&1 | tail -n1"
exit
fi
extra_to_pump_mode()
{
local LIST=
......@@ -43,7 +63,7 @@ if [ "$DEFAULTARCH" = "x86_64" ] ; then
export DISTCC_HOSTS="$(extra_to_pump_mode $DISTCC_64_HOSTS)"
DISTCC_THREADS=$DISTCC_64_THREADS
else
export DISTCC_HOSTS="$(extra_to_pump_mode $DISTCC_32_HOSTS $DISTCC_64_HOSTS)"
export DISTCC_HOSTS="$(extra_to_pump_mode $DISTCC_64_HOSTS $DISTCC_32_HOSTS)"
DISTCC_THREADS=$(($DISTCC_32_THREADS + $DISTCC_64_THREADS))
DISTCC="$DISTCC gcc -m32"
DISTCXX="$DISTCXX g++ -m32"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment