test: Add tests for futility show and vbutil_*
authorRandall Spangler <rspangler@chromium.org>
Fri, 3 Jun 2016 19:09:00 +0000 (12:09 -0700)
committerchrome-bot <chrome-bot@chromium.org>
Tue, 7 Jun 2016 21:25:38 +0000 (14:25 -0700)
commit05cd8ce75f97a76c4ef155734d191cd275bac231
tree92b9b7ba98aa165f57ca7f29729435fef3e10db4
parente1867d26a1379afa21144ff5de0406fbb6b492e8
test: Add tests for futility show and vbutil_*

Currently, the unit tests verify a 0 exit code, but don't check the
output.  Add tests to check the output.

BUG=chromium:617247
BRANCH=none
TEST=make runtests

Change-Id: I842046bb6f788eee05a1f2f511c6fb08df4a5379
Signed-off-by: Randall Spangler <rspangler@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/349670
Reviewed-by: Daisuke Nojiri <dnojiri@google.com>
20 files changed:
tests/futility/expect_output/show.tests_devkeys_kernel.keyblock [new file with mode: 0644]
tests/futility/expect_output/show.tests_devkeys_root_key.vbprivk [new file with mode: 0644]
tests/futility/expect_output/show.tests_devkeys_root_key.vbpubk [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_bios_mario_mp.bin [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_bios_zgb_mp.bin [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_fw_gbb.bin [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_fw_vblock.bin [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_kern_preamble.bin [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_sample.vbprik2 [new file with mode: 0644]
tests/futility/expect_output/show.tests_futility_data_sample.vbpubk2 [new file with mode: 0644]
tests/futility/expect_output/show.tests_testkeys_key_rsa2048.pem [new file with mode: 0644]
tests/futility/expect_output/show.tests_testkeys_key_rsa8192.pub.pem [new file with mode: 0644]
tests/futility/expect_output/vbutil_firmware.tests_futility_data_fw.vblock [new file with mode: 0644]
tests/futility/expect_output/vbutil_firmware.tests_futility_data_fw_vblock.bin [new file with mode: 0644]
tests/futility/expect_output/vbutil_firmware.verify [new file with mode: 0644]
tests/futility/expect_output/vbutil_key.tests_devkeys_root_key.vbprivk [new file with mode: 0644]
tests/futility/expect_output/vbutil_key.tests_devkeys_root_key.vbpubk [new file with mode: 0644]
tests/futility/expect_output/vbutil_keyblock.tests_devkeys_kernel.keyblock [new file with mode: 0644]
tests/futility/run_test_scripts.sh
tests/futility/test_show_contents.sh [new file with mode: 0755]