From 20bbc715578bff5f5b2433334a39750f083d0305 Mon Sep 17 00:00:00 2001 From: "Rafael G. Martins" Date: Tue, 11 Oct 2016 23:52:36 +0200 Subject: build: run tests while building rpm --- Makefile.am | 1 + blogc.spec.in | 6 +++++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/Makefile.am b/Makefile.am index 25098d5..e5d9469 100644 --- a/Makefile.am +++ b/Makefile.am @@ -18,6 +18,7 @@ EXTRA_DIST = \ build-aux/valgrind.sh \ $(top_srcdir)/.version \ autogen.sh \ + blogc.spec \ LICENSE \ README.md \ $(NULL) diff --git a/blogc.spec.in b/blogc.spec.in index bd7952e..3840a92 100644 --- a/blogc.spec.in +++ b/blogc.spec.in @@ -6,6 +6,7 @@ Group: Applications/Text Summary: A blog compiler URL: @PACKAGE_URL@ Source0: https://github.com/blogc/blogc/releases/download/v@PACKAGE_VERSION@/blogc-@PACKAGE_VERSION@.tar.xz +BuildRequires: libcmocka-devel, git %description blogc(1) is a blog compiler. It converts source files and templates into @@ -30,9 +31,12 @@ blogc-runserver is a simple HTTP server to test blogc websites. %setup -q -n @PACKAGE_NAME@-@PACKAGE_VERSION@ %build -%configure --enable-git-receiver --enable-runserver +%configure --enable-git-receiver --enable-runserver --enable-tests make %{?_smp_mflags} +%check +make check + %install rm -rf $RPM_BUILD_ROOT %make_install -- cgit v1.2.3-18-g5258