Mercurial > lcfOS
view python/testzcc.py @ 244:58155c7c4a8e
Add hexutil
author | Windel Bouwman |
---|---|
date | Wed, 24 Jul 2013 19:47:13 +0200 |
parents | 81752b0f85a5 |
children | f5fba5b554d7 |
line wrap: on
line source
import unittest import glob import zcc class ZccTestCase(unittest.TestCase): """ Tests the compiler driver """ def do(self, fn): """ Compile blink.c3 """ #args = zcc.parser.parse_args(['-d', 'stm32f4/blink.c3']) args = zcc.parser.parse_args([fn]) zcc.main(args) def testExamples(self): """ Test all examples in the c3/examples directory """ example_filenames = glob.glob('./stm32f4/*.c3') for filename in example_filenames: self.do(filename) if __name__ == '__main__': unittest.main()