All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH -next v2 00/10] mtd: tests: reduce duplication among mtd tests modules
@ 2013-08-03  9:52 Akinobu Mita
  2013-08-03  9:52 ` [PATCH -next v2 01/10] mtd: tests: introduce helper functions Akinobu Mita
                   ` (10 more replies)
  0 siblings, 11 replies; 17+ messages in thread
From: Akinobu Mita @ 2013-08-03  9:52 UTC (permalink / raw)
  To: linux-mtd
  Cc: Artem Bityutskiy, Iwo Mergler, Adrian Hunter, Akinobu Mita,
	Vikram Narayanan, Brian Norris, David Woodhouse

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

^ permalink raw reply	[flat|nested] 17+ messages in thread

end of thread, other threads:[~2013-09-01  0:51 UTC | newest]

Thread overview: 17+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-08-03  9:52 [PATCH -next v2 00/10] mtd: tests: reduce duplication among mtd tests modules Akinobu Mita
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

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.