Now that we have tests as part of osinfo-db-tools, let's enable them
when preparing a RPM.

https://gitlab.com/libosinfo/osinfo-db-tools/issues/2

Signed-off-by: Fabiano Fidêncio <[email protected]>
---
 osinfo-db-tools.spec.in | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/osinfo-db-tools.spec.in b/osinfo-db-tools.spec.in
index f0a5fcc..11314e0 100644
--- a/osinfo-db-tools.spec.in
+++ b/osinfo-db-tools.spec.in
@@ -27,6 +27,13 @@ information about operating systems for use with 
virtualization
 %configure
 %__make %{?_smp_mflags} V=1
 
+%check
+if ! make check
+then
+  cat tests/test-suite.log || true
+  exit 1
+fi
+
 %install
 %__make install DESTDIR=%{buildroot}
 
-- 
2.21.0

_______________________________________________
Libosinfo mailing list
[email protected]
https://www.redhat.com/mailman/listinfo/libosinfo

Reply via email to