[Bf-blender-cvs] SVN commit: /data/svn/bf-blender [28769] branches/soc-2010-leifandersen: Added several folders for unit tests, along with the google testing framework, although there are currently no tests besides the ones built into the framework , as I haven't gotten them to compile yet.
Leif Andersen
leif.a.andersen at gmail.com
Fri May 14 18:33:58 CEST 2010
Revision: 28769
http://projects.blender.org/plugins/scmsvn/viewcvs.php?view=rev&root=bf-blender&revision=28769
Author: leifandersen
Date: 2010-05-14 18:33:58 +0200 (Fri, 14 May 2010)
Log Message:
-----------
Added several folders for unit tests, along with the google testing framework, although there are currently no tests besides the ones built into the framework, as I haven't gotten them to compile yet.
Added Paths:
-----------
branches/soc-2010-leifandersen/tests/
branches/soc-2010-leifandersen/tests/CMakeLists.txt
branches/soc-2010-leifandersen/tests/gtest-1.5.0/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/CHANGES
branches/soc-2010-leifandersen/tests/gtest-1.5.0/CMakeLists.txt
branches/soc-2010-leifandersen/tests/gtest-1.5.0/CONTRIBUTORS
branches/soc-2010-leifandersen/tests/gtest-1.5.0/COPYING
branches/soc-2010-leifandersen/tests/gtest-1.5.0/Makefile.am
branches/soc-2010-leifandersen/tests/gtest-1.5.0/Makefile.in
branches/soc-2010-leifandersen/tests/gtest-1.5.0/README
branches/soc-2010-leifandersen/tests/gtest-1.5.0/aclocal.m4
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/config.guess
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/config.h.in
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/config.sub
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/depcomp
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/install-sh
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/ltmain.sh
branches/soc-2010-leifandersen/tests/gtest-1.5.0/build-aux/missing
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/gtest.cbproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/gtest.groupproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/gtest_all.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/gtest_link.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/gtest_main.cbproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/codegear/gtest_unittest.cbproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/configure
branches/soc-2010-leifandersen/tests/gtest-1.5.0/configure.ac
branches/soc-2010-leifandersen/tests/gtest-1.5.0/fused-src/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/fused-src/gtest/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/fused-src/gtest/gtest-all.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/fused-src/gtest/gtest.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/fused-src/gtest/gtest_main.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-death-test.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-message.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-param-test.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-param-test.h.pump
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-spi.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-test-part.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest-typed-test.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest_pred_impl.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/gtest_prod.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-death-test-internal.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-filepath.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-internal.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-linked_ptr.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-param-util-generated.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-param-util-generated.h.pump
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-param-util.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-port.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-string.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-tuple.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-tuple.h.pump
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-type-util.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/include/gtest/internal/gtest-type-util.h.pump
branches/soc-2010-leifandersen/tests/gtest-1.5.0/m4/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/m4/acx_pthread.m4
branches/soc-2010-leifandersen/tests/gtest-1.5.0/m4/gtest.m4
branches/soc-2010-leifandersen/tests/gtest-1.5.0/make/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/make/Makefile
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest-md.sln
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest-md.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest.sln
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest_main-md.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest_main.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest_prod_test-md.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest_prod_test.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest_unittest-md.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/msvc/gtest_unittest.vcproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/python/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/prime_tables.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample1.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample1.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample10_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample1_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample2.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample2.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample2_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample3-inl.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample3_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample4.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample4.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample4_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample5_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample6_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample7_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample8_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/samples/sample9_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/fuse_gtest_files.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/gen_gtest_pred_impl.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/gtest-config.in
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/pump.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/test/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/scripts/test/Makefile
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-all.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-death-test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-filepath.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-internal-inl.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-port.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-test-part.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest-typed-test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/src/gtest_main.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-death-test_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-filepath_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-linked_ptr_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-listener_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-message_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-options_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-param-test2_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-param-test_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-param-test_test.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-port_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-test-part_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-tuple_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-typed-test2_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-typed-test_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-typed-test_test.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest-unittest-api_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_all_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_break_on_failure_unittest.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_break_on_failure_unittest_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_color_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_color_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_env_var_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_env_var_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_environment_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_filter_unittest.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_filter_unittest_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_help_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_help_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_list_tests_unittest.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_list_tests_unittest_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_main_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_no_test_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_output_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_output_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_output_test_golden_lin.txt
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_output_test_golden_win.txt
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_pred_impl_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_prod_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_repeat_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_shuffle_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_shuffle_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_sole_header_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_stress_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_test_utils.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_throw_on_failure_ex_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_throw_on_failure_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_throw_on_failure_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_uninitialized_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_uninitialized_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_unittest.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_xml_outfile1_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_xml_outfile2_test_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_xml_outfiles_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_xml_output_unittest.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_xml_output_unittest_.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/gtest_xml_test_utils.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/production.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/production.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/run_tests_util.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/test/run_tests_util_test.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/DebugProject.xcconfig
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/FrameworkTarget.xcconfig
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/General.xcconfig
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/ReleaseProject.xcconfig
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/StaticLibraryTarget.xcconfig
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Config/TestTarget.xcconfig
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Resources/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Resources/Info.plist
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/Info.plist
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/WidgetFramework.xcodeproj/project.pbxproj
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/runtests.sh
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/widget.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/widget.h
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Samples/FrameworkSample/widget_test.cc
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Scripts/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Scripts/runtests.sh
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/Scripts/versiongenerate.py
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/gtest.xcodeproj/
branches/soc-2010-leifandersen/tests/gtest-1.5.0/xcode/gtest.xcodeproj/project.pbxproj
branches/soc-2010-leifandersen/tests/pyunit/
branches/soc-2010-leifandersen/tests/pyunit/CMakeLists.txt
Added: branches/soc-2010-leifandersen/tests/CMakeLists.txt
===================================================================
--- branches/soc-2010-leifandersen/tests/CMakeLists.txt (rev 0)
+++ branches/soc-2010-leifandersen/tests/CMakeLists.txt 2010-05-14 16:33:58 UTC (rev 28769)
@@ -0,0 +1,2 @@
+add_subdirectory(gtest-1.5.0)
+add_subdirectory(pyunit)
Added: branches/soc-2010-leifandersen/tests/gtest-1.5.0/CHANGES
===================================================================
--- branches/soc-2010-leifandersen/tests/gtest-1.5.0/CHANGES (rev 0)
+++ branches/soc-2010-leifandersen/tests/gtest-1.5.0/CHANGES 2010-05-14 16:33:58 UTC (rev 28769)
@@ -0,0 +1,98 @@
+Changes for 1.5.0:
+
+ * New feature: assertions can be safely called in multiple threads
+ where the pthreads library is available.
+ * New feature: predicates used inside EXPECT_TRUE() and friends
+ can now generate custom failure messages.
+ * New feature: Google Test can now be compiled as a DLL.
+ * New feature: fused source files are included.
+ * New feature: prints help when encountering unrecognized Google Test flags.
+ * Experimental feature: CMake build script (requires CMake 2.6.4+).
+ * Experimental feature: the Pump script for meta programming.
+ * double values streamed to an assertion are printed with enough precision
+ to differentiate any two different values.
+ * Google Test now works on Solaris and AIX.
+ * Build and test script improvements.
+ * Bug fixes and implementation clean-ups.
+
+ Potentially breaking changes:
+
+ * Stopped supporting VC++ 7.1 with exceptions disabled.
+ * Dropped support for 'make install'.
+
+Changes for 1.4.0:
+
+ * New feature: the event listener API
+ * New feature: test shuffling
+ * New feature: the XML report format is closer to junitreport and can
+ be parsed by Hudson now.
+ * New feature: when a test runs under Visual Studio, its failures are
+ integrated in the IDE.
+ * New feature: /MD(d) versions of VC++ projects.
+ * New feature: elapsed time for the tests is printed by default.
+ * New feature: comes with a TR1 tuple implementation such that Boost
+ is no longer needed for Combine().
+ * New feature: EXPECT_DEATH_IF_SUPPORTED macro and friends.
+ * New feature: the Xcode project can now produce static gtest
+ libraries in addition to a framework.
+ * Compatibility fixes for Solaris, Cygwin, minGW, Windows Mobile,
+ Symbian, gcc, and C++Builder.
+ * Bug fixes and implementation clean-ups.
+
+Changes for 1.3.0:
+
+ * New feature: death tests on Windows, Cygwin, and Mac.
+ * New feature: ability to use Google Test assertions in other testing
+ frameworks.
+ * New feature: ability to run disabled test via
+ --gtest_also_run_disabled_tests.
+ * New feature: the --help flag for printing the usage.
+ * New feature: access to Google Test flag values in user code.
+ * New feature: a script that packs Google Test into one .h and one
+ .cc file for easy deployment.
+ * New feature: support for distributing test functions to multiple
+ machines (requires support from the test runner).
+ * Bug fixes and implementation clean-ups.
+
+Changes for 1.2.1:
+
+ * Compatibility fixes for Linux IA-64 and IBM z/OS.
+ * Added support for using Boost and other TR1 implementations.
+ * Changes to the build scripts to support upcoming release of Google C++
+ Mocking Framework.
+ * Added Makefile to the distribution package.
+ * Improved build instructions in README.
+
+Changes for 1.2.0:
+
+ * New feature: value-parameterized tests.
+ * New feature: the ASSERT/EXPECT_(NON)FATAL_FAILURE(_ON_ALL_THREADS)
+ macros.
+ * Changed the XML report format to match JUnit/Ant's.
+ * Added tests to the Xcode project.
+ * Added scons/SConscript for building with SCons.
+ * Added src/gtest-all.cc for building Google Test from a single file.
+ * Fixed compatibility with Solaris and z/OS.
+ * Enabled running Python tests on systems with python 2.3 installed,
+ e.g. Mac OS X 10.4.
+ * Bug fixes.
+
+Changes for 1.1.0:
+
+ * New feature: type-parameterized tests.
+ * New feature: exception assertions.
+ * New feature: printing elapsed time of tests.
+ * Improved the robustness of death tests.
+ * Added an Xcode project and samples.
+ * Adjusted the output format on Windows to be understandable by Visual Studio.
+ * Minor bug fixes.
+
+Changes for 1.0.1:
+
+ * Added project files for Visual Studio 7.1.
+ * Fixed issues with compiling on Mac OS X.
+ * Fixed issues with compiling on Cygwin.
+
+Changes for 1.0.0:
+
+ * Initial Open Source release of Google Test
Added: branches/soc-2010-leifandersen/tests/gtest-1.5.0/CMakeLists.txt
===================================================================
--- branches/soc-2010-leifandersen/tests/gtest-1.5.0/CMakeLists.txt (rev 0)
+++ branches/soc-2010-leifandersen/tests/gtest-1.5.0/CMakeLists.txt 2010-05-14 16:33:58 UTC (rev 28769)
@@ -0,0 +1,384 @@
+########################################################################
+# Experimental CMake build script for Google Test.
+#
+# Consider this a prototype. It will change drastically. For now,
+# this is only for people on the cutting edge.
+#
+# To run the tests for Google Test itself on Linux, use 'make test' or
+# ctest. You can select which tests to run using 'ctest -R regex'.
+# For more options, run 'ctest --help'.
+
+# For hermetic builds, we may need to tell CMake to use compiler in a
+# specific location.
+if (gtest_compiler)
+ include(CMakeForceCompiler)
+ cmake_force_c_compiler("${gtest_compiler}" "")
+ cmake_force_cxx_compiler("${gtest_compiler}" "")
+endif()
+
+########################################################################
+#
+# Project-wide settings
+
+# Name of the project.
+#
+# CMake files in this project can refer to the root source directory
+# as ${gtest_SOURCE_DIR} and to the root binary directory as
+# ${gtest_BINARY_DIR}.
+# Language "C" is required for find_package(Threads).
+project(gtest CXX C)
+cmake_minimum_required(VERSION 2.6.4)
+
+if (MSVC)
+ # For MSVC, CMake sets certain flags to defaults we want to override.
+ # This replacement code is taken from sample in the CMake Wiki at
+ # http://www.cmake.org/Wiki/CMake_FAQ#Dynamic_Replace.
+ foreach (flag_var
+ CMAKE_CXX_FLAGS CMAKE_CXX_FLAGS_DEBUG CMAKE_CXX_FLAGS_RELEASE
+ CMAKE_CXX_FLAGS_MINSIZEREL CMAKE_CXX_FLAGS_RELWITHDEBINFO)
+ # In hermetic build environments, tests may not have access to MS runtime
+ # DLLs, so this replaces /MD (CRT libraries in DLLs) with /MT (static CRT
+ # libraries).
+ string(REPLACE "/MD" "-MT" ${flag_var} "${${flag_var}}")
+ # We prefer more strict warning checking for building Google Test.
+ # Replaces /W3 with /W4 in defaults.
+ string(REPLACE "/W3" "-W4" ${flag_var} "${${flag_var}}")
+ endforeach()
+endif()
+
+# Where gtest's .h files can be found.
+include_directories(
+ ${gtest_SOURCE_DIR}/include
+ ${gtest_SOURCE_DIR})
+
+# Where the gtest libraries can be found.
+link_directories(
+ ${gtest_BINARY_DIR}/src)
+
+# Defines CMAKE_USE_PTHREADS_INIT and CMAKE_THREAD_LIBS_INIT.
+find_package(Threads)
+
+# Defines the compiler/linker flags used to build gtest. You can
+# tweak these definitions to suit your need. A variable's value is
+# empty before it's explicitly assigned to.
+
+if (MSVC)
+ # Newlines inside flags variables break CMake's NMake generator.
+ set(cxx_base_flags "-GS -W4 -WX -wd4275 -nologo -J -Zi")
+ set(cxx_base_flags "${cxx_base_flags} -D_UNICODE -DUNICODE -DWIN32 -D_WIN32")
+ set(cxx_base_flags "${cxx_base_flags} -DSTRICT -DWIN32_LEAN_AND_MEAN")
+ set(cxx_exception_flags "-EHsc -D_HAS_EXCEPTIONS=1")
+ set(cxx_no_exception_flags "-D_HAS_EXCEPTIONS=0")
+ set(cxx_no_rtti_flags "-GR-")
+elseif (CMAKE_COMPILER_IS_GNUCXX)
+ set(cxx_base_flags "-Wall -Wshadow")
+ set(cxx_exception_flags "-fexceptions")
+ set(cxx_no_exception_flags "-fno-exceptions")
+ # Until version 4.3.2, GCC doesn't define a macro to indicate
+ # whether RTTI is enabled. Therefore we define GTEST_HAS_RTTI
+ # explicitly.
+ set(cxx_no_rtti_flags "-fno-rtti -DGTEST_HAS_RTTI=0")
+ set(cxx_strict_flags "-Wextra")
+elseif (CMAKE_CXX_COMPILER_ID STREQUAL "SunPro")
+ set(cxx_exception_flags "-features=except")
+ # Sun Pro doesn't provide macros to indicate whether exceptions and
+ # RTTI are enabled, so we define GTEST_HAS_* explicitly.
+ set(cxx_no_exception_flags "-features=no%except -DGTEST_HAS_EXCEPTIONS=0")
+ set(cxx_no_rtti_flags "-features=no%rtti -DGTEST_HAS_RTTI=0")
+elseif (CMAKE_CXX_COMPILER_ID STREQUAL "VisualAge" OR
+ CMAKE_CXX_COMPILER_ID STREQUAL "XL")
+ # CMake 2.8 changes Visual Age's compiler ID to "XL".
+ set(cxx_exception_flags "-qeh")
+ set(cxx_no_exception_flags "-qnoeh")
+ # Until version 9.0, Visual Age doesn't define a macro to indicate
+ # whether RTTI is enabled. Therefore we define GTEST_HAS_RTTI
+ # explicitly.
+ set(cxx_no_rtti_flags "-qnortti -DGTEST_HAS_RTTI=0")
+endif()
+
+if (CMAKE_USE_PTHREADS_INIT) # The pthreads library is available.
+ set(cxx_base_flags "${cxx_base_flags} -DGTEST_HAS_PTHREAD=1")
+endif()
+
+# For building gtest's own tests and samples.
+set(cxx_exception "${CMAKE_CXX_FLAGS} ${cxx_base_flags} ${cxx_exception_flags}")
+set(cxx_no_exception
+ "${CMAKE_CXX_FLAGS} ${cxx_base_flags} ${cxx_no_exception_flags}")
+set(cxx_default "${cxx_exception}")
+set(cxx_no_rtti "${cxx_default} ${cxx_no_rtti_flags}")
+set(cxx_use_own_tuple "${cxx_default} -DGTEST_USE_OWN_TR1_TUPLE=1")
+
+# For building the gtest libraries.
+set(cxx_strict "${cxx_default} ${cxx_strict_flags}")
+
+########################################################################
+#
+# Defines the gtest & gtest_main libraries. User tests should link
+# with one of them.
+function(cxx_library_with_type name type cxx_flags)
+ # type can be either STATIC or SHARED to denote a static or shared library.
+ # ARGN refers to additional arguments after 'cxx_flags'.
+ add_library(${name} ${type} ${ARGN})
+ set_target_properties(${name}
+ PROPERTIES
+ COMPILE_FLAGS "${cxx_flags}")
+ if (CMAKE_USE_PTHREADS_INIT)
+ target_link_libraries(${name} ${CMAKE_THREAD_LIBS_INIT})
+ endif()
+endfunction()
+
+function(cxx_static_library name cxx_flags)
+ cxx_library_with_type(${name} STATIC "${cxx_flags}" ${ARGN})
+endfunction()
+
+function(cxx_shared_library name cxx_flags)
+ cxx_library_with_type(${name} SHARED "${cxx_flags}" ${ARGN})
@@ Diff output truncated at 10240 characters. @@
More information about the Bf-blender-cvs
mailing list