Kazuhiro Inaba | f020822 | 2020-03-05 10:33:07 +0900 | [diff] [blame^] | 1 | # Copyright 2020 The Chromium OS Authors. All rights reserved. |
| 2 | # Use of this source code is governed by a BSD-style license that can be |
| 3 | # found in the LICENSE file. |
| 4 | |
| 5 | """Module for build_lib unittests.""" |
| 6 | |
| 7 | import unittest |
| 8 | |
| 9 | import build_lib |
| 10 | |
| 11 | |
| 12 | class BuildLibTestCase(unittest.TestCase): |
| 13 | |
| 14 | def testReshapeBoard(self): |
| 15 | self.assertEqual(build_lib.reshape_board('samus-kernelnext'), 'samus') |
| 16 | self.assertEqual(build_lib.reshape_board('eve-arcvm'), 'eve') |
| 17 | self.assertEqual(build_lib.reshape_board('kukui-arc-r'), 'kukui') |
| 18 | self.assertEqual(build_lib.reshape_board('octopus'), 'octopus') |
| 19 | |
| 20 | if __name__ == '__main__': |
| 21 | unittest.main() |