summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Sommerseth <davids@redhat.com>2009-12-10 19:57:14 +0100
committerDavid Sommerseth <davids@redhat.com>2009-12-10 19:57:14 +0100
commitfc09629c0c19c7efdc5ef8781a775293b4ae9416 (patch)
treea141edbc95b4d623d72ffe798b79796c1fc06ce3
parent38537193a62d45db108527d242988f6dc13793af (diff)
downloadpython-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--Makefile2
-rw-r--r--contrib/python-dmidecode.spec3
2 files changed, 4 insertions, 1 deletions
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