From: <svn...@op...> - 2009-04-11 18:28:38
|
Author: scriptor Date: Sat Apr 11 20:28:25 2009 New Revision: 5575 URL: http://www.opensync.org/changeset/5575 Log: Some remarks about RUN_LONG_TESTS. These are tests that run under valgrind. Therefore they can take quite some time. Timeouts for those tests can be set in CTestConfig.cmake and in tests/CMakeLists.txt. Modified: plugins/ldap-sync/INSTALL plugins/ldap-sync/README.lyx Modified: plugins/ldap-sync/INSTALL ============================================================================== --- plugins/ldap-sync/INSTALL Sat Apr 11 20:28:16 2009 (r5574) +++ plugins/ldap-sync/INSTALL Sat Apr 11 20:28:25 2009 (r5575) @@ -78,10 +78,33 @@ II. Running the tests: -cd build +mkdir build_debug +cd build_debug + +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DUPDATE_TYPE=svn -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON -DRUN_LONG_TESTS=off /home/user1/libopensync-0.39/libopensync-plugin-ldap-0.39 + +or: + +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" cmake -DCMAKE_INSTALL_PREFIX=/usr/local -DUPDATE_TYPE=svn -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON -DRUN_LONG_TESTS=on /home/user1/libopensync-0.39/libopensync-plugin-ldap-0.39 + +make make test +Tests with valgrind take quite some time: They are run only when cmake +is run with "-DRUN_LONG_TESTS=on". + +reset; time make test +(...) +100% tests passed, 0 tests failed out of 162 + +real 277m22.568s +user 217m33.966s +sys 24m59.372s + + + + III. Display a list of tests: cd build Modified: plugins/ldap-sync/README.lyx ============================================================================== --- plugins/ldap-sync/README.lyx Sat Apr 11 20:28:16 2009 (r5574) +++ plugins/ldap-sync/README.lyx Sat Apr 11 20:28:25 2009 (r5575) @@ -278,13 +278,74 @@ \end_layout \begin_layout LyX-Code -cd build +mkdir build_debug +\end_layout + +\begin_layout LyX-Code +cd build_debug +\end_layout + +\begin_layout LyX-Code +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" cmake -DCMAKE_INSTALL_PREFIX=/usr/lo +cal -DUPDATE_TYPE=svn -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON + -DRUN_LONG_TESTS=off /home/user1/libopensync-0.39/libopensync-plugin-ldap-0.39 +\end_layout + +\begin_layout Standard +or: +\end_layout + +\begin_layout LyX-Code +PKG_CONFIG_PATH="/usr/local/lib/pkgconfig/" cmake -DCMAKE_INSTALL_PREFIX=/usr/lo +cal -DUPDATE_TYPE=svn -DCMAKE_BUILD_TYPE=Debug -DCMAKE_VERBOSE_MAKEFILE=ON + -DRUN_LONG_TESTS=on /home/user1/libopensync-0.39/libopensync-plugin-ldap-0.39 +\end_layout + +\begin_layout Standard +and then: +\end_layout + +\begin_layout LyX-Code +make \end_layout \begin_layout LyX-Code make test \end_layout +\begin_layout Standard +Tests with valgrind take quite some time: They are run only when cmake is + run with "-DRUN_LONG_TESTS=on". +\end_layout + +\begin_layout LyX-Code +reset; time make test +\end_layout + +\begin_layout LyX-Code +(...) +\end_layout + +\begin_layout LyX-Code +100% tests passed, 0 tests failed out of 162 +\end_layout + +\begin_layout LyX-Code +real 277m22.568s +\end_layout + +\begin_layout LyX-Code +user 217m33.966s +\end_layout + +\begin_layout LyX-Code +sys 24m59.372s +\end_layout + +\begin_layout LyX-Code + +\end_layout + \begin_layout Subsection Display a list of tests \end_layout |