Package Details: criterion 2.3.3-3

Git Clone URL: https://aur.archlinux.org/criterion.git (read-only)
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: 10
Popularity: 0.227284
First Submitted: 2015-09-22 11:32
Last Updated: 2019-09-14 21:19

Latest Comments

1 2 Next › Last »

MrAnno commented on 2019-07-29 22:43

Fixed.

exoave commented on 2019-07-21 16:12

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

git is missing from makedepends.

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

dellamorte commented on 2017-12-02 21:48

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

@Snaipe Thanks !

Snaipe commented on 2017-12-02 18:21

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.

dellamorte commented on 2017-12-02 18:18

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

Ethyling: Fixed.

Snaipe commented on 2017-12-02 17:51

Oh, okay, it seems that the install rule is installing an external dependency at the wrong place. This is a bug in Criterion's build system, but fixable in the PKGBUILD without re-releasing anything, so I'll do just that and fix the CMakeLists.txt for future releases.

Ethyling commented on 2017-12-02 17:35

Hi, thanks for the fix, I can now build the package with makepkg.
Otherwise I got an error when I try to install it using pacman -U :

:: Proceed with installation? [Y/n]
error: failed to commit transaction (conflicting files)
criterion: /tmp/criterion/src/criterion/build/external/include/boxfort.h exists in filesystem
criterion: /tmp/criterion/src/criterion/build/external/lib/libboxfort.a exists in filesystem
Errors occurred, no packages were upgraded.

Could you please look at this ? Or maybe I'm missing some details ?