From 74471036f63d5b4d578cd79972221100d992d7e1 Mon Sep 17 00:00:00 2001 From: Julien Lepiller Date: Thu, 19 Dec 2019 15:34:47 +0100 Subject: gnu: behave: Fix tests. * gnu/packages/check.scm (behave): Add missing directory to PYTHONPATH before tests. --- gnu/packages/check.scm | 10 +++++++++- 1 file changed, 9 insertions(+), 1 deletion(-) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index c0cb4ae7fd..6619142b50 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -1962,7 +1962,15 @@ backported from Python 2.7 for Python 2.4+.") ("python-parse" ,python-parse) ("python-parse-type" ,python-parse-type))) (arguments - '(#:test-target "behave_test")) + '(#:test-target "behave_test" + #:phases + (modify-phases %standard-phases + (add-before 'check 'fix-library-loading + (lambda _ + ;; Otherwise, tests fail with no module named 'path' + (setenv "PYTHONPATH" (string-append (getenv "PYTHONPATH") ":" + (getcwd) "/tasks/_vendor")) + #t))))) (home-page "https://github.com/behave/behave") (synopsis "Python behavior-driven development") (description -- cgit v1.2.3 From 8aa59a54e98efbe237a68917f014baf94a490270 Mon Sep 17 00:00:00 2001 From: Ricardo Wurmus Date: Thu, 19 Dec 2019 23:06:01 +0100 Subject: gnu: catch-framework2: Update to 2.1.2. * gnu/packages/check.scm (catch-framework2): Update to 2.1.2. (catch-framework2-1): New variable. * gnu/packages/cpp.scm (fifo-map)[native-inputs]: Use catch-framework2-1. --- gnu/packages/check.scm | 24 +++++++++++++++++++++++- 1 file changed, 23 insertions(+), 1 deletion(-) (limited to 'gnu/packages/check.scm') diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm index 6619142b50..f61e96422b 100644 --- a/gnu/packages/check.scm +++ b/gnu/packages/check.scm @@ -196,7 +196,7 @@ supervised tests.") multi-paradigm automated test framework for C++ and Objective-C.") (license license:boost1.0))) -(define-public catch-framework2 +(define-public catch-framework2-1 (package (name "catch2") (version "1.12.2") @@ -216,6 +216,28 @@ multi-paradigm automated test framework for C++ and Objective-C.") a multi-paradigm automated test framework for C++ and Objective-C.") (license license:boost1.0))) +(define-public catch-framework2 + (package + (name "catch2") + (version "2.1.2") + (home-page "https://github.com/catchorg/Catch2") + (source (origin + (method git-fetch) + (uri (git-reference + (url "https://github.com/catchorg/Catch2") + (commit (string-append "v" version)))) + (file-name (git-file-name name version)) + (sha256 + (base32 + "14vcckqmbydjsg40ngi6iv999zimysh2l7fmrqj1d7xl990qz233")))) + (build-system cmake-build-system) + (inputs + `(("python" ,python-wrapper))) + (synopsis "Automated test framework for C++ and Objective-C") + (description "Catch2 stands for C++ Automated Test Cases in Headers and is +a multi-paradigm automated test framework for C++ and Objective-C.") + (license license:boost1.0))) + (define-public cmdtest (package (name "cmdtest") -- cgit v1.2.3