diff test/testzcc.py @ 329:8f6f3ace4e78

Added build tasks
author Windel Bouwman
date Wed, 05 Feb 2014 21:29:31 +0100
parents 44f336460c2a
children a78b41ff6ad2
line wrap: on
line diff
--- a/test/testzcc.py	Tue Feb 04 09:01:11 2014 +0100
+++ b/test/testzcc.py	Wed Feb 05 21:29:31 2014 +0100
@@ -8,7 +8,6 @@
 import io
 import target
 
-
 # Store testdir for safe switch back to directory:
 testdir = os.path.dirname(os.path.abspath(__file__))
 
@@ -75,14 +74,13 @@
             function void t2() {var int t3; t3 = 2;}
         """
         f = io.StringIO(src)
-        diag = ppci.DiagnosticsManager()
         outs = outstream.TextOutputStream()
         tg = target.target_list.armtarget
-        self.assertTrue(zcc.zcc([f], [], tg, outs, diag))
+        tr = ppci.tasks.TaskRunner()
+        tr.add_task(ppci.buildtasks.Compile([f], [], tg, outs))
+        tr.run_tasks()
         code = outs.getSection('code')
-        self.assertEqual(0x08000000, code.address)
-        data = outs.getSection('data')
-        self.assertEqual(0x20000000, data.address)
+        self.assertEqual(0x0, code.address)
 
 
 if __name__ == '__main__':