From f1d405ebe533d872c421b523aff371d215bf9118 Mon Sep 17 00:00:00 2001 From: David Oberhollenzer Date: Mon, 22 Aug 2016 16:05:19 +0200 Subject: mtd-utils: Add flash torture test utility Basically a user space port of the mtd torture test kernel module. In addition to the block offset and count module parameters, the utility supports a block stride and can restore the block contents after test. In contrast to the kernel module, the torture test is implemented by the libmtd mtd_toruture function and thus doesn't allow for similarly fine grained options on diagnostics. Signed-off-by: David Oberhollenzer Signed-off-by: Richard Weinberger --- tests/mtd-tests/Makemodule.am | 12 ++++++++++++ 1 file changed, 12 insertions(+) create mode 100644 tests/mtd-tests/Makemodule.am (limited to 'tests/mtd-tests/Makemodule.am') diff --git a/tests/mtd-tests/Makemodule.am b/tests/mtd-tests/Makemodule.am new file mode 100644 index 0000000..d61156f --- /dev/null +++ b/tests/mtd-tests/Makemodule.am @@ -0,0 +1,12 @@ +flash_torture_SOURCES = tests/mtd-tests/flash_torture.c +flash_torture_LDADD = libmtd.a +flash_torture_CPPFLAGS = $(AM_CPPFLAGS) + +MTDTEST_BINS = \ + flash_torture + +if INSTALL_TESTS +pkglibexec_PROGRAMS += $(MTDTEST_BINS) +else +noinst_PROGRAMS += $(MTDTEST_BINS) +endif -- cgit v1.2.3