Make it possible to contitionally run the testsuite.

rpmbuild --rebuild --with testsuite iniparser.rpm
This commit is contained in:
Andreas Schneider 2012-12-04 16:07:59 +01:00
parent a52a28581f
commit c0e2a0cc0d

View File

@ -1,3 +1,6 @@
# Set --with test to run the Samba torture testsuite.
%bcond_with testsuite
Name: iniparser Name: iniparser
Version: 3.1 Version: 3.1
Release: 1%{?dist} Release: 1%{?dist}
@ -40,6 +43,13 @@ install -m 644 -t %{buildroot}%{_includedir}/ src/dictionary.h src/iniparser.h
install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.0 install -m 755 -t %{buildroot}%{_libdir}/ libiniparser.so.0
ln -s libiniparser.so.0 %{buildroot}%{_libdir}/libiniparser.so ln -s libiniparser.so.0 %{buildroot}%{_libdir}/libiniparser.so
%if %{with testsuite}
%check
make check
./test/iniexample
./test/parse test/twisted.ini
%endif
%post -p /sbin/ldconfig %post -p /sbin/ldconfig
%postun -p /sbin/ldconfig %postun -p /sbin/ldconfig