3
0
mirror of https://git.kernel.org/pub/scm/network/wireless/iwd.git synced 2024-11-09 21:49:23 +01:00
iwd/tools
James Prestwood 5067654a6d auto-t: end process_io on HUP signal, detect process crash
When HUP is received the IO read callback was never completing which
caused it to block indefinitely until waited for. This didn't matter
for most transient processes but for IWD, hostapd, wpa_supplicant
it would cause test-runner to hang if the process crashed.

Detecting a crash is somewhat hacky because we have no process
management like systemd and the return code isn't reliable as some
processes return non-zero under normal circumstances. So to detect
a crash the process output is being checked for the string:
"++++++++ backtrace ++++++++". This isn't 100% reliable obviously
since its dependent on how the binary is compiled, but even if the
crash itself isn't detected any test should still fail if written
correctly.

Doing this allows auto-tests to handle IWD crashes gracefully by
failing the test, printing the exception (event without debugging)
and continue with other tests.
2024-02-29 14:31:55 -06:00
..
hw.conf test-runner: Allow native hardware passthrough 2019-05-01 17:03:34 -05:00
hwsim-dbus.conf tools: Change net.connman.iwd.hwsim to net.connman.hwsim 2018-09-14 15:27:57 +02:00
hwsim.c hwsim: handle ADD/DEL_MAC_ADDR events 2023-07-05 22:03:32 -05:00
hwsim.rst build: Add skeleton manual pages for all installed binaries 2019-09-22 21:57:47 +02:00
ios_convert.py tools: ios_convert: embed certs rather than using paths 2019-10-07 23:09:29 -05:00
iwd-decrypt-profile.c tools: change print to %zd for ssize_t 2022-02-24 12:14:42 -06:00
probe-req.c tools: Add utility to tx Probe Requests 2020-03-20 10:18:04 -05:00
run-iwd.sh build: Add StateDirectoryMode=0700 option to systemd service 2019-09-09 06:55:22 +02:00
run-tests auto-t: make test timeout configurable 2023-11-13 09:46:34 -06:00
runner.py auto-t: increase RAM when running with valgrind (UML) 2023-12-19 19:48:51 -06:00
test_runner_kernel_config tools: Add CONFIG_CRYPTO_ECDSA 2022-07-18 10:58:06 -05:00
test-runner test-runner: rename test-runner, add run-tests 2022-03-31 18:12:31 -05:00
utils.py auto-t: end process_io on HUP signal, detect process crash 2024-02-29 14:31:55 -06:00