blob: 61af2f835cc641c5e27bca0656b2f838f21f3ca8 [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
showard9f4500a2009-04-27 20:10:35 +000023 def test_embedded_tko_compilation(self):
24 self._compile_module('EmbeddedTkoClient')
25
26
showard3de2a762008-09-12 16:33:18 +000027if __name__ == '__main__':
28 unittest.main()