[kyua-testers] Initial import of the new kyua-testers 0.1 package

Julio Merino jmmv at fedoraproject.org
Tue Nov 26 13:40:35 UTC 2013


commit 52d0d51d37555c6f33b53a8e4c12894c2ed2a7ff
Author: Julio Merino <julio at meroh.net>
Date:   Tue Nov 26 08:39:28 2013 -0500

    Initial import of the new kyua-testers 0.1 package

 .gitignore        |    1 +
 README.Fedora     |   12 +++++++
 kyua-testers.spec |   92 +++++++++++++++++++++++++++++++++++++++++++++++++++++
 sources           |    1 +
 4 files changed, 106 insertions(+), 0 deletions(-)
---
diff --git a/.gitignore b/.gitignore
index e69de29..71a2bc3 100644
--- a/.gitignore
+++ b/.gitignore
@@ -0,0 +1 @@
+/kyua-testers-0.1.tar.gz
diff --git a/README.Fedora b/README.Fedora
new file mode 100644
index 0000000..fc7d88c
--- /dev/null
+++ b/README.Fedora
@@ -0,0 +1,12 @@
+This package provides the full collection of test programs to validate
+the functionality of Kyua.
+
+Because the Linux Standard Base does not recognize a /usr/tests/
+directory (the standard location for ATF-based tests), the test suite is
+installed within the libexec hierarchy.  In particular, such tests can
+be found in /usr/libexec/kyua-cli/tests/ .
+
+The tests are to be executed with the kyua(1) utility.  You can simply
+run them by issuing the following command:
+
+    $ kyua test -k /usr/libexec/kyua-cli/tests/Kyuafile
diff --git a/kyua-testers.spec b/kyua-testers.spec
new file mode 100644
index 0000000..aa40c53
--- /dev/null
+++ b/kyua-testers.spec
@@ -0,0 +1,92 @@
+Summary: Kyua - Scriptable interfaces to interact with test programs
+Name: kyua-testers
+Version: 0.1
+Release: 1%{?dist}
+License: BSD
+Group: Development/Tools
+URL: http://code.google.com/p/kyua/
+Source0: http://kyua.googlecode.com/files/%{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
+* Sun Nov 24 2013 Julio Merino <julio at meroh.net> 0.1-1
+- Initial release for Fedora.
diff --git a/sources b/sources
index e69de29..18f435d 100644
--- a/sources
+++ b/sources
@@ -0,0 +1 @@
+fe995aa3bc56e5fd03c001ec15f89864  kyua-testers-0.1.tar.gz


More information about the scm-commits mailing list