Package Details: doctest 2.3.3-1

Git Clone URL: https://aur.archlinux.org/doctest.git (read-only)
Package Base: doctest
Description: The lightest feature rich C++ single header testing framework
Upstream URL: https://github.com/onqtam/doctest
Keywords: c c++ framework testing unit
Licenses: MIT
Submitter: jetm
Maintainer: jetm
Last Packager: jetm
Votes: 3
Popularity: 1.015438
First Submitted: 2016-05-22 20:38
Last Updated: 2019-06-05 14:46

Dependencies (1)

Required by (0)

Sources (1)

Latest Comments

jetm commented on 2019-05-26 20:57

@mmha: I have updated with the PKGBUILD with your suggestion. Thank you.

I am going to hold on make the two recommendations. First, I don't know if this works in ARM; I unable to test it. It should work, though. 2nd point, this is a little package, not that much gain with ninja as a make replacement.

Thanks!

mmha commented on 2019-05-25 13:04

The installation fails with:

error: failed to commit transaction (conflicting files)
doctest: /usr/lib64 exists in filesystem (owned by filesystem)

This can be fixed by passing -DCMAKE_INSTALL_LIBDIR=lib to CMake.

I also have two recommendations:

  1. Set the arch to arch=('any') to make the package work on ARM, too.
  2. Use ninja instead of make. No one likes build log spaghetti from parallel builds. It's also slightly faster.

jetm commented on 2019-01-30 15:48

@muttleyxd: Updated the package with the new hash. I had the hash updated in my local repo, but never was submitted. Thank you for your perseverance.

muttleyxd commented on 2019-01-30 15:34

Well, I've cleaned it few times, I'm pretty sure it downloads correct file, I tried it both on my private and work PCs, maybe it got silently updated on GitHub?

$ git clone https://aur.archlinux.org/doctest.git
Cloning into 'doctest'...
remote: Enumerating objects: 60, done.
remote: Counting objects: 100% (60/60), done.
remote: Compressing objects: 100% (46/46), done.
remote: Total 60 (delta 14), reused 60 (delta 14)
Unpacking objects: 100% (60/60), done.

$  cd doctest/
$  ls
.git  .SRCINFO  PKGBUILD

$  makepkg
==> Making package: doctest 2.2.2-1 (Wed Jan 30 16:32:47 2019)
==> Checking runtime dependencies...
==> Checking buildtime dependencies...
==> Retrieving sources...
  -> Downloading 2.2.2.tar.gz...
  % Total    % Received % Xferd  Average Speed   Time    Time     Time  Current
                                 Dload  Upload   Total   Spent    Left  Speed
100   121    0   121    0     0     40      0 --:--:--  0:00:03 --:--:--    40
100 2148k    0 2148k    0     0   519k      0 --:--:--  0:00:04 --:--:-- 3091k
==> Validating source files with sha256sums...
    2.2.2.tar.gz ... FAILED
==> ERROR: One or more files did not pass the validity check!

$ md5sum 2.2.2.tar.gz
5e569a10924fac5130dff4f3e246d87f  2.2.2.tar.gz

$ sha256sum 2.2.2.tar.gz 
4ea79f2a7d1ee268310e99d4e721fb83bcc63af5ee46583085612fcaf19df446  2.2.2.tar.gz

jetm commented on 2019-01-29 15:20

@muttleyxd: Unable to reproduce the issue. From my side it builds fine. You might want to clean your AUR cache using the tool you normally use to install packages from AUR.

muttleyxd commented on 2019-01-29 07:09

==> Making package: doctest 2.2.2-1 (wto, 29 sty 2019, 08:08:50)

==> Retrieving sources...

-> Downloading 2.2.2.tar.gz...

==> Validating source files with sha256sums...

2.2.2.tar.gz ... FAILED

==> ERROR: One or more files did not pass the validity check!

Error downloading sources: doctest

sv1990 commented on 2018-11-08 20:34

@jetm: Thanks for the quick change

jetm commented on 2018-11-08 20:32

@sv1990: Thank you for the recommendation. I have updated the package with the make install and Doctest cmake packages were added.

sv1990 commented on 2018-11-08 19:35

Is there a reason that you don't use make install to install the package?

Since you are only installing the header file and the license file but non of the *.cmake files one cannot write find_package(Doctest REQUIRED) in cmake to get the exported doctest target. Using make install would enable this.

If you don't want to compile all the tests you can run cmake as

cmake -DCMAKE_INSTALL_PREFIX=/usr -DDOCTEST_WITH_TESTS=off ..