1#!/usr/bin/python 2 3import os, shutil, tempfile, unittest 4import common 5 6_AUTOTEST_DIR = common.autotest_dir 7 8 9class ClientCompilationTest(unittest.TestCase): 10 11 12 def _compile_module(self, module_name): 13 compile_script = os.path.join(_AUTOTEST_DIR, 'utils', 14 'compile_gwt_clients.py') 15 cmd = '%s -d -c %s -e "-validateOnly"' % (compile_script, module_name) 16 result = os.system(cmd) 17 self.assertEquals(result, 0) 18 19 20 def test_afe_compilation(self): 21 self._compile_module('autotest.AfeClient') 22 23 24 def test_tko_compilation(self): 25 self._compile_module('autotest.TkoClient') 26 27 28 def test_embedded_tko_compilation(self): 29 self._compile_module('autotest.EmbeddedTkoClient') 30 31 32if __name__ == '__main__': 33 unittest.main() 34