From: David Oberhollenzer Date: Mon, 12 Dec 2016 10:31:59 +0000 (+0100) Subject: Fix packaging of unit test files X-Git-Tag: v2.0.0-rc2~3 X-Git-Url: https://www.infradead.org/git/?a=commitdiff_plain;h=3ae860f93f0aa6b573ed37099ac936aaa888c4ac;p=mtd-utils.git Fix packaging of unit test files Previously, the unit test sysfs mock files and headers were not added to the distribution packag. Not packaging the header leads to compilation of the unit tests failing. Not packaging the stub files caueses the unit tests themselves to fail. This patch explicitly adds the header and sysfs mock files to the distribution target, allowing the unit tests to be used outside the git tree. Signed-off-by: David Oberhollenzer --- diff --git a/tests/unittests/Makemodule.am b/tests/unittests/Makemodule.am index 8099fc2..7c8c016 100644 --- a/tests/unittests/Makemodule.am +++ b/tests/unittests/Makemodule.am @@ -12,5 +12,12 @@ TEST_BINS = \ ubilib_test \ mtdlib_test +UNITTEST_HEADER = \ + tests/unittests/test_lib.h + +UNITTEST_EXTRA = \ + tests/unittests/sysfs_mock + +EXTRA_DIST += $(UNITTEST_HEADER) $(UNITTEST_EXTRA) noinst_PROGRAMS += $(TEST_BINS)