diff test/testemulation.py @ 352:899ae3aea803

First kernel run for vexpressA9
author Windel Bouwman
date Sun, 09 Mar 2014 11:55:55 +0100
parents 3bb7dcfe5529
children b8ad45b3a573
line wrap: on
line diff
--- a/test/testemulation.py	Sat Mar 08 16:46:51 2014 +0100
+++ b/test/testemulation.py	Sun Mar 09 11:55:55 2014 +0100
@@ -74,6 +74,13 @@
         data = self.runQemu('../examples/qemu_a9_hello/hello.bin', machine='vexpress-a9')
         self.assertEqual('Hello worle', data)
 
+    def testKernelVexpressA9(self):
+        """ Build vexpress cortex-A9 binary and emulate it """
+        recipe = os.path.join(testdir, '..', 'kernel', 'arm.yaml')
+        self.buildRecipe(recipe)
+        data = self.runQemu('../kernel/kernel_arm.bin', machine='vexpress-a9')
+        self.assertEqual('e', data[0])
+
 
 if __name__ == '__main__':
     unittest.main()