[cfe-dev] LIT Test case and unit testing
Srinivas Kakarla1 via cfe-dev
cfe-dev at lists.llvm.org
Mon Apr 15 23:41:37 PDT 2019
Hi Csaba /LLVM,
My system got hanged during Ninja compilation.
Is there any system requirement for LLVM/CLANG/Ninja ?
My configuration is Ubuntu 16.0x ,12GB RAM and 27GB swap memory.
ninja check-llvm-unit ( system got hanged)
[6/12] Linking CXX executable unittests/tools/llvm-cfi-verify/CFIVerifyTests
Please check the above issue and provide the solution.
~/Srinivas/llvm-ninja/llvm-project/build$ pwd
~/Srinivas/llvm-ninja/llvm-project/build
~/Srinivas/llvm-ninja/llvm-project/build$ ls -l
total 22860
drwxrwxr-x 3 tcs tcs 4096 Apr 2 17:32 benchmarks
drwxrwxr-x 2 tcs tcs 4096 Apr 13 05:54 bin
drwxrwxr-x 2 tcs tcs 4096 Mar 29 15:33 build
-rw-rw-r-- 1 tcs tcs 19548918 Apr 2 17:32 build.ninja
drwxrwxr-x 3 tcs tcs 4096 Mar 29 15:40 cmake
-rw-rw-r-- 1 tcs tcs 75530 Mar 29 15:40 CMakeCache.txt
drwxrwxr-x 4 tcs tcs 4096 Apr 2 17:32 CMakeFiles
-rw-rw-r-- 1 tcs tcs 4874 Mar 29 15:40 cmake_install.cmake
-rw-rw-r-- 1 tcs tcs 3371071 Apr 2 17:32 compile_commands.json
-rw-r--r-- 1 tcs tcs 3684 Mar 29 15:39 CPackConfig.cmake
-rw-r--r-- 1 tcs tcs 4156 Mar 29 15:39 CPackSourceConfig.cmake
drwxrwxr-x 3 tcs tcs 4096 Apr 2 17:32 docs
-rw-rw-r-- 1 tcs tcs 466 Apr 2 17:32 DummyConfigureOutput
drwxrwxr-x 9 tcs tcs 4096 Apr 2 17:32 examples
drwxrwxr-x 3 tcs tcs 4096 Mar 29 15:39 include
drwxrwxr-x 36 tcs tcs 12288 Apr 13 06:11 lib
drwxrwxr-x 2 tcs tcs 4096 Mar 29 16:18 libexec
-rw-rw-r-- 1 tcs tcs 59344 Apr 2 17:32 LLVMBuild.cmake
-rwxrwxr-x 1 tcs tcs 1307 Apr 2 14:50 llvm-lit
-rw-rw-r-- 1 tcs tcs 1783 Mar 29 15:39 llvm.spec
drwxrwxr-x 3 tcs tcs 4096 Apr 2 17:32 projects
-rw-rw-r-- 1 tcs tcs 231148 Apr 2 17:32 rules.ninja
drwxrwxr-x 3 tcs tcs 4096 Apr 2 17:32 runtimes
drwxrwxr-x 5 tcs tcs 4096 Mar 29 23:22 share
drwxrwxr-x 4 tcs tcs 4096 Apr 2 17:32 test
drwxrwxr-x 72 tcs tcs 4096 Apr 2 17:32 tools
drwxrwxr-x 30 tcs tcs 4096 Apr 2 17:32 unittests
drwxrwxr-x 12 tcs tcs 4096 Mar 29 15:40 utils
Regards,
Srinivas
-----"Csaba Raduly" <rcsaba at gmail.com> wrote: -----
To: "Srinivas Kakarla1" <srinivas.kakarla1 at tcs.com>
From: "Csaba Raduly" <rcsaba at gmail.com>
Date: 04/10/2019 09:41PM
Cc: "cfe-dev" <cfe-dev at lists.llvm.org>
Subject: Re: [cfe-dev] LIT Test case and unit testing
"External email. Open with Caution"
Hi Srinivas,
Which parameters did you give to cmake?
Can you show the output of pwd and ls -l ?
I get the exact same error, because I choose ninja as the cmake generator.
$ ninja check-llvm-unit
$ ninja check-llvm
$ ninja check-all
all work for me.
Csaba
On Wed, Apr 10, 2019 at 12:58 PM Srinivas Kakarla1 via cfe-dev <cfe-dev at lists.llvm.org> wrote:
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
--
You can get very substantial performance improvements
by not doing the right thing. - Scott Meyers, An Effective C++11/14 Sampler
So if you're looking for a completely portable, 100% standards-conformat way
to get the wrong information: this is what you want. - Scott Meyers (C++TDaWYK)
[attachment "ninja check-llvm-unit.odt" removed by Srinivas Kakarla1/HYD/TCS]
=====-----=====-----=====
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/20190416/4df7a98d/attachment.html>
More information about the cfe-dev
mailing list