From 2ac648a50aa813a3e5fbef73a44703598f4c36a3 Mon Sep 17 00:00:00 2001 From: Chase Qi Date: Wed, 27 Jan 2016 00:58:41 -0800 Subject: generic: add sdcard read/write speed test Change-Id: I76d0c0f1d24965d52fc55d2a137f1e22e684c96a Signed-off-by: Chase Qi --- generic/sdcard-speed-test.yaml | 37 +++++++++++++++++++++++++++++++++++++ 1 file changed, 37 insertions(+) create mode 100644 generic/sdcard-speed-test.yaml (limited to 'generic') diff --git a/generic/sdcard-speed-test.yaml b/generic/sdcard-speed-test.yaml new file mode 100644 index 0000000..8d80d7a --- /dev/null +++ b/generic/sdcard-speed-test.yaml @@ -0,0 +1,37 @@ +metadata: + name: sdcard-speed-test + format: "Manual Test Definition 1.0" + description: "Measure sdcard read/write speed with dd command." + maintainer: + - chase.qi@linaro.org + os: + - android + - debian + scope: + - benchmark + devices: + - panda + - panda-es + - arndale + - hi6220-hikey + - db410c + environment: + - manual-test + +run: + steps: + - Enter the root directory of the sdcard under test. + - On android, run the following command to test write speed. + - "# dd if=/dev/zero of=dd.img bs=1048576 count=2000" + - On debian, flag conv=fsync is needed, which tells dd to write to disk. + - "# dd if=/dev/zero of=dd.img bs=1048576 count=2000 conv=fsync" + - Before read speed test, clear the memory cache to ensure that the file is actually read from drive. + - "# sync; echo 3 > /proc/sys/vm/drop_caches" + - Run dd read speed test. + - "# dd if=dd.img of=/dev/null bs=1048576" + - Remove dd.img. + - "# rm dd.img" + + expected: + - dd commands finish successfully + - read/write speeds are printed to screen. -- cgit v1.2.3