diff options
author | Petr Viktorin <pviktori@redhat.com> | 2013-05-21 13:40:27 +0200 |
---|---|---|
committer | Martin Kosek <mkosek@redhat.com> | 2013-06-17 19:22:50 +0200 |
commit | c60142efda817f030a7495cd6fe4a19953e55afa (patch) | |
tree | 31a840ceddd4381311bbc879f9851bb71a8e2ffa /freeipa.spec.in | |
parent | 6d66e826c1c248dffc80056b20c1e4b74b04d46f (diff) | |
download | freeipa-c60142efda817f030a7495cd6fe4a19953e55afa.tar.gz freeipa-c60142efda817f030a7495cd6fe4a19953e55afa.tar.xz freeipa-c60142efda817f030a7495cd6fe4a19953e55afa.zip |
Make an ipa-tests package
Rename the 'tests' directory to 'ipa-tests', and create an ipa-tests RPM
containing the test suite
Part of the work for: https://fedorahosted.org/freeipa/ticket/3654
Diffstat (limited to 'freeipa.spec.in')
-rw-r--r-- | freeipa.spec.in | 43 |
1 files changed, 43 insertions, 0 deletions
diff --git a/freeipa.spec.in b/freeipa.spec.in index feb544276..7b74eb0d7 100644 --- a/freeipa.spec.in +++ b/freeipa.spec.in @@ -290,6 +290,26 @@ user, virtual machines, groups, authentication credentials), Policy logs, analysis thereof). If you are using IPA you need to install this package. +%if ! %{ONLY_CLIENT} +%package tests +Summary: IPA tests and test tools +Requires: %{name}-client = %{version}-%{release} +Requires: %{name}-python = %{version}-%{release} +Requires: python-nose +Requires: python-paste +Requires: python-coverage +Requires: python-polib + +%description tests +IPA is an integrated solution to provide centrally managed Identity (machine, +user, virtual machines, groups, authentication credentials), Policy +(configuration settings, access control information) and Audit (events, +logs, analysis thereof). +This package contains tests that verify IPA functionality. + +%endif # ! %{ONLY_CLIENT} + + %prep %setup -n freeipa-%{version} -q @@ -432,6 +452,10 @@ install -pm 644 ipa-compliance.cron %{buildroot}%{_sysconfdir}/cron.d/ipa-compli grep -v dcerpc | grep -v adtrustinstance | \ sed -e 's,\.py.*$,.*,g' | sort -u | \ sed -e 's,\./,%%{python_sitelib}/ipaserver/,g' ) >server-python.list + +(cd %{buildroot}/%{python_sitelib}/ipatests && find . -type f | \ + sed -e 's,\.py.*$,.*,g' | sort -u | \ + sed -e 's,\./,%%{python_sitelib}/ipatests/,g' ) >tests-python.list %endif # ! %{ONLY_CLIENT} %clean @@ -777,7 +801,26 @@ fi %ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/default.conf %ghost %attr(0644,root,apache) %config(noreplace) %{_sysconfdir}/ipa/ca.crt +%if ! %{ONLY_CLIENT} +%files tests -f tests-python.list +%defattr(-,root,root,-) +%doc COPYING README Contributors.txt +%dir %{python_sitelib}/ipatests +%dir %{python_sitelib}/ipatests/test_cmdline +%dir %{python_sitelib}/ipatests/test_install +%dir %{python_sitelib}/ipatests/test_ipalib +%dir %{python_sitelib}/ipatests/test_ipapython +%dir %{python_sitelib}/ipatests/test_ipaserver +%dir %{python_sitelib}/ipatests/test_ipaserver/install +%dir %{python_sitelib}/ipatests/test_pkcs10 +%dir %{python_sitelib}/ipatests/test_xmlrpc +%{python_sitelib}/ipatests-*.egg-info +%endif # ! %{ONLY_CLIENT} + %changelog +* Mon Jun 17 2013 Petr Viktorin <pviktori@redhat.com> - 3.2.99-2 +- Add the freeipa-tests subpackage + * Thu Jun 13 2013 Martin Kosek <mkosek@redhat.com> - 3.2.99-1 - Drop freeipa-server-selinux subpackage - Drop redundant directory /var/cache/ipa/sessions |