relativepath=`dirname $0`
absolutetestspath=`cd $relativepath/..; pwd`
cd $absolutetestspath
-
-echo "Read config from tests/config/default"
-. config/default
-if [ -f config/`hostname` ]
-then
- echo "Read config from config/`hostname`"
- . config/`hostname`
-fi
-BUILDERDIR=${BUILDERDIR:-$HOME/builder/}
+BUILDERDIR=$(./scripts/builder_get_config.sh BUILDERDIR)
# Prepare and/or update cowbuilder caches
-DISTROLIST=${DISTROLIST:-"squeeze wheezy"}
+DISTROLIST=${DISTROLIST:-"squeeze wheezy jessie"}
[ -d $BUILDERDIR/config ] || mkdir $BUILDERDIR/config
EOF
if [ -d $BUILDERDIR/cow/base-$DIST-amd64.cow ] ; then
- sudo cowbuilder --update --configfile $COWBUILDERCONFIG --debootstrapopts --variant=buildd
+ sudo cowbuilder --update --configfile $COWBUILDERCONFIG
else
- sudo cowbuilder --create --distribution $DIST --configfile $COWBUILDERCONFIG --mirror $DEBMIRROR --debootstrapopts --variant=buildd
+ sudo cowbuilder --create --distribution $DIST --configfile $COWBUILDERCONFIG --mirror $DEBMIRROR
fi
done