Mercurial > lcfOS
comparison test/testzcc.py @ 315:084cccaa5deb
Added console and screen
author | Windel Bouwman |
---|---|
date | Sat, 21 Dec 2013 10:03:01 +0100 |
parents | 04cf4d26a3bc |
children | 8c569fbe60e4 |
comparison
equal
deleted
inserted
replaced
314:38f5f298ce0e | 315:084cccaa5deb |
---|---|
28 def testDumpIr(self): | 28 def testDumpIr(self): |
29 basedir = os.path.join('..', 'examples', 'c3', 'comments.c3') | 29 basedir = os.path.join('..', 'examples', 'c3', 'comments.c3') |
30 arg_list = [basedir] | 30 arg_list = [basedir] |
31 arg_list.append('--target') | 31 arg_list.append('--target') |
32 arg_list.append('arm') | 32 arg_list.append('arm') |
33 arg_list.append('--dumpir') | |
34 args = zcc.parser.parse_args(arg_list) | 33 args = zcc.parser.parse_args(arg_list) |
35 self.assertEqual(0, zcc.main(args)) | 34 self.assertEqual(0, zcc.main(args)) |
36 | 35 |
37 def testKernel(self): | 36 def testKernel(self): |
38 # Build kernel using zcc: | 37 # Build kernel using zcc: |
53 sys.path.pop(-1) | 52 sys.path.pop(-1) |
54 | 53 |
55 def testBurn2(self): | 54 def testBurn2(self): |
56 self.do(['burn2.c3'], ['stm32f4xx.c3']) | 55 self.do(['burn2.c3'], ['stm32f4xx.c3']) |
57 | 56 |
58 def testComments(self): | 57 def testCommentsExample(self): |
59 self.do(['comments.c3']) | 58 self.do(['comments.c3']) |
60 | 59 |
61 def testCast(self): | 60 def testCast(self): |
62 self.do(['cast.c3']) | 61 self.do(['cast.c3']) |
63 | 62 |