blob: 69db51f7977222cd3b631ae285de67cb589eac73 (
plain) (
tree)
|
|
#! /bin/bash
#
# Do a full test sweep using the other helper scripts
#
all_confs=yes
do_update=no
testdir=`pwd`
# update RTEMS and all the add-ons
# TODO: Does it make sense to automate updating with git?
if [ ${do_update} = yes ] ; then
cd ${testdir}/rtems
# TODO: Replace with git pull
for addon in class-examples examples examples-v2 rtems-addon-packages \
network-demos ada-examples
do
if [ -d ${addon} ] ; then
cd ${testdir}/${addon}
# TODO: Replace with git pull
fi
done
fi
# Bootstrap the tree just to start with a known good place
cd ${testdir}/rtems
./bootstrap -c
start=`date`
./bootstrap
stop=`date`
echo "Bootstrap started at:" $start
echo "Bootstrap stopped at:" $stop
cd $testdir
rm -f log/*
# build all standard BSPs non-multilib
./bit_all_bsps
# build all of the multilibs
sh -x ./bit_all_multilib
# build the documentation
./bit_docs >log/docs.log
# build all configurations of a single BSP (powerpc/psim)
if [ X${all_confs} = Xno ] ; then
echo "**** skipping all configurations test. ****"
else
all_bsp=psim
all_target=powerpc
sh -x ./bit_all_confs ${all_target} ${all_bsp}
rm -rf build-${all_target}-${all_bsp}-rtems
fi
stop=`date`
echo "All started at:" $start
echo "All stopped at:" $stop
|