aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2016-12-12 11:31:59 +0100
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>2016-12-13 18:47:25 +0100
commit3ae860f93f0aa6b573ed37099ac936aaa888c4ac (patch)
tree891254501c5c9d21d7e954ef581f374888ba6046
parentf5b47ef5112326b06fd875982379769c55a71703 (diff)
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 <david.oberhollenzer@sigma-star.at>
-rw-r--r--tests/unittests/Makemodule.am7
1 files changed, 7 insertions, 0 deletions
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)