Summary: Kyua - Scriptable interfaces to interact with test programs Name: kyua-testers Version: 0.3 Release: 7%{?dist} License: BSD Group: Development/Tools URL: https://github.com/jmmv/kyua/ Source0: https://github.com/jmmv/kyua/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz Source1: README.Fedora BuildRequires: libatf-c-devel%{?_isa} >= 0.17 # Set to 1 if you would like to enable the post-build check phase. # This requires the kyua-cli package to be installed, which in turn # needs kyua-testers, so this knob exists to workaround this circular # dependency.. %global _with_checks 0 %if %{_with_checks} BuildRequires: kyua-cli >= 0.5 %endif %global _testsdir %{_libexecdir}/kyua-testers/tests %description Kyua (pronounced Q.A.) is a testing framework for both developers and users. Kyua is different from most other testing frameworks in that it puts the end user experience before anything else. There are multiple reasons for users to run the tests themselves, and Kyua ensures that they can do so in the most convenient way. This module, kyua-testers, provides scriptable interfaces to interact with test programs of various kinds. The interface of such testers allows the caller to execute a single test case of a single test program in a controlled and homogeneous manner. %prep %setup -q # Put the README.Fedora file in the top-level directory of the source tree so # that the doc macro call below can pick it up. cp -p %{SOURCE1} README.Fedora %build %configure INSTALL="/usr/bin/install -p" make %{?_smp_mflags} pkgtestsdir=%{_testsdir} testsdir=%{_testsdir} %if %{_with_checks} %check # The check stage runs the tests using Kyua itself and Kyua accesses the home # directory to store logs and the database. Override HOME to a known value to # ensure these files get discarded. HOME=$(pwd)/check make check pkgtestsdir=%{_testsdir} testsdir=%{_testsdir} %endif %install make install DESTDIR=%{buildroot} doc_DATA= \ pkgtestsdir=%{_testsdir} testsdir=%{_testsdir} %files %doc AUTHORS COPYING NEWS README %{_libexecdir}/* %{_mandir}/man1/* %{_mandir}/man5/* %{_mandir}/man7/* %package devel Summary: Development files for the Kyua testers package Requires: %{name}%{?_isa} = %{version}-%{release} %description devel This package installs the development files for the Kyua testers package. %files devel %{_libdir}/pkgconfig/* %package tests Summary: Run-time tests of the Kyua testers Requires: %{name}%{?_isa} = %{version}-%{release} Requires: libatf-c%{?_isa} >= 0.17 %description tests This package installs the run-time tests for the Kyua testers. Please see the README.Fedora file in the documentation directory for further details on how to run the installed tests. %files tests %doc README.Fedora %{_testsdir} %changelog * Thu Aug 03 2017 Fedora Release Engineering - 0.3-7 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild * Wed Jul 26 2017 Fedora Release Engineering - 0.3-6 - Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild * Fri Feb 10 2017 Fedora Release Engineering - 0.3-5 - Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild * Thu Feb 04 2016 Fedora Release Engineering - 0.3-4 - Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild * Wed Jun 17 2015 Fedora Release Engineering - 0.3-3 - Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild * Sun Aug 17 2014 Fedora Release Engineering - 0.3-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild * Fri Aug 08 2014 Julio Merino 0.3-1 - Update to 0.3. * Sun Jun 08 2014 Fedora Release Engineering - 0.2-2 - Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild * Sat Dec 07 2013 Julio Merino 0.2-1 - Update to 0.2. * Sun Nov 24 2013 Julio Merino 0.1-1 - Initial release for Fedora.