From a0dd289eebd245fc50fafbe4fa304f94f7f419fc Mon Sep 17 00:00:00 2001 From: Matti Picus Date: Fri, 3 Feb 2023 02:18:27 +0200 Subject: [PATCH] DOC: add some hints to build, test (#42) --- devpy/cmds/_build.py | 6 +++++- devpy/cmds/_test.py | 4 ++++ 2 files changed, 9 insertions(+), 1 deletion(-) diff --git a/devpy/cmds/_build.py b/devpy/cmds/_build.py index c6b35ef..5a638f7 100644 --- a/devpy/cmds/_build.py +++ b/devpy/cmds/_build.py @@ -18,12 +18,16 @@ def build(build_dir, meson_args, jobs=None, clean=False, verbose=False): """🔧 Build package with Meson/ninja and install - MESON_ARGS are passed through directly to pytest, e.g.: + MESON_ARGS are passed through e.g.: ./dev.py build -- -Dpkg_config_path=/lib64/pkgconfig The package is installed to BUILD_DIR-install + By default builds for release, to be able to use a debugger set CFLAGS + appropriately. For example, for linux use + + CFLAGS="-O0 -g" ./dev.py build """ build_dir = os.path.abspath(build_dir) inst_dir = install_dir(build_dir) diff --git a/devpy/cmds/_test.py b/devpy/cmds/_test.py index 152b97c..dfe2030 100644 --- a/devpy/cmds/_test.py +++ b/devpy/cmds/_test.py @@ -16,6 +16,10 @@ def test(build_dir, pytest_args): PYTEST_ARGS are passed through directly to pytest, e.g.: ./dev.py test -- -v + + By default, runs the full test suite. To skip "slow" tests, run + + ./dev.py test -- -m "not slow" """ cfg = get_config()