[PATCH -next v2 00/10] mtd: tests: reduce duplication among mtd tests modules
Akinobu Mita
akinobu.mita at gmail.com
Sat Aug 3 05:52:06 EDT 2013
This patch set reduces code duplication among mtd/tests modules by
moving common helper functions into mtd_test.c.
* Changes from v1
- link a signle object including helper functions to the test modules,
instead of providing a separate module.
- extend mtdtest_scan_for_bad_eraseblocks() so that it can specify any
contiguous erase blocks.
- rename mtdtest_erase_whole_device() to mtdtest_erase_good_eraseblocks()
and extend it so that it can specify any contiguous erase blocks.
- fix accidentally changed argument of memset() in mtd_readtest module
- convert mtd_torturetest module to use mtd_test helpers
- convert mtd_nandbiterrs module to use mtd_test helpers
Akinobu Mita (10):
mtd: tests: introduce helper functions
mtd: tests: rename sources in order to link a helper object
mtd: mtd_oobtest: use mtd_test helpers
mtd: mtd_pagetest: use mtd_test helpers
mtd: mtd_readtest: use mtd_test helpers
mtd: mtd_speedtest: use mtd_test helpers
mtd: mtd_stresstest: use mtd_test helpers
mtd: mtd_subpagetest: use mtd_test helpers
mtd: mtd_torturetest: use mtd_test helpers
mtd: mtd_nandbiterrs: use mtd_test helpers
drivers/mtd/tests/Makefile | 9 +
drivers/mtd/tests/mtd_nandbiterrs.c | 461 -----------------------
drivers/mtd/tests/mtd_oobtest.c | 714 ------------------------------------
drivers/mtd/tests/mtd_pagetest.c | 605 ------------------------------
drivers/mtd/tests/mtd_readtest.c | 257 -------------
drivers/mtd/tests/mtd_speedtest.c | 556 ----------------------------
drivers/mtd/tests/mtd_stresstest.c | 321 ----------------
drivers/mtd/tests/mtd_subpagetest.c | 504 -------------------------
drivers/mtd/tests/mtd_test.c | 110 ++++++
drivers/mtd/tests/mtd_test.h | 11 +
drivers/mtd/tests/mtd_torturetest.c | 535 ---------------------------
drivers/mtd/tests/nandbiterrs.c | 434 ++++++++++++++++++++++
drivers/mtd/tests/oobtest.c | 646 ++++++++++++++++++++++++++++++++
drivers/mtd/tests/pagetest.c | 516 ++++++++++++++++++++++++++
drivers/mtd/tests/readtest.c | 224 +++++++++++
drivers/mtd/tests/speedtest.c | 448 ++++++++++++++++++++++
drivers/mtd/tests/stresstest.c | 259 +++++++++++++
drivers/mtd/tests/subpagetest.c | 435 ++++++++++++++++++++++
drivers/mtd/tests/torturetest.c | 483 ++++++++++++++++++++++++
19 files changed, 3575 insertions(+), 3953 deletions(-)
delete mode 100644 drivers/mtd/tests/mtd_nandbiterrs.c
delete mode 100644 drivers/mtd/tests/mtd_oobtest.c
delete mode 100644 drivers/mtd/tests/mtd_pagetest.c
delete mode 100644 drivers/mtd/tests/mtd_readtest.c
delete mode 100644 drivers/mtd/tests/mtd_speedtest.c
delete mode 100644 drivers/mtd/tests/mtd_stresstest.c
delete mode 100644 drivers/mtd/tests/mtd_subpagetest.c
create mode 100644 drivers/mtd/tests/mtd_test.c
create mode 100644 drivers/mtd/tests/mtd_test.h
delete mode 100644 drivers/mtd/tests/mtd_torturetest.c
create mode 100644 drivers/mtd/tests/nandbiterrs.c
create mode 100644 drivers/mtd/tests/oobtest.c
create mode 100644 drivers/mtd/tests/pagetest.c
create mode 100644 drivers/mtd/tests/readtest.c
create mode 100644 drivers/mtd/tests/speedtest.c
create mode 100644 drivers/mtd/tests/stresstest.c
create mode 100644 drivers/mtd/tests/subpagetest.c
create mode 100644 drivers/mtd/tests/torturetest.c
Cc: Iwo Mergler <Iwo.Mergler at netcommwireless.com.au>
Cc: Brian Norris <computersforpeace at gmail.com>
Cc: Vikram Narayanan <vikram186 at gmail.com>
Cc: Adrian Hunter <adrian.hunter at intel.com>
Cc: Artem Bityutskiy <dedekind1 at gmail.com>
Cc: David Woodhouse <dwmw2 at infradead.org>
Cc: linux-mtd at lists.infradead.org
--
1.8.3.1
More information about the linux-mtd
mailing list