diff options
author | David Sommerseth <davids@redhat.com> | 2009-12-10 19:57:14 +0100 |
---|---|---|
committer | David Sommerseth <davids@redhat.com> | 2009-12-10 19:57:14 +0100 |
commit | fc09629c0c19c7efdc5ef8781a775293b4ae9416 (patch) | |
tree | a141edbc95b4d623d72ffe798b79796c1fc06ce3 | |
parent | 38537193a62d45db108527d242988f6dc13793af (diff) | |
download | python-dmidecode-fc09629c0c19c7efdc5ef8781a775293b4ae9416.tar.gz python-dmidecode-fc09629c0c19c7efdc5ef8781a775293b4ae9416.tar.xz python-dmidecode-fc09629c0c19c7efdc5ef8781a775293b4ae9416.zip |
Package the unit-tests and run the unit test after compilation
-rw-r--r-- | Makefile | 2 | ||||
-rw-r--r-- | contrib/python-dmidecode.spec | 3 |
2 files changed, 4 insertions, 1 deletions
@@ -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 |