summaryrefslogtreecommitdiff
path: root/tests/futility
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2016-09-22 09:48:20 -0700
committerchrome-bot <chrome-bot@chromium.org>2016-10-04 21:19:12 -0700
commitc3daa95c50ad6976507c2f164f8be87bc7b75c1f (patch)
tree0c0ae829ccab7abb27e8401cc732fbc1908d801e /tests/futility
parenta1026841a3db4c76288576c8660248fd925763f9 (diff)
downloadvboot-c3daa95c50ad6976507c2f164f8be87bc7b75c1f.tar.gz
bdb: Make 'futility show' support BDB
This patch makes futility show command support boot block descriptor (BDB) of the common boot flow. BUG=chromium:649554 BRANCH=none TEST=make runtests. Ran futility show bdb.bin. Change-Id: I5f199a32ab1c268351e822e37ed39e41ae19bc7a Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/388631 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/futility')
-rw-r--r--tests/futility/data/bdb.binbin0 -> 3716 bytes
-rw-r--r--tests/futility/test_file_types.c1
-rwxr-xr-xtests/futility/test_file_types.sh1
3 files changed, 2 insertions, 0 deletions
diff --git a/tests/futility/data/bdb.bin b/tests/futility/data/bdb.bin
new file mode 100644
index 00000000..1fe84463
--- /dev/null
+++ b/tests/futility/data/bdb.bin
Binary files differ
diff --git a/tests/futility/test_file_types.c b/tests/futility/test_file_types.c
index 6b286293..2bf27887 100644
--- a/tests/futility/test_file_types.c
+++ b/tests/futility/test_file_types.c
@@ -37,6 +37,7 @@ static struct {
{FILE_TYPE_VB2_PRIVKEY, "tests/futility/data/sample.vbprik2"},
{FILE_TYPE_PEM, "tests/testkeys/key_rsa2048.pem"},
{FILE_TYPE_USBPD1, "tests/futility/data/zinger_mp_image.bin"},
+ {FILE_TYPE_BDB, "tests/futility/data/bdb.bin"},
{FILE_TYPE_RWSIG, }, /* need a test for this */
};
BUILD_ASSERT(ARRAY_SIZE(test_case) == NUM_FILE_TYPES);
diff --git a/tests/futility/test_file_types.sh b/tests/futility/test_file_types.sh
index 4b7a9fb6..b0248a94 100755
--- a/tests/futility/test_file_types.sh
+++ b/tests/futility/test_file_types.sh
@@ -44,6 +44,7 @@ test_case "pubkey21" "tests/futility/data/sample.vbpubk2"
test_case "prikey21" "tests/futility/data/sample.vbprik2"
test_case "pem" "tests/testkeys/key_rsa2048.pem"
test_case "pem" "tests/testkeys/key_rsa8192.pub.pem"
+test_case "bdb" "tests/futility/data/bdb.bin"
# Expect failure here.
fail_case "/Sir/Not/Appearing/In/This/Film"