[cfe-dev] Fwd: r176080 - Define CMake option CLANG_INCLUDE_TESTS *before* traversing into tests/ subdirectory. Otherwise, while configuring the build tree for the first time, Clang unit tests could avoid being added to 'check-clang' command, and thus avoid being built and executed.

Alexey Samsonov samsonov at google.com
Tue Feb 26 01:54:03 PST 2013


Forwarding to cfe-dev

This is a fixup for r174698. It *may* be the case that your working/fresh
build tree / build bot doesn't run Clang unit tests when you
run "make check-clang" or "make check-all". The symptom is the following
line in "make check-clang":

lit.py: discovery.py:169: warning: test suite 'Clang-Unit' contained no
tests

To fix this you may need to apply this revision and do a clean rebuild.

Author: samsonov
Date: Tue Feb 26 03:43:27 2013
New Revision: 176080

URL: http://llvm.org/viewvc/llvm-project?rev=176080&view=rev
Log:
Define CMake option CLANG_INCLUDE_TESTS *before* traversing into tests/
subdirectory. Otherwise, while configuring the build tree for the first
time, Clang unit tests could avoid being added to 'check-clang' command,
and thus avoid being built and executed.

Modified:
    cfe/trunk/CMakeLists.txt

Modified: cfe/trunk/CMakeLists.txt
URL:
http://llvm.org/viewvc/llvm-project/cfe/trunk/CMakeLists.txt?rev=176080&r1=176079&r2=176080&view=diff
==============================================================================
--- cfe/trunk/CMakeLists.txt (original)
+++ cfe/trunk/CMakeLists.txt Tue Feb 26 03:43:27 2013
@@ -276,13 +276,13 @@ add_subdirectory(runtime)
 option(CLANG_BUILD_EXAMPLES "Build CLANG example programs by default." OFF)
 add_subdirectory(examples)

-# TODO: docs.
-add_subdirectory(test)
-
 option(CLANG_INCLUDE_TESTS
        "Generate build targets for the Clang unit tests."
        ${LLVM_INCLUDE_TESTS})

+# TODO: docs.
+add_subdirectory(test)
+
 if( CLANG_INCLUDE_TESTS )
   add_subdirectory(unittests)
 endif()


_______________________________________________
cfe-commits mailing list
cfe-commits at cs.uiuc.edu
http://lists.cs.uiuc.edu/mailman/listinfo/cfe-commits


-- 
Alexey Samsonov, MSK
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.llvm.org/pipermail/cfe-dev/attachments/20130226/74e6a5de/attachment.html>


More information about the cfe-dev mailing list