summaryrefslogtreecommitdiff
path: root/tests/futility/test_update.sh
diff options
context:
space:
mode:
Diffstat (limited to 'tests/futility/test_update.sh')
-rwxr-xr-xtests/futility/test_update.sh10
1 files changed, 10 insertions, 0 deletions
diff --git a/tests/futility/test_update.sh b/tests/futility/test_update.sh
index c5615f0f..1b80e2e5 100755
--- a/tests/futility/test_update.sh
+++ b/tests/futility/test_update.sh
@@ -277,3 +277,13 @@ test_update "Full update (--quirks min_platform_version)" \
"${FROM_IMAGE}" "${TMP}.expected.full" \
--quirks min_platform_version=3 \
-i "${TO_IMAGE}" --wp=0 --sys_props 0,0x10001,1,3
+
+# Test special programmer
+if type flashrom >/dev/null 2>&1; then
+ echo "TEST: Full update (dummy programmer)"
+ cp -f "${FROM_IMAGE}" "${TMP}.emu"
+ sudo "${FUTILITY}" update --programmer \
+ dummy:emulate=VARIABLE_SIZE,image=${TMP}.emu,size=8388608 \
+ -i "${TO_IMAGE}" --wp=0 --sys_props 0,0x10001,1,3 >&2
+ cmp "${TMP}.emu" "${TMP}.expected.full"
+fi