Merge lp:~compiz-team/compiz/compiz.compiz_discover_tests into lp:compiz/0.9.8

Proposed by Sam Spilsbury
Status: Superseded
Proposed branch: lp:~compiz-team/compiz/compiz.compiz_discover_tests
Merge into: lp:compiz/0.9.8
Diff against target: 427 lines (+163/-33)
29 files modified
cmake/CMakeLists.txt (+9/-0)
cmake/CompizCommon.cmake (+15/-0)
cmake/src/CMakeLists.txt (+1/-0)
cmake/src/compiz/CMakeLists.txt (+6/-0)
cmake/src/compiz/compiz_discover_gtest_tests.cpp (+99/-0)
compizconfig/libcompizconfig/tests/CMakeLists.txt (+4/-4)
plugins/composite/src/pixmapbinding/tests/CMakeLists.txt (+1/-1)
plugins/decor/src/clip-groups/tests/CMakeLists.txt (+1/-1)
plugins/decor/src/pixmap-requests/tests/CMakeLists.txt (+1/-1)
plugins/grid/src/grabhandler/tests/CMakeLists.txt (+1/-1)
plugins/place/src/constrain-to-workarea/tests/CMakeLists.txt (+1/-1)
plugins/place/src/screen-size-change/tests/CMakeLists.txt (+1/-1)
plugins/place/src/smart/tests/CMakeLists.txt (+1/-1)
plugins/wall/src/offset_movement/tests/CMakeLists.txt (+1/-1)
src/option/tests/CMakeLists.txt (+1/-1)
src/plugin/tests/CMakeLists.txt (+1/-1)
src/pluginclasshandler/tests/CMakeLists.txt (+3/-3)
src/point/tests/CMakeLists.txt (+1/-1)
src/privatescreen/tests/CMakeLists.txt (+1/-1)
src/rect/tests/CMakeLists.txt (+2/-2)
src/region/tests/CMakeLists.txt (+1/-1)
src/servergrab/tests/CMakeLists.txt (+1/-1)
src/string/tests/CMakeLists.txt (+1/-1)
src/timer/tests/CMakeLists.txt (+4/-4)
src/window/constrainment/tests/CMakeLists.txt (+1/-1)
src/window/extents/tests/CMakeLists.txt (+1/-1)
src/window/geometry-saver/tests/CMakeLists.txt (+1/-1)
src/window/geometry/tests/CMakeLists.txt (+1/-1)
src/wrapsystem/tests/CMakeLists.txt (+1/-1)
To merge this branch: bzr merge lp:~compiz-team/compiz/compiz.compiz_discover_tests
Reviewer Review Type Date Requested Status
Daniel van Vugt Needs Fixing
Review via email: mp+113324@code.launchpad.net

This proposal supersedes a proposal from 2012-07-03.

This proposal has been superseded by a proposal from 2012-07-05.

Description of the change

Added compiz_discover_tests.

gtest_add_tests is good for the basic Google Test usage, but its source
based scanning falls short in a couple of areas - namely it requires that
there be no space between TEST* and ( and it also does not work for templated
tests.

compiz_discover_tests builds a small C++ program to parse the output
of --gtest_list_tests and adds those at make-time to the CTestTestfile.cmake
in the current binary directory. This allows us to correctly introspect the test
 binary and get /all/ the tests regardless of the source file.

To post a comment you must log in.
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

'make ExperimentalMemCheck' now spits out cmake errors before running test cases.

Also, compiz_discover_gtest_tests.cpp seems to over-use 'std::'. Maybe put 'using namespace std' at the top and then remove 'std::' everywhere.

review: Needs Fixing
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

CMake Error: Error in cmake code at
/home/dan/bzr/compiz/tmp.discover/build/src/timer/tests/CTestTestfile.cmake:11:
Parse error. Expected a newline, got identifier with text "INCLUDE".
CMake Error at /home/dan/bzr/compiz/tmp.discover/build/src/timer/CTestTestfile.cmake:7 (SUBDIRS):
  subdirs Could not find include file:
  /home/dan/bzr/compiz/tmp.discover/build/src/timer/tests/CTestTestfile.cmake
Call Stack (most recent call first):
  /home/dan/bzr/compiz/tmp.discover/build/src/CTestTestfile.cmake:9 (SUBDIRS)
  CTestTestfile.cmake:16 (SUBDIRS)

CMake Error: Error in cmake code at
/home/dan/bzr/compiz/tmp.discover/build/src/pluginclasshandler/tests/CTestTestfile.cmake:10:
Parse error. Expected a newline, got identifier with text "INCLUDE".
CMake Error at /home/dan/bzr/compiz/tmp.discover/build/src/pluginclasshandler/CTestTestfile.cmake:7 (SUBDIRS):
  subdirs Could not find include file:
  /home/dan/bzr/compiz/tmp.discover/build/src/pluginclasshandler/tests/CTestTestfile.cmake
Call Stack (most recent call first):
  /home/dan/bzr/compiz/tmp.discover/build/src/CTestTestfile.cmake:10 (SUBDIRS)
  CTestTestfile.cmake:16 (SUBDIRS)

CMake Error: Error in cmake code at
/home/dan/bzr/compiz/tmp.discover/build/src/rect/tests/CTestTestfile.cmake:9:
Parse error. Expected a newline, got identifier with text "INCLUDE".
CMake Error at /home/dan/bzr/compiz/tmp.discover/build/src/rect/CTestTestfile.cmake:7 (SUBDIRS):
  subdirs Could not find include file:
  /home/dan/bzr/compiz/tmp.discover/build/src/rect/tests/CTestTestfile.cmake
Call Stack (most recent call first):
  /home/dan/bzr/compiz/tmp.discover/build/src/CTestTestfile.cmake:12 (SUBDIRS)
  CTestTestfile.cmake:16 (SUBDIRS)

CMake Error: Error in cmake code at
/home/dan/bzr/compiz/tmp.discover/build/compizconfig/libcompizconfig/tests/CTestTestfile.cmake:11:
Parse error. Expected a newline, got identifier with text "INCLUDE".
CMake Error at /home/dan/bzr/compiz/tmp.discover/build/compizconfig/libcompizconfig/CTestTestfile.cmake:12 (SUBDIRS):
  subdirs Could not find include file:
  /home/dan/bzr/compiz/tmp.discover/build/compizconfig/libcompizconfig/tests/CTestTestfile.cmake
Call Stack (most recent call first):
  /home/dan/bzr/compiz/tmp.discover/build/compizconfig/CTestTestfile.cmake:7 (SUBDIRS)
  CTestTestfile.cmake:17 (SUBDIRS)

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

Okay, thanks I'll look into that.

(Strangely ctest -D ExperimentalMemCheck seems to work okay over here, maybe make ExperimentalMemcheck is doing something different)

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

Fixed the small error when handling more than two tests defined in one CMakeLists.txt . thanks for spotting that.

Revision history for this message
Daniel van Vugt (vanvugt) : Posted in a previous version of this proposal
review: Approve
Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

This file gets installed:
    src/compiz/compiz_discover_gtest_tests.cpp

I would suggest not installing it while it's new, possibly subject to change and not used outside of lp:compiz.

review: Needs Fixing
Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

Ah.  The reason im installing it is so that external plugins can use it (sinilar to gtest)

Sent from Samsung Mobile

 Daniel van Vugt <email address hidden> wrote:

Review: Needs Fixing

This file gets installed:
    src/compiz/compiz_discover_gtest_tests.cpp

I would suggest not installing it while it's new, possibly subject to change and not used outside of lp:compiz.
--
https://code.launchpad.net/~compiz-team/compiz/compiz.compiz_discover_tests/+merge/113182
Your team Compiz Maintainers is subscribed to branch lp:compiz.

Revision history for this message
Daniel van Vugt (vanvugt) wrote : Posted in a previous version of this proposal

Nice idea, but while it's new I think it should be private. So we can change it at will, for a while.

Revision history for this message
Sam Spilsbury (smspillaz) wrote : Posted in a previous version of this proposal

Okay, I've made it not install to anywhere for now. When its ready, we can still freely make changes - other projects that build it locally will just rebuild it when it changes.

3277. By Sam Spilsbury

Remove the wrappers. They are not necessary like I originally thought

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

The wrappers weren't necessary, so I removed them (thanks Alan for spotting that!)

Revision history for this message
Daniel van Vugt (vanvugt) wrote :

'make test' now passes so quickly that it can't possibly be running tests (0.8 sec for 119 tests).

review: Needs Fixing
3278. By Sam Spilsbury

Format the "" correctly so that the tests actually run

Revision history for this message
Sam Spilsbury (smspillaz) wrote :

thanks, was a bug in the formatting code. fixed.

Unmerged revisions

Preview Diff

[H/L] Next/Prev Comment, [J/K] Next/Prev File, [N/P] Next/Prev Hunk
=== modified file 'cmake/CMakeLists.txt'
--- cmake/CMakeLists.txt 2012-05-24 00:55:17 +0000
+++ cmake/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -32,3 +32,12 @@
32 FILES ${_PluginExtensionFiles}32 FILES ${_PluginExtensionFiles}
33 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/compiz/cmake/plugin_extensions33 DESTINATION ${CMAKE_INSTALL_PREFIX}/share/compiz/cmake/plugin_extensions
34)34)
35
36# Do not install src/compiz for a while until we've polished it up
37
38#install (DIRECTORY src/compiz
39# DESTINATION ${CMAKE_INSTALL_PREFIX}/src)
40
41if (COMPIZ_BUILD_TESTING)
42 add_subdirectory (src)
43endif (COMPIZ_BUILD_TESTING)
3544
=== modified file 'cmake/CompizCommon.cmake'
--- cmake/CompizCommon.cmake 2012-05-24 06:48:55 +0000
+++ cmake/CompizCommon.cmake 2012-07-05 05:37:21 +0000
@@ -70,6 +70,21 @@
70 set(IS_BZR_REPO 0)70 set(IS_BZR_REPO 0)
71endif (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr)71endif (IS_DIRECTORY ${CMAKE_SOURCE_DIR}/.bzr)
7272
73# Create target to discover tests
74function (compiz_discover_tests EXECUTABLE)
75
76 add_dependencies (${EXECUTABLE}
77 compiz_discover_gtest_tests)
78
79 add_custom_command (TARGET ${EXECUTABLE}
80 POST_BUILD
81 COMMAND ${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE} --gtest_list_tests | ${CMAKE_BINARY_DIR}/compiz_gtest/compiz_discover_gtest_tests ${CMAKE_CURRENT_BINARY_DIR}/${EXECUTABLE}
82 WORKING_DIRECTORY ${CMAKE_CURRENT_BINARY_DIR}
83 COMMENT "Discovering Tests in ${EXECUTABLE}"
84 DEPENDS
85 VERBATIM)
86endfunction ()
87
73function (compiz_ensure_linkage)88function (compiz_ensure_linkage)
74 find_program (LDCONFIG_EXECUTABLE ldconfig)89 find_program (LDCONFIG_EXECUTABLE ldconfig)
75 mark_as_advanced (FORCE LDCONFIG_EXECUTABLE)90 mark_as_advanced (FORCE LDCONFIG_EXECUTABLE)
7691
=== added directory 'cmake/src'
=== added file 'cmake/src/CMakeLists.txt'
--- cmake/src/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ cmake/src/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -0,0 +1,1 @@
1add_subdirectory (compiz)
02
=== added directory 'cmake/src/compiz'
=== added file 'cmake/src/compiz/CMakeLists.txt'
--- cmake/src/compiz/CMakeLists.txt 1970-01-01 00:00:00 +0000
+++ cmake/src/compiz/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -0,0 +1,6 @@
1add_executable (compiz_discover_gtest_tests
2 EXCLUDE_FROM_ALL
3 ${CMAKE_CURRENT_SOURCE_DIR}/compiz_discover_gtest_tests.cpp)
4
5set_target_properties (compiz_discover_gtest_tests PROPERTIES
6 RUNTIME_OUTPUT_DIRECTORY ${CMAKE_BINARY_DIR}/compiz_gtest)
07
=== added file 'cmake/src/compiz/compiz_discover_gtest_tests.cpp'
--- cmake/src/compiz/compiz_discover_gtest_tests.cpp 1970-01-01 00:00:00 +0000
+++ cmake/src/compiz/compiz_discover_gtest_tests.cpp 2012-07-05 05:37:21 +0000
@@ -0,0 +1,99 @@
1#include <map>
2#include <vector>
3#include <string>
4#include <istream>
5#include <ostream>
6#include <fstream>
7#include <iterator>
8#include <iostream>
9#include <libgen.h>
10
11using namespace std;
12
13int main (int argc, char **argv)
14{
15 cin >> noskipws;
16
17 if (argc < 2)
18 {
19 cout << "Usage: PATH_TO_TEST_BINARY --gtest_list_tests | ./build_test_cases PATH_TO_TEST_BINARY";
20 return 1;
21 }
22
23 map<string, vector<string> > testCases;
24 string line;
25 string currentTestCase;
26
27 while (getline (cin, line))
28 {
29 /* Is test case */
30 if (line.find (" ") == 0)
31 testCases[currentTestCase].push_back (currentTestCase + line.substr (2));
32 else
33 currentTestCase = line;
34
35 }
36
37 ofstream testfilecmake;
38 char *base = basename (argv[1]);
39 string gtestName (base);
40
41 testfilecmake.open (string (gtestName + "_test.cmake").c_str (), ios::out | ios::trunc);
42
43 if (testfilecmake.is_open ())
44 {
45 for (map <string, vector<string> >::iterator it = testCases.begin ();
46 it != testCases.end (); it++)
47 {
48 for (vector <string>::iterator jt = it->second.begin ();
49 jt != it->second.end (); jt++)
50 {
51 if (testfilecmake.good ())
52 {
53 string addTest ("ADD_TEST (");
54 string testExec (" \"" + string (argv[1]) + "\"");
55 string gTestFilter ("\"--gtest_filter=");
56 string endParen ("\")");
57
58 testfilecmake << addTest << *jt << testExec << gTestFilter << *jt << endParen << endl;
59 }
60 }
61 }
62
63 testfilecmake.close ();
64 }
65
66 ifstream CTestTestfile ("CTestTestfile.cmake", ifstream::in);
67 bool needsInclude = true;
68 line.clear ();
69
70 string includeLine = string ("INCLUDE (") +
71 gtestName +
72 string ("_test.cmake)");
73
74 if (CTestTestfile.is_open ())
75 {
76 while (CTestTestfile.good ())
77 {
78 getline (CTestTestfile, line);
79
80 if (line == includeLine)
81 needsInclude = false;
82 }
83
84 CTestTestfile.close ();
85 }
86
87 if (needsInclude)
88 {
89 ofstream CTestTestfileW ("CTestTestfile.cmake", ofstream::app | ofstream::out);
90
91 if (CTestTestfileW.is_open ())
92 {
93 CTestTestfileW << includeLine << endl;
94 CTestTestfileW.close ();
95 }
96 }
97
98 return 0;
99}
0100
=== modified file 'compizconfig/libcompizconfig/tests/CMakeLists.txt'
--- compizconfig/libcompizconfig/tests/CMakeLists.txt 2012-06-26 12:22:35 +0000
+++ compizconfig/libcompizconfig/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -94,7 +94,7 @@
94 plugin-mock94 plugin-mock
95 setting-mock)95 setting-mock)
9696
97gtest_add_tests (test-ccs-object "" ${CMAKE_CURRENT_SOURCE_DIR}/test-ccs-object.cpp)97compiz_discover_tests (test-ccs-object)
98gtest_add_tests (test-context "" ${CMAKE_CURRENT_SOURCE_DIR}/test-context.cpp)98compiz_discover_tests (test-context)
99gtest_add_tests (test-plugin "" ${CMAKE_CURRENT_SOURCE_DIR}/test-plugin.cpp)99compiz_discover_tests (test-plugin)
100gtest_add_tests (test-setting "" ${CMAKE_CURRENT_SOURCE_DIR}/test-setting.cpp)100compiz_discover_tests (test-setting)
101101
=== modified file 'plugins/composite/src/pixmapbinding/tests/CMakeLists.txt'
--- plugins/composite/src/pixmapbinding/tests/CMakeLists.txt 2012-05-31 07:15:37 +0000
+++ plugins/composite/src/pixmapbinding/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -21,4 +21,4 @@
21 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.21 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
22 )22 )
2323
24gtest_add_tests (compiz_test_composite_pixmapbinding "" ${CMAKE_CURRENT_SOURCE_DIR}/test-composite-pixmapbinding.cpp)24compiz_discover_tests (compiz_test_composite_pixmapbinding)
2525
=== modified file 'plugins/decor/src/clip-groups/tests/CMakeLists.txt'
--- plugins/decor/src/clip-groups/tests/CMakeLists.txt 2012-03-30 16:06:07 +0000
+++ plugins/decor/src/clip-groups/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -11,4 +11,4 @@
11 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 11 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
12 )12 )
1313
14gtest_add_tests (compiz_test_decor_clip_groups "" ${CMAKE_CURRENT_SOURCE_DIR}/clip-groups/src/test-decor-clip-groups.cpp)14compiz_discover_tests (compiz_test_decor_clip_groups)
1515
=== modified file 'plugins/decor/src/pixmap-requests/tests/CMakeLists.txt'
--- plugins/decor/src/pixmap-requests/tests/CMakeLists.txt 2012-05-10 15:40:25 +0000
+++ plugins/decor/src/pixmap-requests/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -12,4 +12,4 @@
12 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 12 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
13 )13 )
1414
15gtest_add_tests (compiz_test_decor_pixmap_requests "" ${CMAKE_CURRENT_SOURCE_DIR}/pixmap-requests/src/test-decor-pixmap-requests.cpp)15compiz_discover_tests (compiz_test_decor_pixmap_requests)
1616
=== modified file 'plugins/grid/src/grabhandler/tests/CMakeLists.txt'
--- plugins/grid/src/grabhandler/tests/CMakeLists.txt 2012-05-28 06:48:42 +0000
+++ plugins/grid/src/grabhandler/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -21,4 +21,4 @@
21 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.21 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
22 )22 )
2323
24gtest_add_tests (compiz_test_grid_grabhandler "" ${CMAKE_CURRENT_SOURCE_DIR}/test-grid-grab-handler.cpp)24compiz_discover_tests (compiz_test_grid_grabhandler)
2525
=== modified file 'plugins/place/src/constrain-to-workarea/tests/CMakeLists.txt'
--- plugins/place/src/constrain-to-workarea/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ plugins/place/src/constrain-to-workarea/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16 )16 )
1717
18gtest_add_tests (compiz_test_place_constrain_to_workarea "" ${CMAKE_CURRENT_SOURCE_DIR}/constrain-to-workarea/src/test-place-constrain-to-workarea.cpp)18compiz_discover_tests (compiz_test_place_constrain_to_workarea)
1919
=== modified file 'plugins/place/src/screen-size-change/tests/CMakeLists.txt'
--- plugins/place/src/screen-size-change/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ plugins/place/src/screen-size-change/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16 )16 )
1717
18gtest_add_tests (compiz_test_place_screen_size_change "" ${CMAKE_CURRENT_SOURCE_DIR}/screen-size-change/src/test-place-screen-size-change.cpp)18compiz_discover_tests (compiz_test_place_screen_size_change)
1919
=== modified file 'plugins/place/src/smart/tests/CMakeLists.txt'
--- plugins/place/src/smart/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ plugins/place/src/smart/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -11,4 +11,4 @@
11 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 11 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
12 )12 )
1313
14gtest_add_tests (compiz_test_place_smart_on_screen "" ${CMAKE_CURRENT_SOURCE_DIR}/offscreen/src/test-place-smart-on-screen.cpp)14compiz_discover_tests (compiz_test_place_smart_on_screen)
1515
=== modified file 'plugins/wall/src/offset_movement/tests/CMakeLists.txt'
--- plugins/wall/src/offset_movement/tests/CMakeLists.txt 2012-05-21 06:43:20 +0000
+++ plugins/wall/src/offset_movement/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -21,4 +21,4 @@
21 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.21 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
22 )22 )
2323
24gtest_add_tests (compiz_test_wall_offset_movement "" ${CMAKE_CURRENT_SOURCE_DIR}/test-wall-offset-movement.cpp)24compiz_discover_tests (compiz_test_wall_offset_movement)
2525
=== modified file 'src/option/tests/CMakeLists.txt'
--- src/option/tests/CMakeLists.txt 2012-05-21 06:43:20 +0000
+++ src/option/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -28,4 +28,4 @@
28 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.28 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
29)29)
3030
31gtest_add_tests( compiz_option_test "" ${CMAKE_CURRENT_SOURCE_DIR}/option.cpp )31compiz_discover_tests ( compiz_option_test )
3232
=== modified file 'src/plugin/tests/CMakeLists.txt'
--- src/plugin/tests/CMakeLists.txt 2012-06-24 09:00:27 +0000
+++ src/plugin/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -32,5 +32,5 @@
32 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.32 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
33)33)
3434
35env_gtest_add_tests( compiz_plugin_test "" ${CMAKE_CURRENT_SOURCE_DIR}/test-plugin.cpp )35compiz_discover_tests ( compiz_plugin_test )
3636
3737
=== modified file 'src/pluginclasshandler/tests/CMakeLists.txt'
--- src/pluginclasshandler/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/pluginclasshandler/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -74,8 +74,8 @@
74# gtest_main74# gtest_main
75#)75#)
7676
77gtest_add_tests( compiz_pch_construct "" ${CMAKE_CURRENT_SOURCE_DIR}/construct/src/test-pch-construct.cpp )77compiz_discover_tests (compiz_pch_construct)
78gtest_add_tests( compiz_pch_get "" ${CMAKE_CURRENT_SOURCE_DIR}/get/src/test-pch-get.cpp )78compiz_discover_tests (compiz_pch_get)
79#add_test( compiz_pch_indexes compiz_pch_indexes )79#add_test( compiz_pch_indexes compiz_pch_indexes )
80gtest_add_tests( compiz_pch_typenames "" ${CMAKE_CURRENT_SOURCE_DIR}/typenames/src/test-pch-typenames.cpp )80compiz_discover_tests (compiz_pch_typenames)
8181
8282
=== modified file 'src/point/tests/CMakeLists.txt'
--- src/point/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/point/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16 )16 )
1717
18gtest_add_tests (compiz_test_point "" ${CMAKE_CURRENT_SOURCE_DIR}/point/src/test-point.cpp)18compiz_discover_tests (compiz_test_point)
1919
=== modified file 'src/privatescreen/tests/CMakeLists.txt'
--- src/privatescreen/tests/CMakeLists.txt 2012-06-24 09:00:27 +0000
+++ src/privatescreen/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -53,4 +53,4 @@
53 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.53 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
54)54)
5555
56env_gtest_add_tests( compiz_privatescreen_test "" ${CMAKE_CURRENT_SOURCE_DIR}/test-privatescreen.cpp )56compiz_discover_tests (compiz_privatescreen_test)
5757
=== modified file 'src/rect/tests/CMakeLists.txt'
--- src/rect/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/rect/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -27,5 +27,5 @@
27 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 27 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
28 )28 )
2929
30gtest_add_tests (compiz_test_rect "" ${CMAKE_CURRENT_SOURCE_DIR}/rect/src/test-rect.cpp)30compiz_discover_tests (compiz_test_rect)
31gtest_add_tests (compiz_test_rect_wraparound_point "" ${CMAKE_CURRENT_SOURCE_DIR}/wraparound_point/src/test-rect-wraparound-point.cpp)31compiz_discover_tests (compiz_test_rect_wraparound_point)
3232
=== modified file 'src/region/tests/CMakeLists.txt'
--- src/region/tests/CMakeLists.txt 2012-05-21 06:43:20 +0000
+++ src/region/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -33,4 +33,4 @@
33 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.33 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
34)34)
3535
36gtest_add_tests( compiz_region_test "" ${CMAKE_CURRENT_SOURCE_DIR}/test-region.cpp )36compiz_discover_tests (compiz_region_test)
3737
=== modified file 'src/servergrab/tests/CMakeLists.txt'
--- src/servergrab/tests/CMakeLists.txt 2012-05-28 07:53:38 +0000
+++ src/servergrab/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -11,4 +11,4 @@
11 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 11 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
12 )12 )
1313
14gtest_add_tests (compiz_test_servergrab "" ${CMAKE_CURRENT_SOURCE_DIR}/test-servergrab.cpp)14compiz_discover_tests (compiz_test_servergrab)
1515
=== modified file 'src/string/tests/CMakeLists.txt'
--- src/string/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/string/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -17,4 +17,4 @@
17 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.17 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
18)18)
1919
20gtest_add_tests( compiz_string_test "" ${CMAKE_CURRENT_SOURCE_DIR}/printf/src/test-string-printf.cpp )20compiz_discover_tests (compiz_string_test)
2121
=== modified file 'src/timer/tests/CMakeLists.txt'
--- src/timer/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/timer/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -51,7 +51,7 @@
51 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 51 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
52 )52 )
5353
54gtest_add_tests (compiz_timer_callbacks "" ${CMAKE_CURRENT_SOURCE_DIR}/callbacks/src/test-timer-callbacks.cpp)54compiz_discover_tests (compiz_timer_callbacks)
55gtest_add_tests (compiz_timer_diffs "" ${CMAKE_CURRENT_SOURCE_DIR}/diffs/src/test-timer-diffs.cpp)55compiz_discover_tests (compiz_timer_diffs)
56gtest_add_tests (compiz_timer_set-values "" ${CMAKE_CURRENT_SOURCE_DIR}/set-values/src/test-timer-set-values.cpp)56compiz_discover_tests (compiz_timer_set-values)
57gtest_add_tests (compiz_timer_while-calling "" ${CMAKE_CURRENT_SOURCE_DIR}/while-calling/src/test-timer-set-times-while-calling.cpp)57compiz_discover_tests (compiz_timer_while-calling)
5858
=== modified file 'src/window/constrainment/tests/CMakeLists.txt'
--- src/window/constrainment/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/window/constrainment/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -16,4 +16,4 @@
16 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 16 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
17 )17 )
1818
19gtest_add_tests ( compiz_test_window_constrainment_to_hints "" ${CMAKE_CURRENT_SOURCE_DIR}/to-hints/src/test-window-constrainment-to-hints.cpp)19compiz_discover_tests (compiz_test_window_constrainment_to_hints)
2020
=== modified file 'src/window/extents/tests/CMakeLists.txt'
--- src/window/extents/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/window/extents/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16 )16 )
1717
18gtest_add_tests (compiz_test_window_extents_shift "" ${CMAKE_CURRENT_SOURCE_DIR}/shift/src/test-window-extents-shift.cpp)18compiz_discover_tests (compiz_test_window_extents_shift)
1919
=== modified file 'src/window/geometry-saver/tests/CMakeLists.txt'
--- src/window/geometry-saver/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/window/geometry-saver/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16 )16 )
1717
18gtest_add_tests (compiz_test_window_geometry_saver "" ${CMAKE_CURRENT_SOURCE_DIR}/window-geometry-saver/src/test-window-geometry-saver.cpp)18compiz_discover_tests (compiz_test_window_geometry_saver)
1919
=== modified file 'src/window/geometry/tests/CMakeLists.txt'
--- src/window/geometry/tests/CMakeLists.txt 2012-03-30 16:30:13 +0000
+++ src/window/geometry/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread. 15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16 )16 )
1717
18gtest_add_tests (compiz_test_window_geometry "" ${CMAKE_CURRENT_SOURCE_DIR}/window-geometry/src/test-window-geometry.cpp)18compiz_discover_tests (compiz_test_window_geometry)
1919
=== modified file 'src/wrapsystem/tests/CMakeLists.txt'
--- src/wrapsystem/tests/CMakeLists.txt 2012-05-21 08:58:41 +0000
+++ src/wrapsystem/tests/CMakeLists.txt 2012-07-05 05:37:21 +0000
@@ -15,4 +15,4 @@
15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.15 ${CMAKE_THREAD_LIBS_INIT} # Link in pthread.
16)16)
1717
18gtest_add_tests (${CMAKE_CURRENT_BINARY_DIR}/compiz_wrapsystem_test "" "test-wrapsystem.cpp")18compiz_discover_tests (compiz_wrapsystem_test)
19\ No newline at end of file19\ No newline at end of file

Subscribers

People subscribed via source and target branches