* [bug#56240] [PATCH] gnu: Add ubench-h
@ 2022-06-26 20:23 Artyom V. Poptsov
2022-07-06 20:33 ` Artyom V. Poptsov
0 siblings, 1 reply; 3+ messages in thread
From: Artyom V. Poptsov @ 2022-06-26 20:23 UTC (permalink / raw)
To: 56240
[-- Attachment #1.1: Type: text/plain, Size: 66 bytes --]
Hello,
this patch adds "ubench.h"[1] under the name "ubench-h".
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-ubench-h.patch --]
[-- Type: text/x-diff, Size: 2562 bytes --]
From 032c55ab247ce50dfe22fe37b742634c69ab4f94 Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Sun, 26 Jun 2022 23:19:38 +0300
Subject: [PATCH] gnu: Add ubench-h.
* gnu/packages/c.scm (ubench-h): New variable.
---
gnu/packages/c.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index bcacccfd03..0d929ff892 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -1166,3 +1166,39 @@ string.h, but with a utf8* prefix instead of the str* prefix.")
(synopsis "Single header unit testing framework for C and C++")
(description "A simple one header solution to unit testing for C/C++.")
(license license:unlicense))))
+
+(define-public ubench-h
+ ;; The latest commit is used as there is no release.
+ (let ((commit "bcf152d83c3495242aa46df69cecdc9f3fbdf687") (revision "0"))
+ (package
+ (name "ubench-h")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sheredom/ubench.h")
+ (commit commit)))
+ (file-name (git-file-name "ubench.h" version))
+ (sha256
+ (base32
+ "0sdnycxmrp78zhwydqbca985c3cg7px3n90vfs8c3agzra7xrhsi"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (delete 'build)
+ (delete 'configure)
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "test"
+ (invoke "cmake" ".")
+ (invoke "make")))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (install-file "ubench.h"
+ (string-append out "/include"))))))))
+ (home-page "https://github.com/sheredom/ubench.h")
+ (synopsis "Single header benchmark framework for C and C++")
+ (description "A simple one header solution to benchmarking for C/C++.")
+ (license license:unlicense))))
--
2.25.1
[-- Attachment #1.3: Type: text/plain, Size: 286 bytes --]
Thanks,
- Artyom
References:
1. https://github.com/sheredom/ubench.h
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 487 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
* [bug#56240] [PATCH] gnu: Add ubench-h
2022-06-26 20:23 [bug#56240] [PATCH] gnu: Add ubench-h Artyom V. Poptsov
@ 2022-07-06 20:33 ` Artyom V. Poptsov
2023-01-03 21:43 ` Artyom V. Poptsov
0 siblings, 1 reply; 3+ messages in thread
From: Artyom V. Poptsov @ 2022-07-06 20:33 UTC (permalink / raw)
To: 56240
[-- Attachment #1: Type: text/plain, Size: 403 bytes --]
Hello Guixers,
I see that my 'utest-h' patch was merged recently (hooray!)
It would be nice if someone could do a patch-review for my 'ubench-h'
patch as well. ;-)
Thanks!
- Artyom
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply [flat|nested] 3+ messages in thread
* [bug#56240] [PATCH] gnu: Add ubench-h
2022-07-06 20:33 ` Artyom V. Poptsov
@ 2023-01-03 21:43 ` Artyom V. Poptsov
0 siblings, 0 replies; 3+ messages in thread
From: Artyom V. Poptsov @ 2023-01-03 21:43 UTC (permalink / raw)
To: 56240
[-- Attachment #1.1: Type: text/plain, Size: 97 bytes --]
Hello,
I've rebased my patch that adds "ubench.h" benchmark framework onto the
"master" branch.
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1.2: 0001-gnu-Add-ubench-h.patch --]
[-- Type: text/x-diff, Size: 2469 bytes --]
From c2f163bb8f8f2acf82432893f3860e35dbb95d5a Mon Sep 17 00:00:00 2001
From: "Artyom V. Poptsov" <poptsov.artyom@gmail.com>
Date: Wed, 4 Jan 2023 00:39:27 +0300
Subject: [PATCH] gnu: Add ubench-h.
* gnu/packages/c.scm (ubench-h): New variable.
---
gnu/packages/c.scm | 36 ++++++++++++++++++++++++++++++++++++
1 file changed, 36 insertions(+)
diff --git a/gnu/packages/c.scm b/gnu/packages/c.scm
index 04c9fcdc62..0bdc6e9fc5 100644
--- a/gnu/packages/c.scm
+++ b/gnu/packages/c.scm
@@ -1376,3 +1376,39 @@ (define-public utest-h
(description
"This package provides a header-only unit testing library for C/C++.")
(license license:unlicense))))
+
+(define-public ubench-h
+ ;; The latest commit is used as there is no release.
+ (let ((commit "bcf152d83c3495242aa46df69cecdc9f3fbdf687") (revision "0"))
+ (package
+ (name "ubench-h")
+ (version (git-version "0.0.0" revision commit))
+ (source (origin
+ (method git-fetch)
+ (uri (git-reference
+ (url "https://github.com/sheredom/ubench.h")
+ (commit commit)))
+ (file-name (git-file-name "ubench.h" version))
+ (sha256
+ (base32
+ "0sdnycxmrp78zhwydqbca985c3cg7px3n90vfs8c3agzra7xrhsi"))))
+ (build-system cmake-build-system)
+ (arguments
+ `(#:phases (modify-phases %standard-phases
+ (delete 'build)
+ (delete 'configure)
+ (replace 'check
+ (lambda* (#:key tests? #:allow-other-keys)
+ (when tests?
+ (with-directory-excursion "test"
+ (invoke "cmake" ".")
+ (invoke "make")))))
+ (replace 'install
+ (lambda* (#:key outputs #:allow-other-keys)
+ (let ((out (assoc-ref outputs "out")))
+ (install-file "ubench.h"
+ (string-append out "/include"))))))))
+ (home-page "https://github.com/sheredom/ubench.h")
+ (synopsis "Single header benchmark framework for C and C++")
+ (description "A simple one header solution to benchmarking for C/C++.")
+ (license license:unlicense))))
--
2.34.1
[-- Attachment #1.3: Type: text/plain, Size: 261 bytes --]
Could you please review the patch?
Thanks,
avp
--
Artyom "avp" Poptsov <poptsov.artyom@gmail.com>
Home page: https://memory-heap.org/~avp/
CADR Hackerspace co-founder: https://cadrspace.ru/
GPG: D0C2 EAC1 3310 822D 98DE B57C E9C5 A2D9 0898 A02F
[-- Attachment #2: signature.asc --]
[-- Type: application/pgp-signature, Size: 519 bytes --]
^ permalink raw reply related [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-01-03 21:44 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-06-26 20:23 [bug#56240] [PATCH] gnu: Add ubench-h Artyom V. Poptsov
2022-07-06 20:33 ` Artyom V. Poptsov
2023-01-03 21:43 ` Artyom V. Poptsov
Code repositories for project(s) associated with this public inbox
https://git.savannah.gnu.org/cgit/guix.git
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).