1########################################################################## 2# Copyright (c) 2010, ETH Zurich. 3# All rights reserved. 4# 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########################################################################## 9 10import tests, barrelfish 11from common import TestCommon 12from results import PassFailResult 13 14@tests.add_test 15class MonitorBootTest(TestCommon): 16 '''Very simple test of ability to start the monitor''' 17 name = "monitorboottest" 18 19 def get_finish_string(self): 20 return "monitor: invoked" 21 22 def process_data(self, testdir, rawiter): 23 passed = False 24 for line in rawiter: 25 if line.startswith(self.get_finish_string()): 26 passed = True 27 break 28 return PassFailResult(passed) 29