summaryrefslogtreecommitdiff
path: root/tests/futility/test_update.sh
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2018-08-21 17:49:06 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-31 05:22:45 -0700
commit6de8d9a5b1a84a7ed93eda6bdb11dcd4995d110a (patch)
tree7098532ded27f61421f9b615650022563ab42cfd /tests/futility/test_update.sh
parentd5e8445e3fd4694802e2246dd7e4c0df55ef0adc (diff)
downloadvboot-6de8d9a5b1a84a7ed93eda6bdb11dcd4995d110a.tar.gz
futility: cmd_update: Support loading image files by -i, -e, --pd_image
To specify images, we want to read them from files specified from command line: -i: AP (host) firmware image. -e: EC firmware image. --pd_image: PD firmware image (deprecated). BUG=chromium:875551 TEST=make futil; futility update -i /build/eve/firmware/image.bin tests/futility/run_test_script.sh $(pwd)/build/futility BRANCH=None Change-Id: I3c2dbe3d3ce4619aa7e044a154be3aba7ab9181c Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1183648 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/futility/test_update.sh')
-rwxr-xr-xtests/futility/test_update.sh6
1 files changed, 6 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh
index 7f747c61..6aa12ceb 100755
--- a/tests/futility/test_update.sh
+++ b/tests/futility/test_update.sh
@@ -6,8 +6,14 @@
me=${0##*/}
TMP="$me.tmp"
+# Test data files
+LINK_BIOS="${SCRIPTDIR}/data/bios_link_mp.bin"
+
# Work in scratch directory
cd "$OUTDIR"
+set -o pipefail
+
# Test command execution.
"${FUTILITY}" update
+"${FUTILITY}" --debug update -i "${LINK_BIOS}" | grep 8388608