debian/0000775000000000000000000000000012052576216007176 5ustar debian/libgtest-dev.docs0000664000000000000000000000000711575173502012436 0ustar README debian/NEWS.Debian0000664000000000000000000000061111575173502011054 0ustar gtest (1.6.0-1) unstable; urgency=low Use of precompiled libgtest is no longer recommended. See README.Debian for instructions on using gtest with your projects. The precompiled shared library has been removed and the static library will be removed in a future upload. The script gtest-config is no longer supplied since upstream's autoconfigure-based build is deprecated. debian/source/0000775000000000000000000000000011575173502010476 5ustar debian/source/format0000664000000000000000000000001411575173502011704 0ustar 3.0 (quilt) debian/README.Debian0000664000000000000000000000166211575173502011244 0ustar Use of precompiled libgtest Not Recommended ------------------------------------------- The Google C++ Testing Framework uses conditional compilation for some things. Because of the C++ "One Definition Rule", gtest must be compiled with exactly the same flags as your C++ code under test. Because this is hard to manage, upstream no longer recommends using precompiled libraries [1]. This release still contains a precompiled libgtest, but it will be removed in a future upload. Using GTest with your project ----------------------------- See the upsream README for instructions on using gtest with your project. The sources for libgtest are installed into /usr/src/gtest. See /usr/share/doc/libgtest-dev/examples for a complete example including a sample makefile. [1] http://groups.google.com/group/googletestframework/browse_thread/thread/668eff1cebf5309d -- Steve M. Robbins , Sun, 12 Jun 2011 12:27:48 -0500 debian/control0000664000000000000000000000207412052576352010605 0ustar Source: gtest Homepage: http://code.google.com/p/googletest/ Section: devel Maintainer: Ubuntu Developers XSBC-Original-Maintainer: Steve M. Robbins Uploaders: Giuseppe Iuculano Priority: optional Build-Depends: debhelper (>= 9), cmake, python Standards-Version: 3.9.3 Vcs-Git: git://git.debian.org/git/collab-maint/gtest.git Vcs-Browser: http://git.debian.org/?p=collab-maint/gtest.git Package: libgtest-dev Architecture: all Multi-Arch: foreign Section: libdevel Depends: ${shlibs:Depends}, ${misc:Depends} Description: Google's framework for writing C++ tests - header files Google's framework for writing C++ tests on a variety of platforms. Based on the xUnit architecture. Supports automatic test discovery, a rich set of assertions, user-defined assertions, death tests, fatal and non-fatal failures, value- and type-parameterized tests, various options for running the tests, and XML test report generation. . This package contains the header files needed to link programs against gtest. debian/libgtest-dev.install0000664000000000000000000000013511726147276013165 0ustar include/gtest usr/include src usr/src/gtest CMakeLists.txt usr/src/gtest cmake usr/src/gtest debian/copyright0000664000000000000000000000377511575173502011145 0ustar Format-Specification: http://wiki.debian.org/Proposals/CopyrightFormat?action=recall&rev=143 Upstream-Name: Google C++ Testing Framework Upstream-Source: http://code.google.com/p/googletest/ Files: * Copyright: Copyright 2008, Google Inc. License: BSD-C3 Copyright 2008, Google Inc. All rights reserved. Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met: * Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer. * Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the documentation and/or other materials provided with the distribution. * Neither the name of Google Inc. nor the names of its contributors may be used to endorse or promote products derived from this software without specific prior written permission. THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. Files: debian/* Copyright: Copyright 2009, Steve Robbins , Giuseppe Iuculano Bug-Debian: http://bugs.debian.org/630188 --- The information above should follow the Patch Tagging Guidelines, please checkout http://dep.debian.net/deps/dep3/ to learn about the format. Here are templates for supplementary fields that you might want to add: Origin: , Bug: Bug-Debian: http://bugs.debian.org/ Bug-Ubuntu: https://launchpad.net/bugs/ Forwarded: Reviewed-By: Last-Update: --- gtest-1.6.0.orig/Makefile.am +++ gtest-1.6.0/Makefile.am @@ -238,7 +238,7 @@ TESTS += samples/sample1_unittest check_PROGRAMS += samples/sample1_unittest samples_sample1_unittest_SOURCES = samples/sample1_unittest.cc samples_sample1_unittest_LDADD = lib/libgtest_main.la \ - lib/libgtest.la \ + lib/libgtest.la \ samples/libsamples.la # Another sample. It also verifies that libgtest works. --- gtest-1.6.0.orig/make/Makefile +++ gtest-1.6.0/make/Makefile @@ -14,7 +14,7 @@ # Points to the root of Google Test, relative to where this file is. # Remember to tweak this if you move this file. -GTEST_DIR = .. +GTEST_DIR = /usr/src/gtest # Where to find user code. USER_DIR = ../samples @@ -31,8 +31,8 @@ TESTS = sample1_unittest # All Google Test headers. Usually you shouldn't change this # definition. -GTEST_HEADERS = $(GTEST_DIR)/include/gtest/*.h \ - $(GTEST_DIR)/include/gtest/internal/*.h +GTEST_HEADERS = /usr/include/gtest/*.h \ + /usr/include/gtest/internal/*.h # House-keeping build targets. debian/patches/also-dont-ouptut-test-case-if-filtered-out.patch0000664000000000000000000000075012023305362021757 0ustar --- gtest-1.6.0.orig/src/gtest.cc +++ gtest-1.6.0/src/gtest.cc @@ -3274,6 +3274,9 @@ void XmlUnitTestResultPrinter::OutputXml // Prints an XML representation of a TestCase object void XmlUnitTestResultPrinter::PrintXmlTestCase(FILE* out, const TestCase& test_case) { + if (test_case.should_skip_report ()) + return; + fprintf(out, " name(); test_case->set_should_run(false); + bool any_matched_filter = false; + for (size_t j = 0; j < test_case->test_info_list().size(); j++) { TestInfo* const test_info = test_case->test_info_list()[j]; const String test_name(test_info->name()); @@ -5711,6 +5716,7 @@ int UnitTestImpl::FilterTests(ReactionTo internal::UnitTestOptions::FilterMatchesTest(test_case_name, test_name); test_info->matches_filter_ = matches_filter; + any_matched_filter |= matches_filter; const bool is_runnable = (GTEST_FLAG(also_run_disabled_tests) || !is_disabled) && @@ -5727,6 +5733,8 @@ int UnitTestImpl::FilterTests(ReactionTo test_info->should_run_ = is_selected; test_case->set_should_run(test_case->should_run() || is_selected); } + + test_case->set_should_skip_report(!any_matched_filter); } return num_selected_tests; } --- gtest-1.6.0.orig/fused-src/gtest/gtest.h +++ gtest-1.6.0/fused-src/gtest/gtest.h @@ -17693,6 +17693,9 @@ class GTEST_API_ TestInfo { // contains the character 'A' or starts with "Foo.". bool should_run() const { return should_run_; } + // Returns true if the test was filtered out by --gtest_filter + bool filtered_out() const { return !matches_filter_; } + // Returns the result of the test. const TestResult* result() const { return &result_; } @@ -17797,6 +17800,9 @@ class GTEST_API_ TestCase { // Returns true if any test in this test case should run. bool should_run() const { return should_run_; } + // Returns true if this test case should be skipped in the report. + bool should_skip_report() const { return should_skip_report_; } + // Gets the number of successful tests in this test case. int successful_test_count() const; @@ -17843,6 +17849,7 @@ class GTEST_API_ TestCase { // Sets the should_run member. void set_should_run(bool should) { should_run_ = should; } + void set_should_skip_report(bool should) { should_skip_report_ = should; } // Adds a TestInfo to this test case. Will delete the TestInfo upon // destruction of the TestCase object. @@ -17911,6 +17918,8 @@ class GTEST_API_ TestCase { Test::TearDownTestCaseFunc tear_down_tc_; // True iff any test in this test case should run. bool should_run_; + // True if this test case should not be reported + bool should_skip_report_; // Elapsed time, in milliseconds. TimeInMillis elapsed_time_; --- gtest-1.6.0.orig/src/gtest.cc +++ gtest-1.6.0/src/gtest.cc @@ -3224,6 +3224,9 @@ void XmlUnitTestResultPrinter::OutputXml void XmlUnitTestResultPrinter::OutputXmlTestInfo(::std::ostream* stream, const char* test_case_name, const TestInfo& test_info) { + if (test_info.filtered_out ()) + return; + const TestResult& result = *test_info.result(); *stream << " name(); test_case->set_should_run(false); + bool any_matched_filter = false; + for (size_t j = 0; j < test_case->test_info_list().size(); j++) { TestInfo* const test_info = test_case->test_info_list()[j]; const String test_name(test_info->name()); @@ -4407,6 +4412,7 @@ int UnitTestImpl::FilterTests(ReactionTo internal::UnitTestOptions::FilterMatchesTest(test_case_name, test_name); test_info->matches_filter_ = matches_filter; + any_matched_filter |= matches_filter; const bool is_runnable = (GTEST_FLAG(also_run_disabled_tests) || !is_disabled) && @@ -4423,6 +4429,8 @@ int UnitTestImpl::FilterTests(ReactionTo test_info->should_run_ = is_selected; test_case->set_should_run(test_case->should_run() || is_selected); } + + test_case->set_should_skip_report(!any_matched_filter); } return num_selected_tests; } --- gtest-1.6.0.orig/include/gtest/gtest.h +++ gtest-1.6.0/include/gtest/gtest.h @@ -668,6 +668,9 @@ class GTEST_API_ TestInfo { // contains the character 'A' or starts with "Foo.". bool should_run() const { return should_run_; } + // Returns true if the test was filtered out by --gtest_filter + bool filtered_out() const { return !matches_filter_; } + // Returns the result of the test. const TestResult* result() const { return &result_; } @@ -772,6 +775,9 @@ class GTEST_API_ TestCase { // Returns true if any test in this test case should run. bool should_run() const { return should_run_; } + // Returns true if this test case should be skipped in the report. + bool should_skip_report() const { return should_skip_report_; } + // Gets the number of successful tests in this test case. int successful_test_count() const; @@ -818,6 +824,7 @@ class GTEST_API_ TestCase { // Sets the should_run member. void set_should_run(bool should) { should_run_ = should; } + void set_should_skip_report(bool should) { should_skip_report_ = should; } // Adds a TestInfo to this test case. Will delete the TestInfo upon // destruction of the TestCase object. @@ -886,6 +893,8 @@ class GTEST_API_ TestCase { Test::TearDownTestCaseFunc tear_down_tc_; // True iff any test in this test case should run. bool should_run_; + // True if this test case should not be reported + bool should_skip_report_; // Elapsed time, in milliseconds. TimeInMillis elapsed_time_; debian/patches/series0000664000000000000000000000016012023305434012025 0ustar dont-report-on-filtered-out-tests.patch also-dont-ouptut-test-case-if-filtered-out.patch debian-changes-1.6.0-1 debian/gtest-config.10000664000000000000000000000643111575173502011655 0ustar .TH GTEST-CONFIG "1" "January 2009" "gtest-config 1.2.1" "User Commands" .SH NAME gtest-config \- Google's framework for writing C++ test .SH SYNOPSIS .B gtest-config [\fIOPTIONS\fR...] .SH DESCRIPTION The `gtest\-config' script provides access to the necessary compile and linking flags to connect with Google C++ Testing Framework, both in a build prior to installation, and on the system proper after installation. The installation overrides may be issued in combination with any other queries, but will only affect installation queries if called on a built but not installed gtest. The installation queries may not be issued with any other types of queries, and only one installation query may be made at a time. The version queries and compiler flag queries may be combined as desired but not mixed. Different version queries are always combined with logical "and" semantics, and only the last of any particular query is used while all previous ones ignored. All versions must be specified as a sequence of numbers separated by periods. Compiler flag queries output the union of the sets of flags when combined. .IP Examples: .IP gtest\-config \fB\-\-min\-version\fR=\fI1\fR.0 || echo "Insufficient Google Test version." .IP g++ $(gtest\-config \fB\-\-cppflags\fR \fB\-\-cxxflags\fR) \fB\-o\fR foo.o \fB\-c\fR foo.cpp g++ $(gtest\-config \fB\-\-ldflags\fR \fB\-\-libs\fR) \fB\-o\fR foo foo.o .IP # When using a built but not installed Google Test: g++ $(../../my_gtest_build/scripts/gtest\-config ...) ... .IP # When using an installed Google Test, but with installation overrides: export GTEST_PREFIX="/opt" g++ $(gtest\-config \fB\-\-libdir=\fR"/opt/lib64" ...) ... .IP Help: .TP \fB\-\-usage\fR brief usage information .TP \fB\-\-help\fR display this help message .IP Installation Overrides: .TP \fB\-\-prefix=\fR overrides the installation prefix .TP \fB\-\-exec\-prefix=\fR overrides the executable installation prefix .TP \fB\-\-libdir=\fR overrides the library installation prefix .TP \fB\-\-includedir=\fR overrides the header file installation prefix .IP Installation Queries: .TP \fB\-\-prefix\fR installation prefix .TP \fB\-\-exec\-prefix\fR executable installation prefix .TP \fB\-\-libdir\fR library installation directory .TP \fB\-\-includedir\fR header file installation directory .TP \fB\-\-version\fR the version of the Google Test installation .IP Version Queries: .TP \fB\-\-min\-version\fR=\fIVERSION\fR return 0 if the version is at least VERSION .TP \fB\-\-exact\-version\fR=\fIVERSION\fR return 0 if the version is exactly VERSION .TP \fB\-\-max\-version\fR=\fIVERSION\fR return 0 if the version is at most VERSION .IP Compilation Flag Queries: .TP \fB\-\-cppflags\fR compile flags specific to the C\-like preprocessors .TP \fB\-\-cxxflags\fR compile flags appropriate for C++ programs .TP \fB\-\-ldflags\fR linker flags .TP \fB\-\-libs\fR libraries for linking .SH "SEE ALSO" The full documentation for .B gtest-config is maintained as a Texinfo manual. If the .B info and .B gtest-config programs are properly installed at your site, the command .IP .B info gtest-config .PP should give you access to the complete manual. .SH AUTHOR gtest is Copyright 2008, Google Inc. .PP This manual page was written by Giuseppe Iuculano , for the Debian project (but may be used by others). debian/changelog0000664000000000000000000001036312052576523011054 0ustar gtest (1.6.0-1ubuntu6) raring; urgency=low * libgtest-dev is architecture-independent as it only contains headers and source files * Mark libgtest-dev Multi-Arch: foreign * Bump debhelper compat level to 9 * Bump Standards-Version to 3.9.3 -- Ricardo Salveti de Araujo Tue, 20 Nov 2012 01:19:25 -0200 gtest (1.6.0-1ubuntu5) quantal; urgency=low * also-dont-ouptut-test-case-if-filtered-out.patch, dont-report-on-filtered-out-tests.patch: - the XML output contains currently info about all tests. Add an option to include only tests actually executed in this XML report. Thanks tvoss (LP: #1046239) -- Didier Roche Mon, 10 Sep 2012 08:42:43 +0200 gtest (1.6.0-1ubuntu4) precise; urgency=low * debian/libgtest-dev.install: - also add the cmake subdirectory as it's needed by CMakeLists.txt -- Didier Roche Thu, 08 Mar 2012 16:26:48 +0100 gtest (1.6.0-1ubuntu3) precise; urgency=low * debian/libgtest-dev.install: - ship the CMakeLists.txt in /usr/src/gtest/ to enable inclusion in cmake project now that we don't distribute static library. (ideally that would go in the cmake directory and we will generate the file to look at /usr/src/gtest/) -- Didier Roche Thu, 08 Mar 2012 13:52:03 +0100 gtest (1.6.0-1ubuntu2) precise; urgency=low * Stop distributing static library (although still build it, to ensure gtest works). Upstream recommends against shipping the libary at all, just the source. (See: http://code.google.com/p/googletest/wiki/FAQ) The Debian maintainer plans to do this also (see BTS: 639795); do it in Ubuntu now to fulfil MIR requirements. -- Christopher James Halse Rogers Thu, 08 Mar 2012 17:45:29 +1100 gtest (1.6.0-1ubuntu1) precise; urgency=low * Build all libraries with -fPIC (LP: #949244) -- Chase Douglas Wed, 07 Mar 2012 11:28:38 -0800 gtest (1.6.0-1) unstable; urgency=low * New upstream. Closes: #630188. patches/fix-linking.patch: Remove. * rules: * control: Switch to cmake (upstream deprecated autoconf build). Build only static library (remove libgtest0 package). Install full source and example files. -- Steve M. Robbins Sun, 12 Jun 2011 10:58:03 -0500 gtest (1.5.0-3) unstable; urgency=low * Remove i386 symbols file. -- Steve M. Robbins Fri, 25 Mar 2011 00:16:20 -0500 gtest (1.5.0-2) unstable; urgency=low * patches/fix-linking.patch: New. Add libgtest.la to LDADD for sample1_unittest and gtest_all_test. Closes: #554748. * control: * rules: Rewrite rules to build using dh with autoreconf. Build-depend on libtool (for libtoolize). * control: Use debhelper v8. Update Standards-Version to 3.9.1. -- Steve M. Robbins Sun, 20 Mar 2011 13:14:00 -0500 gtest (1.5.0-1) unstable; urgency=low * [5b03f3e] Imported Upstream version 1.5.0 * [22d9d7e] Updated i386 symbols file * [b7e31c3] Bump to Standards-Version 3.8.4, no changes needed * [dab6526] Switch to dpkg-source 3.0 (quilt) format -- Giuseppe Iuculano Wed, 21 Apr 2010 10:58:20 +0200 gtest (1.4.0-1) unstable; urgency=low * [ab9eec3] debian/control: Add python to Build-Depends and fix FTBFS on Ubuntu karmic (Closes: #532768) * [c00552f] debian/libgtest0.symbols.i386: Updated * [0ae1048] Imported Upstream version 1.4.0 * [5d7c523] Updated my email address and removed DM-Upload-Allowed control field * [e99a44e] Updated to Standards-Version 3.8.3 (no changes needed) * [416e772] updated libgtest0.symbols.i386 -- Giuseppe Iuculano Sat, 10 Oct 2009 13:40:05 +0200 gtest (1.3.0-1) unstable; urgency=low * [d9b99fd] New Upstream Version 1.3.0 * [c138a66] Added libgtest0 symbols file for i386 arch * [7880f06] Updated to standards version 3.8.1 (No changes needed) * [8311a82] debian/control: Use the new dh_auto_configure -- Giuseppe Iuculano Sun, 29 Mar 2009 20:07:11 +0200 gtest (1.2.1-1) unstable; urgency=low [ Giuseppe Iuculano ] * Initial Debian packaging. (Closes: #498162) -- Steve M. Robbins Sat, 07 Mar 2009 15:38:05 -0600