From fc09629c0c19c7efdc5ef8781a775293b4ae9416 Mon Sep 17 00:00:00 2001 From: David Sommerseth Date: Thu, 10 Dec 2009 19:57:14 +0100 Subject: Package the unit-tests and run the unit test after compilation --- Makefile | 2 +- contrib/python-dmidecode.spec | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/Makefile b/Makefile index 98e6df7..6793970 100644 --- a/Makefile +++ b/Makefile @@ -44,7 +44,7 @@ clean: tarball: rm -rf $(PACKAGE)-$(VERSION) mkdir $(PACKAGE)-$(VERSION) - cp -r contrib doc examples Makefile man README src dmidecode.py $(PACKAGE)-$(VERSION) + cp -r contrib doc examples Makefile man README src dmidecode.py unit-tests/ $(PACKAGE)-$(VERSION) tar -czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION) rpm-prep: diff --git a/contrib/python-dmidecode.spec b/contrib/python-dmidecode.spec index be0cd53..0c7cba6 100644 --- a/contrib/python-dmidecode.spec +++ b/contrib/python-dmidecode.spec @@ -25,6 +25,9 @@ as python data structures or as XML data using libxml2. %build make build +cd unit-tests +make +cd .. %install rm -rf $RPM_BUILD_ROOT -- cgit