diff options
author | Hung-Te Lin <hungte@chromium.org> | 2018-10-16 12:26:20 +0800 |
---|---|---|
committer | chrome-bot <chrome-bot@chromium.org> | 2018-10-22 06:16:36 -0700 |
commit | 6b5f9978fbfcfcab96b56a53429c9fd377176a9c (patch) | |
tree | 1a2b83482512608aadedbdcb9c29613eb3d370d5 /tests/futility | |
parent | 4e066900210883a4f502e626998daf79b9b66665 (diff) | |
download | vboot-6b5f9978fbfcfcab96b56a53429c9fd377176a9c.tar.gz |
futility: updater: Support --mode=output and --output_dir
For backward compatibility, we need to support the 'output' mode in legacy
firmware updater. The output must select right files according to system
model, and apply all white label transform if needed.
BUG=chromium:875551
TEST=TEST=make futil; tests/futility/run_test_scripts.sh $(pwd)/build/futility
BRANCH=None
Change-Id: Ib433647317fa97387aa4a7f8f2101b47e6ca2123
Signed-off-by: Hung-Te Lin <hungte@chromium.org>
Reviewed-on: https://chromium-review.googlesource.com/1282084
Diffstat (limited to 'tests/futility')
-rwxr-xr-x | tests/futility/test_update.sh | 13 |
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh index 215f9918..3838361c 100755 --- a/tests/futility/test_update.sh +++ b/tests/futility/test_update.sh @@ -310,6 +310,11 @@ test_update "Full update (--archive, single package)" \ "${FROM_IMAGE}" "${TMP}.expected.full" \ -a "${A}" --wp=0 --sys_props 0,0x10001,1,3 +echo "TEST: Output (--mode=output)" +mkdir -p "${TMP}.output" +${FUTILITY} update -i "${LINK_BIOS}" --mode=output --output_dir="${TMP}.output" +cmp "${LINK_BIOS}" "${TMP}.output/bios.bin" + mkdir -p "${A}/keyset" cp -f "${LINK_BIOS}" "${A}/bios.bin" cp -f "${TMP}.to/rootkey" "${A}/keyset/rootkey.WL" @@ -336,6 +341,14 @@ WL_TAG="WL" PATH="${A}/bin:${PATH}" \ "${A}/bios.bin" "${LINK_BIOS}" \ -a "${A}" --wp=0 --sys_props 0,0x10001,1,3 +echo "TEST: Output (-a, --mode=output)" +mkdir -p "${TMP}.outa" +cp -f "${A}/bios.bin" "${TMP}.emu" +WL_TAG="WL" PATH="${A}/bin:${PATH}" \ + ${FUTILITY} update -a "${A}" --mode=output --emu="${TMP}.emu" \ + --output_dir="${TMP}.outa" +cmp "${LINK_BIOS}" "${TMP}.outa/bios.bin" + # Test archive with Unified Build contents. cp -r "${SCRIPTDIR}/models" "${A}/" mkdir -p "${A}/images" |