From mboxrd@z Thu Jan 1 00:00:00 1970 From: Lukas Gradl Subject: Re: [PATCH] Add googletest Date: Tue, 31 May 2016 08:53:17 -0500 Message-ID: <87lh2q2v1u.fsf@openmailbox.org> References: <874m9fwa0k.fsf@openmailbox.org> Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="=-=-=" Return-path: Received: from eggs.gnu.org ([2001:4830:134:3::10]:49707) by lists.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7k6u-00010P-1L for guix-devel@gnu.org; Tue, 31 May 2016 09:53:33 -0400 Received: from Debian-exim by eggs.gnu.org with spam-scanned (Exim 4.71) (envelope-from ) id 1b7k6p-0005tu-U1 for guix-devel@gnu.org; Tue, 31 May 2016 09:53:31 -0400 Received: from mail2.openmailbox.org ([62.4.1.33]:51103) by eggs.gnu.org with esmtp (Exim 4.71) (envelope-from ) id 1b7k6p-0005tU-Iy for guix-devel@gnu.org; Tue, 31 May 2016 09:53:27 -0400 In-Reply-To: <874m9fwa0k.fsf@openmailbox.org> (Lukas Gradl's message of "Mon, 30 May 2016 15:44:59 -0500") List-Id: "Development of GNU Guix and the GNU System distribution." List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: guix-devel-bounces+gcggd-guix-devel=m.gmane.org@gnu.org Sender: "Guix-devel" To: guix-devel@gnu.org --=-=-= Content-Type: text/plain Hello, Sorry, I accidently attached the wrong patch. Please disregard the patch in my previous email, attached is an updated one. Sorry about that! Best, Lukas --=-=-= Content-Type: text/x-patch Content-Disposition: inline; filename=0001-gnu-check-Add-googletest.patch >From f5f229eafcf2ebf24703e6becc291b8378dff2e0 Mon Sep 17 00:00:00 2001 From: Lukas Gradl Date: Tue, 31 May 2016 08:48:29 -0500 Subject: [PATCH] gnu: check: Add googletest. * gnu/packages/check.scm (googletest): New variable. --- gnu/packages/check.scm | 42 ++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 42 insertions(+) diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 9eef7a9..fca2e98 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -24,6 +24,7 @@ (define-module (gnu packages check) #:use-module (gnu packages) #:use-module (gnu packages autotools) + #:use-module (gnu packages python) #:use-module (guix licenses) #:use-module (guix packages) #:use-module (guix download) @@ -193,3 +194,44 @@ in the code. Cppcheck primarily detects the types of bugs that the compilers normally do not detect. The goal is to detect only real errors in the code (i.e. have zero false positives).") (license gpl3+))) + + +(define-public googletest + (package + (name "googletest") + (version "1.7.0") + (source + (origin + (method url-fetch) + (uri + (string-append + "https://github.com/google/googletest/archive/release-" + version ".tar.gz")) + (file-name (string-append name "-" version ".tar.gz")) + (sha256 + (base32 + "1k0nf1l9cb3prdmsvaajl5i31bx86c1mw0d5jgzykz7rzm36afpp")))) + (build-system cmake-build-system) + (native-inputs + `(("python-2" ,python-2))) + (arguments + `(#:configure-flags '("-Dgtest_build_tests=ON") + #:phases (modify-phases %standard-phases + (replace 'install + (lambda _ + (let ((out (assoc-ref %outputs "out"))) + (and + (mkdir-p (string-append out "/lib")) + (mkdir-p (string-append out "/include")) + (zero? + (system* "cp" "-r" + "../googletest-release-1.7.0/include" + out)) + (zero? (system* "cp" "libgtest.a" "libgtest_main.a" + (string-append out "/lib")))))))))) + (home-page "https://github.com/google/googletest/") + (synopsis "Test discovery and XUnit test framework") + (description "Google Test (GTest) features an XUnit test framework, +automated test discovery, death tests, assertions, parameterized tests and XML +test report generation.") + (license bsd-3))) -- 2.7.4 --=-=-=--