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') |
Federico 'Morg' Pareschi | 4b39e69 | 2020-06-01 12:04:05 +0900 | [diff] [blame] | 18 | self.assertEqual(build_lib.reshape_board('hatch-arc-r-userdebug'), 'hatch') |
Kazuhiro Inaba | 840dac7 | 2021-02-01 16:47:05 +0900 | [diff] [blame] | 19 | self.assertEqual(build_lib.reshape_board('kevin-userdebug'), 'kevin') |
Kazuhiro Inaba | f020822 | 2020-03-05 10:33:07 +0900 | [diff] [blame] | 20 | self.assertEqual(build_lib.reshape_board('octopus'), 'octopus') |
| 21 | |
| 22 | if __name__ == '__main__': |
| 23 | unittest.main() |