Skip to content

Commit

Permalink
test/test_bundle: add test case for generating block-hash-index
Browse files Browse the repository at this point in the history
Signed-off-by: Enrico Joerns <[email protected]>
  • Loading branch information
ejoerns committed Aug 30, 2024
1 parent fca2f6d commit 4f3a36d
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions test/test_bundle.py
Original file line number Diff line number Diff line change
Expand Up @@ -137,3 +137,15 @@ def test_bundle_crypt(tmp_path):

out, err, exitcode = run(f"rauc -c test.conf info {tmp_path}/out.raucb")
assert exitcode == 0


def test_bundle_adaptive(tmp_path, bundle):
bundle.manifest["image.rootfs"] = {
"filename": "rootfs.img",
"adaptive": "block-hash-index",
}
bundle.make_random_image("rootfs", 4097, "random rootfs")
out, err, exitcode = bundle.build_nocheck()
assert exitcode == 1
assert "Creating 'verity' format bundle" in out
assert not bundle.output.is_file()

0 comments on commit 4f3a36d

Please sign in to comment.