diff --git a/programming/library/catch2/actions.py b/programming/library/catch2/actions.py new file mode 100644 index 0000000000..35c5af0c7a --- /dev/null +++ b/programming/library/catch2/actions.py @@ -0,0 +1,37 @@ +#!/usr/bin/env python +# -*- coding: utf-8 -*- +# +# Licensed under the GNU General Public License, version 3. +# See the file http://www.gnu.org/licenses/gpl.txt + +from pisi.actionsapi import autotools, cmaketools, shelltools +from pisi.actionsapi import pisitools +from pisi.actionsapi import get + + +def setup(): + parameters = ' '.join([ + '-B build', + '-DCMAKE_INSTALL_LIBDIR=lib', + '-DCATCH_USE_VALGRIND=OFF', + '-DCATCH_BUILD_EXAMPLES=OFF', + '-DCATCH_ENABLE_COVERAGE=OFF', + '-DCATCH_ENABLE_WERROR=OFF', + '-DBUILD_TESTING=ON' + ]) + cmaketools.configure(parameters) + + +def build(): + shelltools.cd('build') + autotools.make() + + +def check(): + shelltools.cd('build') + autotools.make('test') + + +def install(): + shelltools.cd('build') + autotools.rawInstall("DESTDIR=%s" % get.installDIR()) diff --git a/programming/library/catch2/pspec.xml b/programming/library/catch2/pspec.xml new file mode 100644 index 0000000000..4f7f0a8c36 --- /dev/null +++ b/programming/library/catch2/pspec.xml @@ -0,0 +1,41 @@ + + + + + catch2 + https://github.com/catchorg/catch2 + + Safa Arıman + safa@ariman.gen.tr + + BSLv1 + library + C++ Automated Test Cases in Headers + Catch2 is a multi-paradigm test framework for C++, which also supports Objective-C. It is primarily distributed as a single header file, although certain extensions may require additional headers. + https://github.com/catchorg/Catch2/archive/v2.11.1.tar.gz + + cmake + python3 + + + + + catch2 + + /usr/include + /usr/lib + /usr/share/doc + /usr/share + + + + + + 2020-03-17 + 2.11.1 + First release + Safa Arıman + safa@ariman.gen.tr + + + diff --git a/programming/library/catch2/translations.xml b/programming/library/catch2/translations.xml new file mode 100644 index 0000000000..38948cb1b4 --- /dev/null +++ b/programming/library/catch2/translations.xml @@ -0,0 +1,8 @@ + + + + catch2 + C++ Automated Test Cases in Headers + Catch2 is a multi-paradigm test framework for C++, which also supports Objective-C. It is primarily distributed as a single header file, although certain extensions may require additional headers. + +