]> www.infradead.org Git - mtd-utils.git/commitdiff
Fix packaging of unit test files
authorDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Mon, 12 Dec 2016 10:31:59 +0000 (11:31 +0100)
committerDavid Oberhollenzer <david.oberhollenzer@sigma-star.at>
Tue, 13 Dec 2016 17:47:25 +0000 (18:47 +0100)
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>
tests/unittests/Makemodule.am

index 8099fc2f2a402c571ef7a428fee3e1ebdd6ab448..7c8c0167ec5e0b6334632821e6d5c74120a97eab 100644 (file)
@@ -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)