Skip to content

Commit fc09629

Browse files
author
David Sommerseth
committed
Package the unit-tests and run the unit test after compilation
1 parent 3853719 commit fc09629

2 files changed

Lines changed: 4 additions & 1 deletion

File tree

Makefile

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ clean:
4444
tarball:
4545
rm -rf $(PACKAGE)-$(VERSION)
4646
mkdir $(PACKAGE)-$(VERSION)
47-
cp -r contrib doc examples Makefile man README src dmidecode.py $(PACKAGE)-$(VERSION)
47+
cp -r contrib doc examples Makefile man README src dmidecode.py unit-tests/ $(PACKAGE)-$(VERSION)
4848
tar -czvf $(PACKAGE)-$(VERSION).tar.gz $(PACKAGE)-$(VERSION)
4949

5050
rpm-prep:

contrib/python-dmidecode.spec

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ as python data structures or as XML data using libxml2.
2525

2626
%build
2727
make build
28+
cd unit-tests
29+
make
30+
cd ..
2831

2932
%install
3033
rm -rf $RPM_BUILD_ROOT

0 commit comments

Comments
 (0)