1 ##########################################################################
2 # Copyright (c) 2017, ETH Zurich.
5 # This file is distributed under the terms in the attached LICENSE file.
6 # If you do not find this file, copies can be found by writing to:
7 # ETH Zurich D-INFK, Haldeneggsteig 4, CH-8092 Zurich. Attn: Systems Group.
8 ##########################################################################
12 from common import TestCommon, TimeoutError
13 from results import RowResults, PassFailResult
15 TEST_TIMEOUT = datetime.timedelta(minutes=8)
18 class DevifTests(TestCommon):
20 def __init__(self, options):
21 super(DevifTests, self).__init__(options)
23 def get_module_name(self):
26 def boot(self, *args):
27 super(DevifTests, self).boot(*args)
28 self.set_timeout(TEST_TIMEOUT)
30 def get_modules(self, build, machine):
31 self.machine = machine.name
32 modules = super(DevifTests, self).get_modules(build, machine)
33 modules.add_module("sfn5122f", ["auto", "function=0"])
34 modules.add_module("devif_idc", ["core=1"])
35 modules.add_module(self.get_module_name(), ["core=0", self.OP])
39 def is_finished(self, line):
40 return line.startswith("SUCCESS")
42 def process_data(self, testdir, rawiter):
47 return PassFailResult(passed)
50 class DevifNetTest(DevifTests):
52 name = "devif_net_test"
56 class DevifIdcTest(DevifTests):
58 name = "devif_idc_test"