1 ##########################################################################
2 # Copyright (c) 2009, 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, Universitaetstrasse 6, CH-8092 Zurich. Attn: Systems Group.
8 ##########################################################################
12 from common import TestCommon
13 from results import PassFailResult
16 class PmapLookupTest(TestCommon):
17 '''Test the lookup call of pmap'''
20 def get_modules(self, build, machine):
21 modules = super(PmapLookupTest, self).get_modules(build, machine)
22 modules.add_module("pmaplookuptest")
25 def get_finish_string(self):
26 return "pmaplookuptest passed successfully!"
28 def process_data(self, testdir, rawiter):
29 # the test passed iff the last line is the finish string
33 passed = lastline.startswith(self.get_finish_string())
34 return PassFailResult(passed)