Mercurial > lcfOS
view python/testzcc.py @ 242:c94965418684
Added tag burnchain for changeset ce6d390043a7
author | Windel Bouwman |
---|---|
date | Mon, 22 Jul 2013 22:56:51 +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()