1
0

Add a "--master" flag to the regression script

I want to be able to test the master of riscv-gnu-toolchain against the current
RTL as part of the buildbot.  This flag takes a list of repositories (by their
submodule path) and updates those to the current master, which facilitates that
check.
This commit is contained in:
Palmer Dabbelt 2015-10-29 14:11:26 -07:00
parent eb62ff6a50
commit 3d2a4ffdd6

View File

@ -9,11 +9,29 @@ set -ex
echo "Starting Rocket-chip regression test"
if [ $# -lt 1 ]
then
echo "Usage: ./regression.sh config [torture_config] [torture_output_dir]"
echo "Usage: ./regression.sh [options] config [torture_config] [torture_output_dir]"
echo " --master: A comma-seperated list of repositories to use the master of"
exit
fi
git submodule update --init --recursive riscv-tools
if [[ "$1" == "--master" ]]
then
echo $2 | sed 's/,/\n/g' | while read repo
do
(
cd $repo
git fetch
git checkout master
git log --oneline | head -n5
)
done
shift
shift
fi
export RISCV="$(pwd)/install"; export PATH=$PATH:$RISCV/bin
cd riscv-tools; ./build.sh; cd ..
git submodule update --init