Add catch2 package

This commit is contained in:
Safa Arıman
2020-03-21 00:04:45 +03:00
parent 808e1b85cb
commit 08ad0e7317
3 changed files with 86 additions and 0 deletions
+37
View File
@@ -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())