aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/tools/testing/selftests/firmware
diff options
context:
space:
mode:
authorKees Cook <keescook@chromium.org>2020-07-24 14:36:23 -0700
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2020-07-25 12:05:20 +0200
commit4505e2154e8f3896da5ba63818082746b3026c59 (patch)
treefc44bcb3cc7bcb3dca484f4f72b0a5209f1c484c /tools/testing/selftests/firmware
parenttest_firmware: Test platform fw loading on non-EFI systems (diff)
downloadwireguard-linux-4505e2154e8f3896da5ba63818082746b3026c59.tar.xz
wireguard-linux-4505e2154e8f3896da5ba63818082746b3026c59.zip
selftest/firmware: Add selftest timeout in settings
The firmware tests would always time out for me. Add a correct timeout, including details on how the value was reached. Additionally allow the test harness to skip comments in settings files and report how long a given timeout was. Reviewed-by: SeongJae Park <sjpark@amazon.de> Acked-by: Scott Branden <scott.branden@broadcom.com> Signed-off-by: Kees Cook <keescook@chromium.org> Link: https://lore.kernel.org/r/20200724213640.389191-3-keescook@chromium.org Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/testing/selftests/firmware')
-rw-r--r--tools/testing/selftests/firmware/settings8
1 files changed, 8 insertions, 0 deletions
diff --git a/tools/testing/selftests/firmware/settings b/tools/testing/selftests/firmware/settings
new file mode 100644
index 000000000000..085e664ee093
--- /dev/null
+++ b/tools/testing/selftests/firmware/settings
@@ -0,0 +1,8 @@
+# The async firmware timeout is set to 1 second (but ends up being effectively
+# 2 seconds). There are 3 test configs, each done with and without firmware
+# present, each with 2 "nowait" functions tested 5 times. Expected time for a
+# normal execution should be 2 * 3 * 2 * 2 * 5 = 120 seconds for those alone.
+# Additionally, fw_fallback may take 5 seconds for internal timeouts in each
+# of the 3 configs, so at least another 15 seconds are needed. Add another
+# 10 seconds for each testing config: 120 + 15 + 30
+timeout=165