summaryrefslogtreecommitdiff
path: root/manual/generic/sdcard-speed-test.yaml
diff options
context:
space:
mode:
authorMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-20 14:38:58 +0100
committerMilosz Wasilewski <milosz.wasilewski@linaro.org>2016-10-20 14:38:58 +0100
commitd341c22fae0e9ebbb27cf1a1d2629c6c011f7d23 (patch)
treed828ef6c6052d0ae2d95b1743d28f556848415c3 /manual/generic/sdcard-speed-test.yaml
parentd1b6521e96da63cb212a2e18c4a02791bf5e07cb (diff)
Moved manual tests to separate directory
Change-Id: I1092ce929d4d257dfd596034c605b4be5b0189a0 Signed-off-by: Milosz Wasilewski <milosz.wasilewski@linaro.org>
Diffstat (limited to 'manual/generic/sdcard-speed-test.yaml')
-rw-r--r--manual/generic/sdcard-speed-test.yaml37
1 files changed, 37 insertions, 0 deletions
diff --git a/manual/generic/sdcard-speed-test.yaml b/manual/generic/sdcard-speed-test.yaml
new file mode 100644
index 0000000..8d80d7a
--- /dev/null
+++ b/manual/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.