enable tests

f41
David Tardon 11 years ago
parent 3c6036e4db
commit 6ede978023

@ -40,7 +40,8 @@ The %{name}-doc package contains documentation files for %{name}.
%setup -q
%build
%configure --disable-silent-rules --disable-static --disable-werror
%configure --disable-silent-rules --disable-static --disable-werror \
--enable-test
sed -i \
-e 's|^hardcode_libdir_flag_spec=.*|hardcode_libdir_flag_spec=""|g' \
-e 's|^runpath_var=LD_RUN_PATH|runpath_var=DIE_RPATH_DIE|g' \
@ -53,6 +54,11 @@ rm -f %{buildroot}/%{_libdir}/*.la
# we install API docs directly from build
rm -rf %{buildroot}/%{_docdir}/%{name}
%check
export LD_LIBRARY_PATH=%{buildroot}%{_libdir}${LD_LIBRARY_PATH:+:${LD_LIBRARY_PATH}}
make %{?_smp_mflags} check
make -C test launch_all
%post -p /sbin/ldconfig
%postun -p /sbin/ldconfig

Loading…
Cancel
Save