|
|
393beb |
Summary: Automated Testing Framework
|
|
|
393beb |
Name: atf
|
|
|
393beb |
Version: 0.20
|
|
|
393beb |
Release: 11%{?dist}
|
|
|
393beb |
License: BSD
|
|
|
393beb |
Group: Development/Tools
|
|
|
393beb |
URL: http://code.google.com/p/kyua/wiki/ATF
|
|
|
393beb |
Source0: https://github.com/jmmv/atf/releases/download/%{name}-%{version}/%{name}-%{version}.tar.gz
|
|
|
393beb |
Source1: README.Fedora
|
|
|
393beb |
|
|
|
393beb |
%define _testsdir %{_libexecdir}/atf/tests
|
|
|
393beb |
|
|
|
393beb |
%define common_description The Automated Testing Framework (ATF) is a collection of libraries to \
|
|
|
393beb |
implement test programs in a variety of languages. At the moment, ATF \
|
|
|
393beb |
offers C, C++ and POSIX shell bindings with which to implement tests. \
|
|
|
393beb |
These bindings all offer a similar set of functionality and any test \
|
|
|
393beb |
program written with them exposes a consistent user interface. \
|
|
|
393beb |
\
|
|
|
393beb |
ATF-based test programs rely on a separate runtime engine to execute them. \
|
|
|
393beb |
The runtime engine is in charge of isolating the test programs from the \
|
|
|
393beb |
rest of the system to ensure that their results are deterministic and that \
|
|
|
393beb |
they cannot affect the running system. The runtime engine is also \
|
|
|
393beb |
responsible for gathering the results of all tests and composing reports. \
|
|
|
393beb |
The current runtime of choice is Kyua.
|
|
|
393beb |
|
|
|
393beb |
%description
|
|
|
393beb |
There is no main package being built here. This is unused.
|
|
|
393beb |
|
|
|
393beb |
%prep
|
|
|
393beb |
%setup -q
|
|
|
393beb |
|
|
|
393beb |
# Put the README.Fedora file in the top-level directory of the source tree so
|
|
|
393beb |
# that the %doc call below can pick it up.
|
|
|
393beb |
cp -p %{SOURCE1} README.Fedora
|
|
|
393beb |
|
|
|
393beb |
%build
|
|
|
393beb |
%configure INSTALL="/usr/bin/install -p" --disable-static
|
|
|
393beb |
sed -i 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' libtool
|
|
|
393beb |
sed -i 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' libtool
|
|
|
393beb |
make %{?_smp_mflags} pkgtestsdir=%{_testsdir} testsdir=%{_testsdir}
|
|
|
393beb |
|
|
|
393beb |
%check
|
|
|
393beb |
make check
|
|
|
393beb |
|
|
|
393beb |
%install
|
|
|
393beb |
make install DESTDIR=%{buildroot} doc_DATA= \
|
|
|
393beb |
pkgtestsdir=%{_testsdir} testsdir=%{_pkgtestsdir}
|
|
|
393beb |
rm %{buildroot}%{_libdir}/libatf*.la
|
|
|
393beb |
|
|
|
393beb |
%changelog
|
|
|
393beb |
* Wed Feb 07 2018 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-11
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_28_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Sat Feb 03 2018 Igor Gnatenko <ignatenkobrain@fedoraproject.org> - 0.20-10
|
|
|
393beb |
- Switch to %%ldconfig_scriptlets
|
|
|
393beb |
|
|
|
393beb |
* Wed Aug 02 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-9
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Binutils_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Wed Jul 26 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-8
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_27_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Fri Feb 10 2017 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-7
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_26_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Wed Feb 03 2016 Fedora Release Engineering <releng@fedoraproject.org> - 0.20-6
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_24_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Wed Jun 17 2015 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-5
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_23_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Sat May 02 2015 Kalev Lember <kalevlember@gmail.com> - 0.20-4
|
|
|
393beb |
- Rebuilt for GCC 5 C++11 ABI change
|
|
|
393beb |
|
|
|
393beb |
* Fri Aug 15 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-3
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_22_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Sat Jun 07 2014 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.20-2
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_21_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Mon Feb 10 2014 Julio Merino <julio@meroh.net> 0.20-1
|
|
|
393beb |
- Update to new upstream version 0.20.
|
|
|
393beb |
- The atf binary package, which used to provide the deprecated binary
|
|
|
393beb |
tools (atf-config, atf-report, atf-run and atf-version), is now gone.
|
|
|
393beb |
- The libatf-c package now installs the atf-test-program(1) and
|
|
|
393beb |
atf-test-case(4) manual pages and the package documentation files.
|
|
|
393beb |
|
|
|
393beb |
* Sat Aug 03 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.17-2
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_20_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Thu Feb 14 2013 Julio Merino <julio@meroh.net> 0.17-1
|
|
|
393beb |
- Update to new upstream version 0.17.
|
|
|
393beb |
|
|
|
393beb |
* Wed Feb 13 2013 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-3
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_19_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Wed Jul 18 2012 Fedora Release Engineering <rel-eng@lists.fedoraproject.org> - 0.16-2
|
|
|
393beb |
- Rebuilt for https://fedoraproject.org/wiki/Fedora_18_Mass_Rebuild
|
|
|
393beb |
|
|
|
393beb |
* Tue Jul 10 2012 Julio Merino <julio@meroh.net> 0.16-1
|
|
|
393beb |
- Updated to new upstream version 0.16.
|
|
|
393beb |
|
|
|
393beb |
* Mon Jun 18 2012 Julio Merino <jmmv@julipedia.org> 0.15-2
|
|
|
393beb |
- Added the atf-tests package, which provides the run-time tests of ATF
|
|
|
393beb |
readily runnable by the end users.
|
|
|
393beb |
- Made the installation of the package preserve the build times of the files.
|
|
|
393beb |
- Fixed URL to the project's page.
|
|
|
393beb |
|
|
|
393beb |
* Thu May 3 2012 Julio Merino <jmmv@julipedia.org> 0.15-1
|
|
|
393beb |
- Initial release for Fedora.
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
# Ideally, we would ship one tests package for every component, namely
|
|
|
393beb |
# libatf-c-tests, libatf-c++-tests and libatf-sh-tests. However, the test
|
|
|
393beb |
# suite of ATF has not been written with this in mind, and the tests of one
|
|
|
393beb |
# component often have dependencies on the rest of the components. It is
|
|
|
393beb |
# much easier to ship a single package with the whole test suite rather
|
|
|
393beb |
# than attempting to fight this fact.
|
|
|
393beb |
%package tests
|
|
|
393beb |
Summary: Automated Testing Framework - Test suite
|
|
|
393beb |
Requires: libatf-c = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-c++ = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-sh = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-c-devel = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-c++-devel = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-sh-devel = %{version}-%{release}
|
|
|
393beb |
|
|
|
393beb |
%description tests
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package installs the run-time tests for all the components of ATF, which
|
|
|
393beb |
include tests for the C, C++ and POSIX shell libraries and the run-time tools.
|
|
|
393beb |
Please see the README.Fedora file in the documentation directory for further
|
|
|
393beb |
details on how to run the installed tests.
|
|
|
393beb |
|
|
|
393beb |
%files tests
|
|
|
393beb |
%doc README.Fedora
|
|
|
393beb |
%{_testsdir}
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
%package -n libatf-c
|
|
|
393beb |
Summary: Automated Testing Framework - C bindings
|
|
|
393beb |
|
|
|
393beb |
%description -n libatf-c
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package provides the run-time libraries to run tests that use the
|
|
|
393beb |
ATF C bindings.
|
|
|
393beb |
|
|
|
393beb |
%files -n libatf-c
|
|
|
393beb |
%{_libdir}/libatf-c.so.0
|
|
|
393beb |
%{_libdir}/libatf-c.so.0.0.0
|
|
|
393beb |
%{_datadir}/man/man1/atf-test-program.1.gz
|
|
|
393beb |
%{_datadir}/man/man4/atf-test-case.4.gz
|
|
|
393beb |
|
|
|
393beb |
%ldconfig_scriptlets -n libatf-c
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
%package -n libatf-c-devel
|
|
|
393beb |
Summary: Automated Testing Framework - C bindings (headers)
|
|
|
393beb |
Requires: libatf-c = %{version}-%{release}
|
|
|
393beb |
|
|
|
393beb |
%description -n libatf-c-devel
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package provides the libraries, header files and documentation to
|
|
|
393beb |
develop tests that use the ATF C bindings.
|
|
|
393beb |
|
|
|
393beb |
%files -n libatf-c-devel
|
|
|
393beb |
%{_datadir}/aclocal/atf-c.m4
|
|
|
393beb |
%{_datadir}/aclocal/atf-common.m4
|
|
|
393beb |
%{_includedir}/atf-c.h
|
|
|
393beb |
%{_includedir}/atf-c
|
|
|
393beb |
%{_libdir}/libatf-c.so
|
|
|
393beb |
%{_libdir}/pkgconfig/atf-c.pc
|
|
|
393beb |
%{_mandir}/man3/atf-c-api.3.gz
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
%package -n libatf-c++
|
|
|
393beb |
Summary: Automated Testing Framework - C++ bindings
|
|
|
393beb |
|
|
|
393beb |
%description -n libatf-c++
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package provides the run-time libraries to run tests that use the
|
|
|
393beb |
ATF C++ bindings.
|
|
|
393beb |
|
|
|
393beb |
%files -n libatf-c++
|
|
|
393beb |
%{_libdir}/libatf-c++.so.1
|
|
|
393beb |
%{_libdir}/libatf-c++.so.1.0.0
|
|
|
393beb |
|
|
|
393beb |
%ldconfig_scriptlets -n libatf-c++
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
%package -n libatf-c++-devel
|
|
|
393beb |
Summary: Automated Testing Framework - C++ bindings (headers)
|
|
|
393beb |
Requires: libatf-c = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-c-devel = %{version}-%{release}
|
|
|
393beb |
Requires: libatf-c++ = %{version}-%{release}
|
|
|
393beb |
|
|
|
393beb |
%description -n libatf-c++-devel
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package provides the libraries, header files and documentation to
|
|
|
393beb |
develop applications that use the ATF C++ bindings.
|
|
|
393beb |
|
|
|
393beb |
%files -n libatf-c++-devel
|
|
|
393beb |
%{_datadir}/aclocal/atf-c++.m4
|
|
|
393beb |
%{_includedir}/atf-c++.hpp
|
|
|
393beb |
%{_includedir}/atf-c++
|
|
|
393beb |
%{_libdir}/libatf-c++.so
|
|
|
393beb |
%{_libdir}/pkgconfig/atf-c++.pc
|
|
|
393beb |
%{_mandir}/man3/atf-c++-api.3.gz
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
%package -n libatf-sh
|
|
|
393beb |
Summary: Automated Testing Framework - POSIX shell bindings
|
|
|
393beb |
Requires: libatf-c++ = %{version}-%{release}
|
|
|
393beb |
|
|
|
393beb |
%description -n libatf-sh
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package provides the run-time libraries to run tests that use the
|
|
|
393beb |
ATF POSIX shell bindings.
|
|
|
393beb |
|
|
|
393beb |
%files -n libatf-sh
|
|
|
393beb |
%{_bindir}/atf-sh
|
|
|
393beb |
# Cheat a bit: While this directory should be supposedly owned by the main
|
|
|
393beb |
# 'atf' package, 'atf' depends on libatf-sh. Therefore, it's easier to handle
|
|
|
393beb |
# ownership here.
|
|
|
393beb |
%{_datadir}/atf
|
|
|
393beb |
%{_libexecdir}/atf-check
|
|
|
393beb |
%{_mandir}/man1/atf-sh.1.gz
|
|
|
393beb |
|
|
|
393beb |
|
|
|
393beb |
%package -n libatf-sh-devel
|
|
|
393beb |
Summary: Automated Testing Framework - POSIX shell bindings (headers)
|
|
|
393beb |
Requires: libatf-sh = %{version}-%{release}
|
|
|
393beb |
|
|
|
393beb |
%description -n libatf-sh-devel
|
|
|
393beb |
%{common_description}
|
|
|
393beb |
|
|
|
393beb |
This package provides the supporting files and documentation to develop
|
|
|
393beb |
applications that use the ATF POSIX shell bindings.
|
|
|
393beb |
|
|
|
393beb |
%files -n libatf-sh-devel
|
|
|
393beb |
%{_datadir}/aclocal/atf-sh.m4
|
|
|
393beb |
%{_libdir}/pkgconfig/atf-sh.pc
|
|
|
393beb |
%{_mandir}/man1/atf-check.1.gz
|
|
|
393beb |
%{_mandir}/man3/atf-sh-api.3.gz
|