113833Sjason@lowepower.com#!/bin/bash 213833Sjason@lowepower.com# 313833Sjason@lowepower.com# Copyright (c) 2018 The Regents of the University of California 413833Sjason@lowepower.com# All rights reserved 513833Sjason@lowepower.com# 613833Sjason@lowepower.com# The license below extends only to copyright in the software and shall 713833Sjason@lowepower.com# not be construed as granting a license to any other intellectual 813833Sjason@lowepower.com# property including but not limited to intellectual property relating 913833Sjason@lowepower.com# to a hardware implementation of the functionality of the software 1013833Sjason@lowepower.com# licensed hereunder. You may use the software subject to the license 1113833Sjason@lowepower.com# terms below provided that you ensure that this notice is replicated 1213833Sjason@lowepower.com# unmodified and in its entirety in all distributions of the software, 1313833Sjason@lowepower.com# modified or unmodified, in source code or in binary form. 1413833Sjason@lowepower.com# 1513833Sjason@lowepower.com# Redistribution and use in source and binary forms, with or without 1613833Sjason@lowepower.com# modification, are permitted provided that the following conditions are 1713833Sjason@lowepower.com# met: redistributions of source code must retain the above copyright 1813833Sjason@lowepower.com# notice, this list of conditions and the following disclaimer; 1913833Sjason@lowepower.com# redistributions in binary form must reproduce the above copyright 2013833Sjason@lowepower.com# notice, this list of conditions and the following disclaimer in the 2113833Sjason@lowepower.com# documentation and/or other materials provided with the distribution; 2213833Sjason@lowepower.com# neither the name of the copyright holders nor the names of its 2313833Sjason@lowepower.com# contributors may be used to endorse or promote products derived from 2413833Sjason@lowepower.com# this software without specific prior written permission. 2513833Sjason@lowepower.com# 2613833Sjason@lowepower.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 2713833Sjason@lowepower.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 2813833Sjason@lowepower.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 2913833Sjason@lowepower.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 3013833Sjason@lowepower.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 3113833Sjason@lowepower.com# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 3213833Sjason@lowepower.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 3313833Sjason@lowepower.com# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 3413833Sjason@lowepower.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 3513833Sjason@lowepower.com# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 3613833Sjason@lowepower.com# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 3713833Sjason@lowepower.com# 3813833Sjason@lowepower.com# Authors: Jason Lowe-Power 3913833Sjason@lowepower.com 4013833Sjason@lowepower.comset -e 4113833Sjason@lowepower.com 4213833Sjason@lowepower.com# Use ccache with the default directory for caching 4313833Sjason@lowepower.comexport PATH="/usr/lib/ccache:$PATH" 4413833Sjason@lowepower.com 4513833Sjason@lowepower.comcd git/jenkins-gem5-prod/tests 4613833Sjason@lowepower.com 4713833Sjason@lowepower.com# Build with 4 threads (i.e., pass -j4 to scons) 4813833Sjason@lowepower.com# Run 4 tests in parallel 4913833Sjason@lowepower.com./main.py run -j4 -t4 50