diff options
author | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-10-11 23:52:36 +0200 |
---|---|---|
committer | Rafael G. Martins <rafael@rafaelmartins.eng.br> | 2016-10-11 23:52:36 +0200 |
commit | 20bbc715578bff5f5b2433334a39750f083d0305 (patch) | |
tree | c0e92e88b329a098d8d5e9d5914953ca210e729b | |
parent | bbe4028f33626c7928c36d78f176b21bbeaa7655 (diff) | |
download | blogc-20bbc715578bff5f5b2433334a39750f083d0305.tar.gz blogc-20bbc715578bff5f5b2433334a39750f083d0305.tar.bz2 blogc-20bbc715578bff5f5b2433334a39750f083d0305.zip |
build: run tests while building rpm
-rw-r--r-- | Makefile.am | 1 | ||||
-rw-r--r-- | blogc.spec.in | 6 |
2 files changed, 6 insertions, 1 deletions
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 |