mirror of
https://gitlab.freedesktop.org/NetworkManager/NetworkManager.git
synced 2025-12-25 00:10:07 +01:00
When "tools/run-nm-test.sh" is called from the build scripts, it has as first argument "--called-from-make". Then all arguments must follow in a well defined order, which autotools/meson understand and follow. Another main use is however to call "tools/run-nm-test.sh" form the command line. In that case, we want to have the command line parsing convenient. Some of the parameters to the script are interpreted by the script, and some are passed on to the test. The user can use "--" to separate the parameters: ./tools/run-nm-test.sh -m shared/nm-glib-aux/tests/test-shared-general -- -p /general/test_strv_cmp Otherwise, on the first unknown argument "tools/run-nm-test.sh" would assume all following arguments are for the test. So this worked too: ./tools/run-nm-test.sh -m shared/nm-glib-aux/tests/test-shared-general -p /general/test_strv_cmp However, if you now want to run the test with valgrind, you need to edit the command line before the test arguments, like ./tools/run-nm-test.sh -m shared/nm-glib-aux/tests/test-shared-general -v -p /general/test_strv_cmp That is inconvenient because I call the script from the shell history and the cursor is at the end of the line. Instead, assume that all unknown parameters are for the test (until "--" is encountered). Now this works: ./tools/run-nm-test.sh -m shared/nm-glib-aux/tests/test-shared-general -p /general/test_strv_cmp -v Arguably, now also ./tools/run-nm-test.sh -m shared/nm-glib-aux/tests/test-shared-general -p -v /general/test_strv_cmp works, which is a bid odd. |
||
|---|---|---|
| .. | ||
| check-compare-generated.sh | ||
| check-config-options.sh | ||
| check-docs.sh | ||
| check-exports.sh | ||
| check-gitlab-ci.sh | ||
| create-exports-NetworkManager.sh | ||
| debug-helper.py | ||
| enums-to-docbook.pl | ||
| generate-docs-nm-property-infos.pl | ||
| generate-docs-nm-settings-docs-gir.py | ||
| generate-docs-nm-settings-docs-merge.py | ||
| meson-post-install.sh | ||
| run-nm-test.sh | ||
| test-build.sh | ||
| test-networkmanager-service.py | ||
| test-sudo-wrapper.sh | ||