Add a unit test to check that the GWT code compiles.  I added it as a "long" test because it requires GWT to be set up (and it's kind of slow).



git-svn-id: http://test.kernel.org/svn/autotest/trunk@2138 592f7852-d20e-0410-864c-8624ca9c26a4
diff --git a/frontend/client_compilation_unittest.py b/frontend/client_compilation_unittest.py
new file mode 100644
index 0000000..bfe88ea
--- /dev/null
+++ b/frontend/client_compilation_unittest.py
@@ -0,0 +1,24 @@
+#!/usr/bin/python
+
+import unittest, os
+
+COMPILE_SCRIPT_DIR = os.path.join(os.path.dirname(__file__), 'client')
+
+class ClientCompilationTest(unittest.TestCase):
+    def _compile_module(self, module_name):
+        compile_script = module_name + '-compile'
+        full_path = os.path.join(COMPILE_SCRIPT_DIR, compile_script)
+        result = os.system(full_path + ' -validateOnly')
+        self.assertEquals(result, 0)
+
+
+    def test_afe_compilation(self):
+        self._compile_module('AfeClient')
+
+
+    def test_tko_compilation(self):
+        self._compile_module('TkoClient')
+
+
+if __name__ == '__main__':
+    unittest.main()