OLD | NEW |
1 #!/usr/bin/env python | 1 #!/usr/bin/env python |
2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. | 2 # Copyright (c) 2012 The Chromium Authors. All rights reserved. |
3 # Use of this source code is governed by a BSD-style license that can be | 3 # Use of this source code is governed by a BSD-style license that can be |
4 # found in the LICENSE file. | 4 # found in the LICENSE file. |
5 | 5 |
6 import copy | 6 import copy |
7 import datetime | 7 import datetime |
8 import os | 8 import os |
9 import posixpath | 9 import posixpath |
10 import subprocess | 10 import subprocess |
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
74 def testExpectStr(self): | 74 def testExpectStr(self): |
75 testdesc = copy.deepcopy(BASIC_DESC) | 75 testdesc = copy.deepcopy(BASIC_DESC) |
76 testdesc['TOOLS'] = ['newlib', True, 'glibc'] | 76 testdesc['TOOLS'] = ['newlib', True, 'glibc'] |
77 self._validate(testdesc, 'Value True not expected in TOOLS.') | 77 self._validate(testdesc, 'Value True not expected in TOOLS.') |
78 | 78 |
79 def testExpectList(self): | 79 def testExpectList(self): |
80 testdesc = copy.deepcopy(BASIC_DESC) | 80 testdesc = copy.deepcopy(BASIC_DESC) |
81 testdesc['TOOLS'] = 'newlib' | 81 testdesc['TOOLS'] = 'newlib' |
82 self._validate(testdesc, 'Key TOOLS expects LIST not STR.') | 82 self._validate(testdesc, 'Key TOOLS expects LIST not STR.') |
83 | 83 |
84 # TODO(noelallen): Add test which generates a real make and runs it. | 84 # TODO(bradnelson): Add test which generates a real make and runs it. |
85 | 85 |
86 if __name__ == '__main__': | 86 if __name__ == '__main__': |
87 unittest.main() | 87 unittest.main() |
OLD | NEW |