Package Details: criterion 2.4.2-2

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: 16
Popularity: 0.024640
First Submitted: 2015-09-22 11:32 (UTC)
Last Updated: 2024-02-24 10:53 (UTC)

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

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.

Snaipe commented on 2017-12-02 17:51 (UTC)

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 (UTC)

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 ?

Snaipe commented on 2017-12-02 17:07 (UTC)

@dellamorte: Due to a bug in the sphynx configuration for the 2.3.1 and 2.3.2 releases, the docs were not generated on readthedocs. I would recommend reading the 2.3.0 documentation instead, as no major changes underwent between these releases.

Snaipe commented on 2017-12-02 16:55 (UTC)

@Ethyling: Done! Thanks for reporting this.

n3b0j5a commented on 2017-12-02 13:47 (UTC)

Hi! API in 2.3.2-1 differs from documentation for the same version. Please provide documentation or update package. Great software anyway!

Ethyling commented on 2017-11-30 14:40 (UTC)

Hi, It does not build on a fresh system: ==> Starting build()... /home/build/criterion/PKGBUILD: line 19: cmake: command not found ==> ERROR: A failure occurred in build(). Aborting... cmake is not part of the base-devel package group. Could you please add it as makedepends ?

Snaipe commented on 2016-11-02 14:48 (UTC)

@oneeyed Fixed. Thanks again!