From: Akinobu Mita <akinobu.mita@gmail.com>
To: linux-mtd@lists.infradead.org
Cc: Artem Bityutskiy <dedekind1@gmail.com>,
Iwo Mergler <Iwo.Mergler@netcommwireless.com.au>,
Adrian Hunter <adrian.hunter@intel.com>,
Akinobu Mita <akinobu.mita@gmail.com>,
Vikram Narayanan <vikram186@gmail.com>,
Brian Norris <computersforpeace@gmail.com>,
David Woodhouse <dwmw2@infradead.org>
Subject: [PATCH -next v2 00/10] mtd: tests: reduce duplication among mtd tests modules
Date: Sat, 3 Aug 2013 18:52:06 +0900 [thread overview]
Message-ID: <1375523536-32671-1-git-send-email-akinobu.mita@gmail.com> (raw)
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@netcommwireless.com.au>
Cc: Brian Norris <computersforpeace@gmail.com>
Cc: Vikram Narayanan <vikram186@gmail.com>
Cc: Adrian Hunter <adrian.hunter@intel.com>
Cc: Artem Bityutskiy <dedekind1@gmail.com>
Cc: David Woodhouse <dwmw2@infradead.org>
Cc: linux-mtd@lists.infradead.org
--
1.8.3.1
next reply other threads:[~2013-08-03 9:53 UTC|newest]
Thread overview: 17+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-08-03 9:52 Akinobu Mita [this message]
2013-08-03 9:52 ` [PATCH -next v2 01/10] mtd: tests: introduce helper functions Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 02/10] mtd: tests: rename sources in order to link a helper object Akinobu Mita
2013-08-30 15:53 ` David Woodhouse
2013-08-30 16:24 ` Brian Norris
2013-08-30 17:17 ` David Woodhouse
2013-09-01 0:51 ` Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 03/10] mtd: mtd_oobtest: use mtd_test helpers Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 04/10] mtd: mtd_pagetest: " Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 05/10] mtd: mtd_readtest: " Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 06/10] mtd: mtd_speedtest: " Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 07/10] mtd: mtd_stresstest: " Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 08/10] mtd: mtd_subpagetest: " Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 09/10] mtd: mtd_torturetest: " Akinobu Mita
2013-08-03 9:52 ` [PATCH -next v2 10/10] mtd: mtd_nandbiterrs: " Akinobu Mita
2013-08-06 14:07 ` [PATCH -next v2 00/10] mtd: tests: reduce duplication among mtd tests modules Artem Bityutskiy
2013-08-07 14:11 ` Akinobu Mita
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1375523536-32671-1-git-send-email-akinobu.mita@gmail.com \
--to=akinobu.mita@gmail.com \
--cc=Iwo.Mergler@netcommwireless.com.au \
--cc=adrian.hunter@intel.com \
--cc=computersforpeace@gmail.com \
--cc=dedekind1@gmail.com \
--cc=dwmw2@infradead.org \
--cc=linux-mtd@lists.infradead.org \
--cc=vikram186@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox