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 0f3fafc7..8cba724b 100755
--- a/tests/futility/test_update.sh
+++ b/tests/futility/test_update.sh
@@ -19,6 +19,16 @@ test "$(test_sys_props "1, 2,3 ")" = "0,1, 1,2, 2,3, "
test "$(test_sys_props " 1,, 2")" = "0,1, 2,2, "
test "$(test_sys_props " , 4,")" = "1,4, "
+test_quirks() {
+ ! "${FUTILITY}" --debug update --quirks "$*" |
+ sed -n 's/.*Set quirk \(.*\) to \(.*\)./\1,\2/p' |
+ tr '\n' ' '
+}
+
+test "$(test_quirks "test")" = "test,1 "
+test "$(test_quirks "test=2")" = "test,2 "
+test "$(test_quirks " test, test=2")" = "test,1 test,2 "
+
# Test data files
LINK_BIOS="${SCRIPTDIR}/data/bios_link_mp.bin"
PEPPY_BIOS="${SCRIPTDIR}/data/bios_peppy_mp.bin"