diff options
| -rw-r--r-- | bitbake/lib/bb/tests/utils.py | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/bitbake/lib/bb/tests/utils.py b/bitbake/lib/bb/tests/utils.py index c363f62d7d..48e61dfcea 100644 --- a/bitbake/lib/bb/tests/utils.py +++ b/bitbake/lib/bb/tests/utils.py | |||
| @@ -130,6 +130,14 @@ class Checksum(unittest.TestCase): | |||
| 130 | checksum = bb.utils.sha256_file(f.name) | 130 | checksum = bb.utils.sha256_file(f.name) |
| 131 | self.assertEqual(checksum, "fcfbae8bf6b721dbb9d2dc6a9334a58f2031a9a9b302999243f99da4d7f12d0f") | 131 | self.assertEqual(checksum, "fcfbae8bf6b721dbb9d2dc6a9334a58f2031a9a9b302999243f99da4d7f12d0f") |
| 132 | 132 | ||
| 133 | def test_goh1(self): | ||
| 134 | import hashlib | ||
| 135 | with tempfile.NamedTemporaryFile() as f: | ||
| 136 | f.write(self.filler) | ||
| 137 | f.flush() | ||
| 138 | checksum = bb.utils.goh1_file(f.name) | ||
| 139 | self.assertEqual(checksum, "81191f04d4abf413e5badd234814e4202d9efa73e6f9437e9ddd6b8165b569ef") | ||
| 140 | |||
| 133 | class EditMetadataFile(unittest.TestCase): | 141 | class EditMetadataFile(unittest.TestCase): |
| 134 | _origfile = """ | 142 | _origfile = """ |
| 135 | # A comment | 143 | # A comment |
