summaryrefslogtreecommitdiff
path: root/tests/futility/test_update.sh
diff options
context:
space:
mode:
authorHung-Te Lin <hungte@chromium.org>2018-08-21 17:32:44 +0800
committerchrome-bot <chrome-bot@chromium.org>2018-08-31 05:22:44 -0700
commitd5e8445e3fd4694802e2246dd7e4c0df55ef0adc (patch)
tree64fc3e5c82005611edd123437a85a132271bf0ab /tests/futility/test_update.sh
parentfdbb87b113897d08cc0c8b9c4c460d02b47063f7 (diff)
downloadvboot-d5e8445e3fd4694802e2246dd7e4c0df55ef0adc.tar.gz
futility: Add 'update' command for updating firmware
A reference firmware updater for all systems running vboot using FMAP for layout. The updater is currently a dummy implementation and will be completed with incoming changes. BUG=chromium:875551 TEST=make futil; build/futility/futility update; tests/futility/run_test_scripts.sh $(pwd)/build/futility BRANCH=None Change-Id: I57bec91c178749b79a19789f9599f5f9048fced8 Signed-off-by: Hung-Te Lin <hungte@chromium.org> Reviewed-on: https://chromium-review.googlesource.com/1182701 Reviewed-by: Randall Spangler <rspangler@chromium.org>
Diffstat (limited to 'tests/futility/test_update.sh')
-rwxr-xr-xtests/futility/test_update.sh13
1 files changed, 13 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh
new file mode 100755
index 00000000..7f747c61
--- /dev/null
+++ b/tests/futility/test_update.sh
@@ -0,0 +1,13 @@
+#!/bin/bash -eux
+# Copyright 2018 The Chromium OS Authors. All rights reserved.
+# Use of this source code is governed by a BSD-style license that can be
+# found in the LICENSE file.
+
+me=${0##*/}
+TMP="$me.tmp"
+
+# Work in scratch directory
+cd "$OUTDIR"
+
+# Test command execution.
+"${FUTILITY}" update