diff options
author | Bill Richardson <wfrichar@chromium.org> | 2015-03-06 12:40:11 -0800 |
---|---|---|
committer | ChromeOS Commit Bot <chromeos-commit-bot@chromium.org> | 2015-03-11 07:50:27 +0000 |
commit | d7e1e4f0befdda52ad48e5a8eb5fc49dbee40247 (patch) | |
tree | a5c02398817dd05b6db210dc86ffad48e95e9cca /tests | |
parent | 36bc59140c9d3d4110b3d1c4b7c6b0b84875e81e (diff) | |
download | vboot-d7e1e4f0befdda52ad48e5a8eb5fc49dbee40247.tar.gz |
futility: Make --debug a global option
Some commands look for a --debug option, others don't. The
feature is implemented globally, so let's parse it as a global
option.
BUG=none
BRANCH=none
TEST=make runtests
Change-Id: I3b169e4a1b93443786913276651113d1c915a834
Signed-off-by: Bill Richardson <wfrichar@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/258500
Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests')
-rwxr-xr-x | tests/futility/test_sign_fw_main.sh | 2 | ||||
-rwxr-xr-x | tests/futility/test_sign_kernel.sh | 24 | ||||
-rwxr-xr-x | tests/futility/test_sign_keyblocks.sh | 8 |
3 files changed, 17 insertions, 17 deletions
diff --git a/tests/futility/test_sign_fw_main.sh b/tests/futility/test_sign_fw_main.sh index eec68a6c..face8016 100755 --- a/tests/futility/test_sign_fw_main.sh +++ b/tests/futility/test_sign_fw_main.sh @@ -29,7 +29,7 @@ ${FUTILITY} vbutil_firmware --verify ${TMP}.vblock.old \ --fv ${TMP}.fw_main # and the new way -${FUTILITY} sign --debug \ +${FUTILITY} --debug sign \ --signprivate ${KEYDIR}/firmware_data_key.vbprivk \ --keyblock ${KEYDIR}/firmware.keyblock \ --kernelkey ${KEYDIR}/kernel_subkey.vbpubk \ diff --git a/tests/futility/test_sign_kernel.sh b/tests/futility/test_sign_kernel.sh index 73da5ddb..6ceab02f 100755 --- a/tests/futility/test_sign_kernel.sh +++ b/tests/futility/test_sign_kernel.sh @@ -26,7 +26,7 @@ try_arch () { echo -n "${arch}: 1 " 1>&3 # pack it up the old way - ${FUTILITY} vbutil_kernel --debug \ + ${FUTILITY} --debug vbutil_kernel \ --pack ${TMP}.blob1.${arch} \ --keyblock ${DEVKEYS}/recovery_kernel.keyblock \ --signprivate ${DEVKEYS}/recovery_kernel_data_key.vbprivk \ @@ -44,7 +44,7 @@ try_arch () { --signpubkey ${DEVKEYS}/recovery_key.vbpubk > ${TMP}.verify1 # pack it up the new way - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --keyblock ${DEVKEYS}/recovery_kernel.keyblock \ --signprivate ${DEVKEYS}/recovery_kernel_data_key.vbprivk \ --version 1 \ @@ -67,7 +67,7 @@ try_arch () { echo -n "2 " 1>&3 # repack it the old way - ${FUTILITY} vbutil_kernel --debug \ + ${FUTILITY} --debug vbutil_kernel \ --repack ${TMP}.blob3.${arch} \ --oldblob ${TMP}.blob1.${arch} \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ @@ -83,7 +83,7 @@ try_arch () { --signpubkey ${DEVKEYS}/kernel_subkey.vbpubk > ${TMP}.verify3 # repack it the new way - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ --keyblock ${DEVKEYS}/kernel.keyblock \ --version 2 \ @@ -105,7 +105,7 @@ try_arch () { # repack it the new way, in-place cp ${TMP}.blob2.${arch} ${TMP}.blob5.${arch} - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ --keyblock ${DEVKEYS}/kernel.keyblock \ --version 2 \ @@ -144,7 +144,7 @@ try_arch () { cmp ${TMP}.blob1.${arch}.vb0 ${TMP}.blob1.${arch}.vb1 # pack the new way - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --keyblock ${DEVKEYS}/recovery_kernel.keyblock \ --signprivate ${DEVKEYS}/recovery_kernel_data_key.vbprivk \ --version 1 \ @@ -182,14 +182,14 @@ try_arch () { # extract just the kernel blob dd bs=${padding} skip=1 if=${TMP}.blob3.${arch} of=${TMP}.blob3.${arch}.kb0 # and verify it using the new vblock (no way to do that with vbutil_kernel) - ${FUTILITY} verify --debug \ + ${FUTILITY} --debug verify \ --pad ${padding} \ --publickey ${DEVKEYS}/kernel_subkey.vbpubk \ --fv ${TMP}.blob3.${arch}.kb0 \ ${TMP}.blob3.${arch}.vb1 > ${TMP}.verify3v # repack the new way - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ --keyblock ${DEVKEYS}/kernel.keyblock \ --version 2 \ @@ -207,7 +207,7 @@ try_arch () { # extract just the kernel blob dd bs=${padding} skip=1 if=${TMP}.blob4.${arch} of=${TMP}.blob4.${arch}.kb0 # and verify it using the new vblock (no way to do that with vbutil_kernel) - ${FUTILITY} verify --debug \ + ${FUTILITY} --debug verify \ --pad ${padding} \ --publickey ${DEVKEYS}/kernel_subkey.vbpubk \ --fv ${TMP}.blob4.${arch}.kb0 \ @@ -229,7 +229,7 @@ try_arch () { diff ${TMP}.verify1 ${TMP}.verify6 # repack it the old way - ${FUTILITY} vbutil_kernel --debug \ + ${FUTILITY} --debug vbutil_kernel \ --repack ${TMP}.part6.${arch} \ --oldblob ${TMP}.part1.${arch} \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ @@ -249,7 +249,7 @@ try_arch () { # repack it the new way, in-place cp ${TMP}.part1.${arch} ${TMP}.part6.${arch}.new1 - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ --keyblock ${DEVKEYS}/kernel.keyblock \ --version 2 \ @@ -273,7 +273,7 @@ try_arch () { # repack it the new way, from input to output cp ${TMP}.part1.${arch} ${TMP}.part1.${arch}.in - ${FUTILITY} sign --debug \ + ${FUTILITY} --debug sign \ --signprivate ${DEVKEYS}/kernel_data_key.vbprivk \ --keyblock ${DEVKEYS}/kernel.keyblock \ --version 2 \ diff --git a/tests/futility/test_sign_keyblocks.sh b/tests/futility/test_sign_keyblocks.sh index 1cccd346..7ba43afa 100755 --- a/tests/futility/test_sign_keyblocks.sh +++ b/tests/futility/test_sign_keyblocks.sh @@ -30,7 +30,7 @@ cmp ${DEVKEYS}/firmware.keyblock ${TMP}.keyblock0 # Now create it the new way -${FUTILITY} sign --debug \ +${FUTILITY} --debug sign \ --datapubkey ${DEVKEYS}/firmware_data_key.vbpubk \ --flags 7 \ --signprivate ${DEVKEYS}/root_key.vbprivk \ @@ -48,7 +48,7 @@ ${FUTILITY} vbutil_keyblock --pack ${TMP}.keyblock0 \ --flags 14 # new way -${FUTILITY} sign --debug \ +${FUTILITY} --debug sign \ --flags 14 \ ${DEVKEYS}/firmware_data_key.vbpubk \ ${TMP}.keyblock1 @@ -70,7 +70,7 @@ ${FUTILITY} vbutil_keyblock --unpack ${TMP}.keyblock2 \ --signpubkey ${TESTKEYS}/key_rsa4096.sha512.vbpubk # new way -${FUTILITY} sign --debug \ +${FUTILITY} --debug sign \ --pem_signpriv ${TESTKEYS}/key_rsa4096.pem \ --pem_algo 8 \ --flags 9 \ @@ -94,7 +94,7 @@ ${FUTILITY} vbutil_keyblock --unpack ${TMP}.keyblock4 \ --signpubkey ${TESTKEYS}/key_rsa4096.sha512.vbpubk # new way -${FUTILITY} sign --debug \ +${FUTILITY} --debug sign \ --pem_signpriv ${TESTKEYS}/key_rsa4096.pem \ --pem_algo 8 \ --pem_external ${SIGNER} \ |