mirror of
https://git.kernel.org/pub/scm/network/wireless/iwd.git
synced 2024-11-05 03:29:24 +01:00
6bdb154da5
All the processes verbose output is just written to stdout, and very hard to parse after the test runs. Having test-runner write the processes output to separate log files is much nicer to view after the test runs. A read/write file system is created which is separate and isolated from the current FS mount (which mounts the whole host file system). Doing this requires the user to create a folder somewhere to be used as the mount point. This folder is where all the log files will end up after test-runner runs. Since test-runner must be run as root, care was taken to keep the log files owned by the user which runs test-runner. The UID/GID are passed to the VM, and any log files created are chown'ed back to the user who ran test-runner. execute_program was refactored, and both verbose and log arguments were removed. The verbose argument was not really required since we can do check_verbosity(argv[0]) internally. The 'log' flag was only used along with --shell, and now the user can simply use --log instead of dumping /tmp/iwd.log. You can use this feature by specifying --log[=path] to test-runner. If no path is provided the current directory will be used. Using the --log flag will result in all processes being run with the --verbose flag. A new folder will be created under the --log path. The folder will be of the name "run-<year>-<month>-<dat>-<PID>". Under this folder you will find any global process logs. These are processes that are only run once for ALL tests (hwsim, ifconfig, dbus etc.). There will also be folders for specific tests that were run. Inside these test folders will be logs of processes that are run per-test (iwd, hostapd, python etc.). |
||
---|---|---|
.. | ||
hw.conf | ||
hwsim-dbus.conf | ||
hwsim.c | ||
hwsim.rst | ||
ios_convert.py | ||
run-iwd.sh | ||
test_runner_kernel_config | ||
test-runner.c |