showard | 3de2a76 | 2008-09-12 16:33:18 +0000 | [diff] [blame] | 1 | #!/usr/bin/python |
| 2 | |
| 3 | import unittest, os |
| 4 | |
| 5 | COMPILE_SCRIPT_DIR = os.path.join(os.path.dirname(__file__), 'client') |
| 6 | |
| 7 | class ClientCompilationTest(unittest.TestCase): |
| 8 | def _compile_module(self, module_name): |
| 9 | compile_script = module_name + '-compile' |
| 10 | full_path = os.path.join(COMPILE_SCRIPT_DIR, compile_script) |
| 11 | result = os.system(full_path + ' -validateOnly') |
| 12 | self.assertEquals(result, 0) |
| 13 | |
| 14 | |
| 15 | def test_afe_compilation(self): |
| 16 | self._compile_module('AfeClient') |
| 17 | |
| 18 | |
| 19 | def test_tko_compilation(self): |
| 20 | self._compile_module('TkoClient') |
| 21 | |
| 22 | |
| 23 | if __name__ == '__main__': |
| 24 | unittest.main() |