comparison test/testsamples.py @ 358:5ef1cb1bb54f

Fix nosetests
author Windel Bouwman
date Fri, 14 Mar 2014 15:17:49 +0100
parents c2ddc8a36f5e
children c05ab629976a
comparison
equal deleted inserted replaced
357:818be710e13d 358:5ef1cb1bb54f
2 from testemulation import runQemu 2 from testemulation import runQemu
3 from ppci.recipe import RecipeLoader 3 from ppci.recipe import RecipeLoader
4 from ppci.tasks import TaskRunner 4 from ppci.tasks import TaskRunner
5 5
6 6
7 class TestSamples: 7 class Samples:
8 def testPrint(self): 8 def testPrint(self):
9 snippet = """ 9 snippet = """
10 module testsample; 10 module testsample;
11 import io; 11 import io;
12 function void start() 12 function void start()
30 } 30 }
31 """ 31 """
32 self.do(snippet, "AAAAAAAAAA") 32 self.do(snippet, "AAAAAAAAAA")
33 33
34 34
35 class TestSamplesOnVexpress(unittest.TestCase, TestSamples): 35 class TestSamplesOnVexpress(unittest.TestCase, Samples):
36 def do(self, src, expected_output): 36 def do(self, src, expected_output):
37 runner = TaskRunner() 37 runner = TaskRunner()
38 recipe_loader = RecipeLoader(runner) 38 recipe_loader = RecipeLoader(runner)
39 return 39 return
40 # TODO: improve recipe loading?? 40 # TODO: improve recipe loading??