diff --git a/tools/quartus/run_regression_synth b/tools/quartus/run_regression_synth new file mode 100755 index 0000000000000000000000000000000000000000..90f9656e33c3ec61fe365b6b5118ea5353c8b748 --- /dev/null +++ b/tools/quartus/run_regression_synth @@ -0,0 +1,69 @@ +#!/bin/bash +# -------------------------------------------------------------------------- # +# Copyright (C) 2016 +# ASTRON (Netherlands Institute for Radio Astronomy) <http://www.astron.nl/> +# JIVE (Joint Institute for VLBI in Europe) <http://www.jive.nl/> +# P.O.Box 2, 7990 AA Dwingeloo, The Netherlands +# +# This program is free software: you can redistribute it and/or modify +# it under the terms of the GNU General Public License as published by +# the Free Software Foundation, either version 3 of the License, or +# (at your option) any later version. +# +# This program is distributed in the hope that it will be useful, +# but WITHOUT ANY WARRANTY; without even the implied warranty of +# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the +# GNU General Public License for more details. +# +# You should have received a copy of the GNU General Public License +# along with this program. If not, see <http://www.gnu.org/licenses/>. +# -------------------------------------------------------------------------- # +# + +# Purpose: +# . Synthesize a list of designs +# Description: +# . TODO: run this as user 'regtest'; completeley separate. +# . TODO: Create cronjob; run every friday evening. SVN update this script in +# the cronjob before executing! +# . TODO: Auto email the report. +# Usage: +# . ./run_regression_synth + +############################################################################### +# Source generic.sh for functions such as unb_info +############################################################################### +. ${UNB}/Firmware/software/build/generic.sh + +############################################################################### +# Override the SVN dir temporariliy; we don't want anything done to the real +# SVN directory. +############################################################################### +SVN_DIR=${HOME}/svn_run_regression_synth +export SVN=${SVN_DIR} + +# Delete any existing old SVN tree in the /tmp dir +if [ -d "${svn_dir}" ]; then + unb_info $0 "Deleting existing SVN tree in ${SVN_DIR}" +# unb_exec $0 rm -rf ${SVN_DIR} +fi + +############################################################################### +# Check out SVN +############################################################################### +unb_info $0 "Checking out SVN to ${SVN_DIR}" +#unb_exec $0 svn checkout https://svn.astron.nl/UniBoard_FP7/ ${SVN_DIR} + +############################################################################### +# Check out SVN +############################################################################### +unb_info $0 "Generating all IP" +unb_exec $0 cd ${SVN}/RadioHDL/trunk/libraries/technology/ip_stratixiv +#$unb_exec $0 sh generate-all-ip.sh + +############################################################################### +# Run quartus_config.py +############################################################################### +unb_info $0 "Creating Quartus project build directories" +unb_exec $0 python ${SVN}/RadioHDL/trunk/tools/oneclick/base/quartus_config.py +