Re: [docs] [PATCH] ref-manual: add more explanation for ptest-related tasks
"Antonin Godard" <[email protected]> Fri, 26 Jun 2026 09:54:08 +0200
| Newsgroups | org.yoctoproject.lists.docs |
|---|---|
| Message-ID | <[email protected]> |
Hi,
On Thu Jun 25, 2026 at 5:42 PM CEST, Robert P. J. Day wrote:
[...]
> ``do_install_ptest_base``
> -------------------------
>
> -Copies the runtime test suite files from the compilation directory to a
> -holding area.
> +As defined in the :ref:`ref-classes-ptest` class, this task contains generic
> +installation code that will be invoked for all ptest-enabled recipes to
> +install the associated ptest package::
> +
> + do_install_ptest_base() {
> + if [ -f ${UNPACKDIR}/run-ptest ]; then
> + install -D ${UNPACKDIR}/run-ptest ${D}${PTEST_PATH}/run-ptest
> + fi
> +
> + grep -q install-ptest: Makefile 2>/dev/null && oe_runmake DESTDIR=${D}${PTEST_PATH} install-ptest
> +
> + do_install_ptest
> +
> + ... snip ...
> +
> + }
I am reluctant to include copy-pasted code-snippets from OE-Core, they change
over time and add maintenance burden. Can you remove it?
Antonin