summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorThomas Haller <thaller@redhat.com>2022-05-02 19:01:24 +0200
committerThomas Haller <thaller@redhat.com>2022-05-02 19:03:32 +0200
commit7fd6804e2a67b79204623d75cb40802c0e683edb (patch)
tree46f9592d7db98ae955046de3ecf2b08df7ffe5d6
parent3ce3ed4c92fb7d21da8f8c2f77b093fa71130455 (diff)
downloadNetworkManager-7fd6804e2a67b79204623d75cb40802c0e683edb.tar.gz
tests/client: improve readme for how to get test-client.py regenerate the test data
-rwxr-xr-xsrc/tests/client/test-client.py14
1 files changed, 12 insertions, 2 deletions
diff --git a/src/tests/client/test-client.py b/src/tests/client/test-client.py
index 42c2a9dc32..f322a94def 100755
--- a/src/tests/client/test-client.py
+++ b/src/tests/client/test-client.py
@@ -17,7 +17,7 @@ from __future__ import print_function
# When adjusting the tests, or when making changes to nmcli that intentionally
# change the output, the expected output must be regenerated.
#
-# For that, you'd setup your system correctly (see below) and then simply:
+# For that, you'd setup your system correctly (see SETUP below) and then simply:
#
# $ NM_TEST_REGENERATE=1 make check-local-tests-client
# # Or `NM_TEST_REGENERATE=1 make check -j 10`
@@ -25,7 +25,17 @@ from __future__ import print_function
# # The previous step regenerated the expected output. Review the changes
# # and consider whether they are correct. Then commit the changes to git.
#
-# Setup: For regenerating the output, the translations must work. First:
+# With meson, you can do
+# $ meson -Ddocs=true --prefix=/tmp/nm1 build
+# $ ninja -C build
+# $ ninja -C build install
+# $ NM_TEST_REGENERATE=1 ninja -C build test
+#
+# Beware that you need to install the sources, and beware to choose a prefix that doesn't
+# mess up your system (see SETUP below).
+#
+# SETUP: For regenerating the output, the translations must work. First
+# test whether the following works:
#
# 1) LANG=pl_PL.UTF-8 /usr/bin/nmcli --version
# # Ensure that Polish output works for the system-installed nmcli.