Package Details: criterion 2.4.2-1

Git Clone URL: https://aur.archlinux.org/criterion.git (read-only, click to copy)
Package Base: criterion
Description: A cross-platform C and C++ unit testing framework for the 21th century
Upstream URL: https://github.com/Snaipe/Criterion
Keywords: c c++ kiss test unit xunit
Licenses: MIT
Submitter: Snaipe
Maintainer: MrAnno
Last Packager: MrAnno
Votes: 14
Popularity: 0.000512
First Submitted: 2015-09-22 11:32 (UTC)
Last Updated: 2023-05-13 21:57 (UTC)

Latest Comments

1 2 Next › Last »

MrAnno commented on 2022-11-22 18:34 (UTC)

@Breigner01 Arch Linux dependencies have been updated, you need to reinstall Criterion (to be precise, you need a full recompilation).

Breigner01 commented on 2022-11-22 18:31 (UTC) (edited on 2022-11-22 18:35 (UTC) by Breigner01)

I think there are problems with the packaging here because I now get the following error when trying to compile with criterion:

/usr/bin/ld: warning: libgit2.so.1.4, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: warning: libnanomsg.so.5, needed by /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so, not found (try using -rpath or -rpath-link)
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_recv'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_freemsg'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_bind'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `git_diff_buffers'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_send'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_close'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `git_libgit2_shutdown'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `git_libgit2_init'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_connect'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_socket'
/usr/bin/ld: /usr/lib/gcc/x86_64-pc-linux-gnu/12.2.0/../../../../lib/libcriterion.so: undefined reference to `nn_strerror'
collect2: error: ld returned 1 exit status

This is a project from 2021 that I'm trying to compile the unit tests from which worked back then on arch. Also I found these /usr/lib/libgit2.so.1.5 and /usr/lib/libnanomsg.so.6

MrAnno commented on 2019-07-29 22:43 (UTC)

Fixed.

exoave commented on 2019-07-21 16:12 (UTC)

Thanks for reporting, I'm out at the time and not able to access a computer. I'll fix it as soon as I can.

MrAnno commented on 2019-07-20 12:13 (UTC)

git is missing from makedepends.

==> ERROR: Cannot find the git package needed to handle git sources. (tested with makechrootpkg)

n3b0j5a commented on 2017-12-02 21:48 (UTC)

I want to write a short review of criterion, thats why i need good documentation for refernecing. Thanks, and keep up the good work!

Ethyling commented on 2017-12-02 20:46 (UTC)

@Snaipe Thanks !

Snaipe commented on 2017-12-02 18:21 (UTC)

dellamorte: Ah I can see where the confusion stems from. The bleeding branch has not bumped the version, so the docs that are built are marked 2.3.2, but they aren't release documents. You can see that the URL you posted is, in fact, the `lastest` docs. For 2.3.0 docs, use https://media.readthedocs.org/pdf/criterion/v2.3.0/criterion.pdf instead. The new assertion API is not part of any release at the moment, so criterion/new/assert.h wouldn't exist.

n3b0j5a commented on 2017-12-02 18:18 (UTC)

Thanks! Actually API references in described pdf are different from those in actual build. Readthedocs is ok. Also, which assertion API is newer? a) cr_assert_eq(Actual, Expected, FormatString, ...) b) cr_assert(eq(Tag, Actual, Expected), Format, ...) Pdf documentation (https://media.readthedocs.org/pdf/criterion/latest/criterion.pdf) is tagged as for 2.3.2 but i can't compile simple code like this one: #include <criterion/criterion.h> #include <criterion/new/assert.h> Test(sample,test){ cr_assert(eq(i8,1,1),"Fail"); } Error is: test2.c:2:10: fatal error: criterion/new/assert.h: No such file or directory #include <criterion/new/assert.h> ^~~~~~~~~~~~~~~~~~~~~~~~ compilation terminated

Snaipe commented on 2017-12-02 18:13 (UTC)

Ethyling: Fixed.