Mercurial > lcfOS
diff test/testzcc.py @ 300:158068af716c
yafm
author | Windel Bouwman |
---|---|
date | Tue, 03 Dec 2013 18:00:22 +0100 |
parents | 534b94b40aa8 |
children | 6753763d3bec |
line wrap: on
line diff
--- a/test/testzcc.py Sun Dec 01 18:37:23 2013 +0100 +++ b/test/testzcc.py Tue Dec 03 18:00:22 2013 +0100 @@ -11,7 +11,7 @@ """ Tests the compiler driver """ def do(self, filenames, imps=[]): - basedir = 'c3examples' + basedir = os.path.join('..', 'examples', 'c3') arg_list = [os.path.join(basedir, fn) for fn in filenames] for fn in imps: arg_list.append('-i') @@ -21,10 +21,6 @@ args = zcc.parser.parse_args(arg_list) self.assertEqual(0, zcc.main(args)) - @unittest.skip('Not working yet') - def testBurn(self): - self.do(['burn.c3'], ['stm32f4xx.c3']) - def testBurn2(self): self.do(['burn2.c3'], ['stm32f4xx.c3']) @@ -34,6 +30,9 @@ def testCast(self): self.do(['cast.c3']) + def testFunctions(self): + self.do(['functions.c3']) + def testSectionAddress(self): src = """module tst; function void t2() {var int t3; t3 = 2;} @@ -51,4 +50,3 @@ if __name__ == '__main__': unittest.main() -