test.py revision 4107
15703SN/A# Copyright (c) 2006-2007 The Regents of The University of Michigan
25703SN/A# All rights reserved.
35703SN/A#
49988Snilay@cs.wisc.edu# Redistribution and use in source and binary forms, with or without
58825Snilay@cs.wisc.edu# modification, are permitted provided that the following conditions are
69988Snilay@cs.wisc.edu# met: redistributions of source code must retain the above copyright
77935SN/A# notice, this list of conditions and the following disclaimer;
87935SN/A# redistributions in binary form must reproduce the above copyright
97935SN/A# notice, this list of conditions and the following disclaimer in the
105703SN/A# documentation and/or other materials provided with the distribution;
115703SN/A# neither the name of the copyright holders nor the names of its
125703SN/A# contributors may be used to endorse or promote products derived from
1310315Snilay@cs.wisc.edu# this software without specific prior written permission.
145703SN/A#
155703SN/A# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS
169885Sstever@gmail.com# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
179885Sstever@gmail.com# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR
1811570SCurtis.Dunham@arm.com# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
1911570SCurtis.Dunham@arm.com# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
209988Snilay@cs.wisc.edu# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
2111570SCurtis.Dunham@arm.com# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
225703SN/A# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
2311570SCurtis.Dunham@arm.com# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
2410315Snilay@cs.wisc.edu# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
257670SN/A# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
2610242Ssteve.reinhardt@amd.com#
275703SN/A# Authors: Korey Sewell
2811680SCurtis.Dunham@arm.com
298464SN/Am5.AddToPath('../configs/common')
3010798Ssteve.reinhardt@amd.comfrom cpu2000 import twolf
3111245Sandreas.sandberg@arm.comimport os
328721SN/A
3311570SCurtis.Dunham@arm.comworkload = twolf('alpha', 'tru64', 'smred')
3411570SCurtis.Dunham@arm.comroot.system.cpu.workload = workload.makeLiveProcess()
3511570SCurtis.Dunham@arm.comcwd = root.system.cpu.workload.cwd
3611570SCurtis.Dunham@arm.com
3711570SCurtis.Dunham@arm.com#Remove two files who's presence or absence affects execution
3811570SCurtis.Dunham@arm.comsav_file = os.path.join(cwd, workload.input_set + '.sav')
395703SN/Asv2_file = os.path.join(cwd, workload.input_set + '.sv2')
405703SN/Aos.unlink(sav_file)
415703SN/Aos.unlink(sv2_file)
4211570SCurtis.Dunham@arm.com