[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[bug#66263] [PATCH 23/23] gnu: Add unity.
From: |
Jean-Pierre De Jesus DIAZ |
Subject: |
[bug#66263] [PATCH 23/23] gnu: Add unity. |
Date: |
Fri, 29 Sep 2023 11:16:27 +0200 |
* gnu/packages/check.scm (unity): New variable.
---
gnu/packages/check.scm | 41 +++++++++++++++++++++++++++++++++++++++++
1 file changed, 41 insertions(+)
diff --git a/gnu/packages/check.scm b/gnu/packages/check.scm
index 5af3b49280..db368663d4 100644
--- a/gnu/packages/check.scm
+++ b/gnu/packages/check.scm
@@ -87,6 +87,7 @@ (define-module (gnu packages check)
#:use-module (gnu packages python-web)
#:use-module (gnu packages python-xyz)
#:use-module (gnu packages python-science)
+ #:use-module (gnu packages ruby)
#:use-module (gnu packages texinfo)
#:use-module (gnu packages time)
#:use-module (gnu packages xml)
@@ -3170,6 +3171,46 @@ (define-public unittest-cpp
portable to just about any platform.")
(license license:expat)))
+(define-public unity
+ (let ((revision "0")
+ (commit "2775e1b05875cf45afce7153e36af76ddbfdba26"))
+ (package
+ (name "unity")
+ (version (git-version "2.5.4" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/ThrowTheSwitch/Unity")
+ (commit commit)))
+ (file-name (git-file-name name version))
+ (sha256
+ (base32
+ "0y803ibjkqvj1fil0a0hzs7x0m98amm5ibwl8xxk3p8bj9wgdps1"))))
+ (build-system meson-build-system)
+ (arguments
+ (list #:configure-flags #~(list "-Dextension_fixture=true"
+ "-Dextension_memory=true"
+ "-Dsupport_double=true")
+ #:phases #~(modify-phases %standard-phases
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "../source/test"
+ (invoke "rake" "all"))))))))
+ (native-inputs
+ (append (list python)
+ (if (not (%current-target-system))
+ (list ruby
+ ruby-rake
+ ruby-rspec
+ ruby-rubocop)
+ '())))
+ (home-page "http://throwtheswitch.org")
+ (synopsis "Unit testing framework for C")
+ (description "Unity is a lightweight unit testing framework for C. It
was
+designed to allow running tests on embedded devices and on a host computer.")
+ (license license:expat))))
+
(define-public libfaketime
(package
(name "libfaketime")
--
2.34.1
- [bug#66263] [PATCH 00/23] guix: Add avr as a platform., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 01/23] gnu: cross-libc: Return #f if no libc available., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 05/23] gnu: cross-gcc: Enable multilib for avr., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 11/23] gnu: avr-binutils: Deprecate package., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 04/23] guix: utils: Add target-avr?., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 19/23] gnu: Add gcc-cross-avr-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 02/23] guix: gnu: Handle platforms without libc., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 23/23] gnu: Add unity.,
Jean-Pierre De Jesus DIAZ <=
- [bug#66263] [PATCH 21/23] guix: meson-build-system: Support AVR., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 20/23] gnu: Add avr-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 06/23] gnu: microscheme: Move to avr-xyz., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 13/23] gnu: cross-libc: Add AVR Libc case., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 16/23] gnu: cross-gcc-search-paths: Handle AVR target., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 18/23] gnu: Add avr-libc., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 08/23] gnu: avr-libc: Convert to procedure., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 09/23] gnu: Add make-cross-gcc-toolchain., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 10/23] gnu: Add binutils-cross-avr., Jean-Pierre De Jesus DIAZ, 2023/09/29
- [bug#66263] [PATCH 12/23] gnu: Remove various AVR packages., Jean-Pierre De Jesus DIAZ, 2023/09/29