[cfe-dev] LIT Test case and unit testing

via cfe-dev cfe-dev at lists.llvm.org
Wed Mar 20 07:47:08 PDT 2019


Hi Srinivas,
These 'make' commands should be run from the directory where you have configured and built LLVM. This is not very well stated on the web page you cited, although in one place it does say:
Use make check-all to run the unit and regression tests after building LLVM.

Configuring and building LLVM is described at: https://llvm.org/docs/GettingStarted.html
The description on the TestingGuide.html page assumes you are using 'make' to build LLVM; if you are using ninja or some other tool, you should use the appropriate command for that tool, for example 'ninja check-llvm-unit'.
If you have done those steps, and running the tests from the build directory still does not work, let us know what steps you have taken and what the error messages are.
--paulr

From: cfe-dev [mailto:cfe-dev-bounces at lists.llvm.org] On Behalf Of Srinivas Kakarla1 via cfe-dev
Sent: Wednesday, March 20, 2019 8:21 AM
To: cfe-dev at lists.llvm.org
Subject: [cfe-dev] LIT Test case and unit testing

Hi  ,

I am following the below url .
https://llvm.org/docs/TestingGuide.html

make check-llvm-unit  - not working
make check-llvm  - not working

make check-llvm
make: *** No rule to make target 'check-llvm'.  Stop.

llvm-project/llvm/test$ make check-all
make: *** No rule to make target 'check-all'.  Stop.

Can you please let me know the problem.Is there any configuration or setup is missing.
Regards,
Srinivas

-----Srinivas Kakarla1/HYD/TCS wrote: -----
To: cfe-dev at lists.llvm.org<mailto:cfe-dev at lists.llvm.org>
From: Srinivas Kakarla1/HYD/TCS
Date: 03/20/2019 11:44AM
Subject: LIT Test case and unit testing

Hi ,

I have configure LLVM and LIT on my PC (lit-0.8.0.dev0 and clang -v clang version 3.8.0 )
I wan to know how to run or add specific unit test or test case from LIT ?
Can any one have inputs or idea ?

Regards,
Srinivas

=====-----=====-----=====
Notice: The information contained in this e-mail
message and/or attachments to it may contain
confidential or privileged information. If you are
not the intended recipient, any dissemination, use,
review, distribution, printing or copying of the
information contained in this e-mail message
and/or attachments to it are strictly prohibited. If
you have received this communication in error,
please notify us by reply e-mail or telephone and
immediately and permanently delete the message
and any attachments. Thank you
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20190320/33dc10c6/attachment.html>


More information about the cfe-dev mailing list