113852Sroza@ucdavis.edu# Copyright (c) 2019 The Regents of the University of California. 213852Sroza@ucdavis.edu# All rights reserved. 313852Sroza@ucdavis.edu# 413852Sroza@ucdavis.edu# Redistribution and use in source and binary forms, with or without 513852Sroza@ucdavis.edu# modification, are permitted provided that the following conditions are 613852Sroza@ucdavis.edu# met: redistributions of source code must retain the above copyright 713852Sroza@ucdavis.edu# notice, this list of conditions and the following disclaimer; 813852Sroza@ucdavis.edu# redistributions in binary form must reproduce the above copyright 913852Sroza@ucdavis.edu# notice, this list of conditions and the following disclaimer in the 1013852Sroza@ucdavis.edu# documentation and/or other materials provided with the distribution; 1113852Sroza@ucdavis.edu# neither the name of the copyright holders nor the names of its 1213852Sroza@ucdavis.edu# contributors may be used to endorse or promote products derived from 1313852Sroza@ucdavis.edu# this software without specific prior written permission. 1413852Sroza@ucdavis.edu# 1513852Sroza@ucdavis.edu# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 1613852Sroza@ucdavis.edu# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 1713852Sroza@ucdavis.edu# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 1813852Sroza@ucdavis.edu# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 1913852Sroza@ucdavis.edu# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 2013852Sroza@ucdavis.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 2113852Sroza@ucdavis.edu# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 2213852Sroza@ucdavis.edu# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 2313852Sroza@ucdavis.edu# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 2413852Sroza@ucdavis.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 2513852Sroza@ucdavis.edu# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 2613852Sroza@ucdavis.edu# 2713852Sroza@ucdavis.edu# Authors: Jason Lowe-Power 2813852Sroza@ucdavis.edu 2913852Sroza@ucdavis.edufrom testlib import * 3013852Sroza@ucdavis.edu 3113852Sroza@ucdavis.edu# Note: This isn't going to work because MSI caches won't be built. Need to 3213852Sroza@ucdavis.edu# think more about this. Maybe we should have another parameter to 3313852Sroza@ucdavis.edu# gem5_verify_config... 3413852Sroza@ucdavis.edu 3513852Sroza@ucdavis.educonfig_path = joinpath(config.base_dir, 'configs', 'learning_gem5', 'part3') 3613852Sroza@ucdavis.eduref_path = joinpath(getcwd(), 'ref') 3713852Sroza@ucdavis.edu 3813852Sroza@ucdavis.edugem5_verify_config( 3913852Sroza@ucdavis.edu name='simple_ruby_test', 4013852Sroza@ucdavis.edu verifiers = (verifier.MatchStdoutNoPerf(joinpath(ref_path, 'threads')),), 4113852Sroza@ucdavis.edu config=joinpath(config_path, 'simple_ruby.py'), 4213852Sroza@ucdavis.edu config_args = [], 4313852Sroza@ucdavis.edu protocol = 'MSI', 4413852Sroza@ucdavis.edu valid_isas=("X86",), # Currently only x86 has the threads test 4513852Sroza@ucdavis.edu) 4613852Sroza@ucdavis.edu 4713852Sroza@ucdavis.edugem5_verify_config( 4813852Sroza@ucdavis.edu name='ruby_test_test', 4913852Sroza@ucdavis.edu verifiers = (verifier.MatchStdout(joinpath(ref_path, 'test')),), 5013852Sroza@ucdavis.edu config=joinpath(config_path, 'ruby_test.py'), 5113852Sroza@ucdavis.edu config_args = [], 5213852Sroza@ucdavis.edu protocol = 'MSI', 5313852Sroza@ucdavis.edu valid_isas=("X86",), # Currently only x86 has the threads test 5413852Sroza@ucdavis.edu) 55