[cfe-dev] Fw: RE: LIT Test case and unit testing

Srinivas Kakarla1 via cfe-dev cfe-dev at lists.llvm.org
Tue Apr 2 05:25:05 PDT 2019


Hi  Paul, cfe-dev ,

I Was trying to build the Ninja and Single unit test based on your inputs and blow URL
https://lists.llvm.org/pipermail/llvm-dev/2018-May/123061.html

ERROR :

~/Srinivas/llvm-ninja/llvm-project/build$ ./llvm-lit -v ~/Srinivas/llvm-ninja/llvm-project/clang/test/Sema/asm.c
llvm-lit: ~/Srinivas/llvm-project/llvm/utils/lit/lit/TestingConfig.py:102: fatal: unable to parse config file '~/Srinivas/llvm-ninja/llvm-project/clang/test/lit.cfg.py', traceback: Traceback (most recent call last):
  File "~/Srinivas/llvm-project/llvm/utils/lit/lit/TestingConfig.py", line 89, in load_from_path
    exec(compile(data, path, 'exec'), cfg_globals, None)
  File "~/Srinivas/llvm-ninja/llvm-project/clang/test/lit.cfg.py", line 25, in <module>
    config.test_format = lit.formats.ShTest(not llvm_config.use_lit_shell)
AttributeError: 'NoneType' object has no attribute 'use_lit_shell'

Can you please provide the inputs/feedback or any solution/idea about above issue ?


Regards,
Srinivas

-----Forwarded by Srinivas Kakarla1/HYD/TCS on 03/26/2019 11:27AM -----
To: <srinivas.kakarla1 at tcs.com>
From: <paul.robinson at sony.com>
Date: 03/20/2019 08:17PM
Cc: <cfe-dev at lists.llvm.org>
Subject: RE: [cfe-dev] LIT Test case and unit testing

      "External email. Open with Caution"
 
 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
 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/20190402/6668da4a/attachment-0001.html>


More information about the cfe-dev mailing list