From 3ae860f93f0aa6b573ed37099ac936aaa888c4ac Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 12 Dec 2016 11:31:59 +0100 Subject: 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 --- tests/unittests/Makemodule.am | 7 +++++++ 1 file changed, 7 insertions(+) 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) -- cgit v1.2.3