test.py revision 4107
1955SN/A# Copyright (c) 2006-2007 The Regents of The University of Michigan
2955SN/A# All rights reserved.
311408Sandreas.sandberg@arm.com#
49812Sandreas.hansson@arm.com# Redistribution and use in source and binary forms, with or without
59812Sandreas.hansson@arm.com# modification, are permitted provided that the following conditions are
69812Sandreas.hansson@arm.com# met: redistributions of source code must retain the above copyright
79812Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer;
89812Sandreas.hansson@arm.com# redistributions in binary form must reproduce the above copyright
99812Sandreas.hansson@arm.com# notice, this list of conditions and the following disclaimer in the
109812Sandreas.hansson@arm.com# documentation and/or other materials provided with the distribution;
119812Sandreas.hansson@arm.com# neither the name of the copyright holders nor the names of its
129812Sandreas.hansson@arm.com# contributors may be used to endorse or promote products derived from
139812Sandreas.hansson@arm.com# this software without specific prior written permission.
149812Sandreas.hansson@arm.com#
157816Ssteve.reinhardt@amd.com# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
165871Snate@binkert.org# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
171762SN/A# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
18955SN/A# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
19955SN/A# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
20955SN/A# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
21955SN/A# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
22955SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
23955SN/A# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
24955SN/A# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
25955SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
26955SN/A#
27955SN/A# Authors: Korey Sewell
28955SN/A
29955SN/Am5.AddToPath('../configs/common')
30955SN/Afrom cpu2000 import twolf
31955SN/Aimport os
32955SN/A
33955SN/Aworkload = twolf('alpha', 'tru64', 'smred')
34955SN/Aroot.system.cpu.workload = workload.makeLiveProcess()
35955SN/Acwd = root.system.cpu.workload.cwd
36955SN/A
37955SN/A#Remove two files who's presence or absence affects execution
38955SN/Asav_file = os.path.join(cwd, workload.input_set + '.sav')
39955SN/Asv2_file = os.path.join(cwd, workload.input_set + '.sv2')
40955SN/Aos.unlink(sav_file)
41955SN/Aos.unlink(sv2_file)
422665Ssaidi@eecs.umich.edu