summaryrefslogtreecommitdiff
path: root/tests/futility/test_file_types.c
diff options
context:
space:
mode:
authorBill Richardson <wfrichar@chromium.org>2015-03-26 16:29:10 -0700
committerChromeOS Commit Bot <chromeos-commit-bot@chromium.org>2015-03-31 06:28:14 +0000
commit453ecd19560af8efe3e518ba745dc6e8bfecac90 (patch)
treeb9f9e2f3f59e9a90c69d989cd9c853ec60e1a8b3 /tests/futility/test_file_types.c
parent6ea2f72d0356a73915b736a5ef3498ac06a50770 (diff)
downloadvboot-453ecd19560af8efe3e518ba745dc6e8bfecac90.tar.gz
futility: add --type arg to show and sign commands
This allows the user to manually specify the type of an input file, since not all file types can be reliably identified. This also adds a test to ensure that futility doesn't coredump if you give it the wrong type (although I'm sure it's not exhaustive). BUG=chromium:231574 BRANCH=none TEST=make runtests Signed-off-by: Bill Richardson <wfrichar@chromium.org> Change-Id: I9d909305d9989fe7299e744c585de380109cf8cd Reviewed-on: https://chromium-review.googlesource.com/262895 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/futility/test_file_types.c')
-rw-r--r--tests/futility/test_file_types.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tests/futility/test_file_types.c b/tests/futility/test_file_types.c
index 47482e1e..a2d03bf7 100644
--- a/tests/futility/test_file_types.c
+++ b/tests/futility/test_file_types.c
@@ -29,6 +29,7 @@ static struct {
{FILE_TYPE_BIOS_IMAGE, "tests/futility/data/bios_zgb_mp.bin"},
{FILE_TYPE_OLD_BIOS_IMAGE, "tests/futility/data/bios_mario_mp.bin"},
{FILE_TYPE_KERN_PREAMBLE, "tests/futility/data/kern_preamble.bin"},
+ /* We don't have a way to identify these (yet?) */
{FILE_TYPE_RAW_FIRMWARE, },
{FILE_TYPE_RAW_KERNEL, },
{FILE_TYPE_CHROMIUMOS_DISK, },