diff python/testzcc.py @ 208:4cb47d80fd1f

Added zcc test
author Windel Bouwman
date Sat, 29 Jun 2013 10:06:58 +0200
parents
children ff40407c0240
line wrap: on
line diff
--- /dev/null	Thu Jan 01 00:00:00 1970 +0000
+++ b/python/testzcc.py	Sat Jun 29 10:06:58 2013 +0200
@@ -0,0 +1,14 @@
+import unittest
+import zcc
+
+class ZccTestCase(unittest.TestCase):
+    """ Tests the compiler driver """
+
+    def testBlinkDemo(self):
+        """ Compile blink.c3 """
+        args = zcc.parser.parse_args(['-d', 'stm32f4/blink.c3'])
+        zcc.main(args)
+
+if __name__ == '__main__':
+    unittest.main()
+