blob: bfe88ea705ea13ba78076db9468f40f29a357d90 [file] [log] [blame]
showard3de2a762008-09-12 16:33:18 +00001#!/usr/bin/python
2
3import unittest, os
4
5COMPILE_SCRIPT_DIR = os.path.join(os.path.dirname(__file__), 'client')
6
7class 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
23if __name__ == '__main__':
24 unittest.main()