Run tests in %check instead of %build
This commit is contained in:
parent
2f0d532518
commit
86f0e31076
9
ant.spec
9
ant.spec
@ -29,6 +29,7 @@
|
||||
#
|
||||
|
||||
%bcond_with bootstrap
|
||||
%bcond_without tests
|
||||
|
||||
%if %with bootstrap
|
||||
%global build_javadoc 0
|
||||
@ -389,7 +390,7 @@ mv LICENSE.utf8 LICENSE
|
||||
|
||||
%build
|
||||
%if %without bootstrap
|
||||
%{ant} jars test-jar test
|
||||
%{ant} jars test-jar
|
||||
%if %{build_javadoc}
|
||||
export CLASSPATH=$(build-classpath xerces-j2 antlr bcel javamail/mailapi jdepend junit log4j oro regexp bsf commons-logging commons-net jsch xalan-j2 xml-commons-resolver)
|
||||
%{ant} javadocs
|
||||
@ -511,6 +512,11 @@ find $RPM_BUILD_ROOT%{_datadir}/ant/etc -type f -name "*.xsl" \
|
||||
| xargs -t rm
|
||||
%endif
|
||||
|
||||
%if %with tests
|
||||
%check
|
||||
%{ant} test
|
||||
%endif
|
||||
|
||||
%files
|
||||
%doc KEYS LICENSE NOTICE README WHATSNEW
|
||||
%config(noreplace) %{_sysconfdir}/%{name}.conf
|
||||
@ -682,6 +688,7 @@ find $RPM_BUILD_ROOT%{_datadir}/ant/etc -type f -name "*.xsl" \
|
||||
- Remove bcond macro definitions (provided by rpm itself)
|
||||
- Remove Group tags
|
||||
- Update to current packaging guidelines
|
||||
- Run tests in %%check instead of %%build
|
||||
|
||||
* Mon Jun 03 2013 Stanislav Ochotnicky <sochotnicky@redhat.com> - 0:1.9.1-2
|
||||
- Enable unit tests
|
||||
|
Loading…
Reference in New Issue
Block a user