Hey,
On Fri, Aug 31, 2018 at 6:06 PM Rahul Gurung <gurungrahul2@gmail.com> wrote:
hey,
can you tell me how to run a single and specific cpp test to check if it
is working or not? I tried the methods told in the documentation it didn't
work for me,(as a whole lot of unrelated tests started running) I think I
am doing it wrong somewhere, so I need you to tell the exact command,
taking a specific test into consideration is going to be helpful.
So there are two parts to it.
There is the CPPUNIT_TEST_NAME environment variable that you can use to
select a single test case from a whole test suite. E.g. from your recent
patch: CPPUNIT_TEST_NAME="sc_apitest::ScCellCursorObj::testGoToEnd" make
CppunitTest_sc_cellcursorobj would have just executed that one single case
from the whole test suite.
The make CppunitTest_sc_cellcursorobj part only rebuilds the corresponding
test and all its dependencies however if you call it from the top level
this means it will always rebuild a few targets that have not changed.
Often it is easier to switch to the corresponding module, in that case sc,
and run make -sr CppunitTest_sc_cellcursorobj, which will only rebuild
changed dependencies in the corresponding module.
Regards,
Markus
Thank,
Rahul Gurung.
_______________________________________________
LibreOffice mailing list
LibreOffice@lists.freedesktop.org
https://lists.freedesktop.org/mailman/listinfo/libreoffice
Context
Privacy Policy |
Impressum (Legal Info) |
Copyright information: Unless otherwise specified, all text and images
on this website are licensed under the
Creative Commons Attribution-Share Alike 3.0 License.
This does not include the source code of LibreOffice, which is
licensed under the Mozilla Public License (
MPLv2).
"LibreOffice" and "The Document Foundation" are
registered trademarks of their corresponding registered owners or are
in actual use as trademarks in one or more countries. Their respective
logos and icons are also subject to international copyright laws. Use
thereof is explained in our
trademark policy.