1########################################################################## 2# Copyright (c) 2009, 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 11from tests import Test 12from results import PassFailResult 13 14@tests.add_test 15class BuildAllTest(Test): 16 '''Simple test that everything in the default targets builds cleanly''' 17 name = "buildall" 18 19 def setup(self, build, machine, testdir): 20 target = machine.get_buildall_target() 21 build.build([target]) 22 23 def run(self, build, machine, testdir): 24 return [] 25 26 def cleanup(self, machine): 27 pass 28 29 def process_data(self, testdir, raw_iter): 30 return PassFailResult(True) 31 32