1643ca7872b450ea4efacab6188849e5aac2ba161Steve Block#!/usr/bin/env python 25e2bc6953fe6923165b8a5d7679939693a1d58d6Steve Block# Copyright (C) 2010 Google Inc. All rights reserved. 3f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch# Copyright (C) 2010 Gabor Rapcsanyi (rgabor@inf.u-szeged.hu), University of Szeged 4231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# 5231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# Redistribution and use in source and binary forms, with or without 6231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# modification, are permitted provided that the following conditions are 7231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# met: 8d0825bca7fe65beaee391d30da42e937db621564Steve Block# 9231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# * Redistributions of source code must retain the above copyright 10231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# notice, this list of conditions and the following disclaimer. 11231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# * Redistributions in binary form must reproduce the above 12231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# copyright notice, this list of conditions and the following disclaimer 13231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# in the documentation and/or other materials provided with the 14231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# distribution. 158a0914b749bbe7da7768e07a7db5c6d4bb09472bSteve Block# * Neither the name of Google Inc. nor the names of its 16231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# contributors may be used to endorse or promote products derived from 17231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# this software without specific prior written permission. 18d0825bca7fe65beaee391d30da42e937db621564Steve Block# 19231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS 20231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT 21231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR 22231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT 23231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, 24231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT 25231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, 26231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY 27231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT 28231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE 29231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block# OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. 30231d4e3152a9c27a73b6ac7badbe6be673aa3ddfSteve Block 31d0825bca7fe65beaee391d30da42e937db621564Steve Block 32f05b935882198ccf7d81675736e3aeb089c5113aBen Murdochclass TestInput: 33f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch """Groups information about a test for easy passing of data.""" 34dcc8cf2e65d1aa555cce12431a16547e66b469eeSteve Block 35f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch def __init__(self, filename, timeout): 36f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch """Holds the input parameters for a test. 37f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch Args: 38f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch filename: Full path to the test. 39f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch timeout: Timeout in msecs the driver should use while running the test 40f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch """ 41f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch # FIXME: filename should really be test_name as a relative path. 42f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch self.filename = filename 43f05b935882198ccf7d81675736e3aeb089c5113aBen Murdoch self.timeout = timeout 44