From c61be1af59ad3accce47387776e4680f93c5f344 Mon Sep 17 00:00:00 2001 From: Vitaliy Mysak Date: Wed, 9 Jan 2019 16:50:40 +0000 Subject: [PATCH] OCF: tests: add flush and unmap test Add test for flush and unmap IO types We test correctness with bdevperf -w by watching if any errors produced during its run Change-Id: I07dcda5b976aa0d23e75ef2a312dd9780c6c39f3 Signed-off-by: Vitaliy Mysak Reviewed-on: https://review.gerrithub.io/c/439647 Tested-by: SPDK CI Jenkins Reviewed-by: Darek Stojaczyk Reviewed-by: Changpeng Liu Reviewed-by: Tomasz Zawadzki Chandler-Test-Pool: SPDK Automated Test System --- test/ocf/integrity/bdevperf-iotypes.sh | 10 ++++++++++ test/ocf/ocf.sh | 1 + 2 files changed, 11 insertions(+) create mode 100755 test/ocf/integrity/bdevperf-iotypes.sh diff --git a/test/ocf/integrity/bdevperf-iotypes.sh b/test/ocf/integrity/bdevperf-iotypes.sh new file mode 100755 index 000000000..fd368d3c0 --- /dev/null +++ b/test/ocf/integrity/bdevperf-iotypes.sh @@ -0,0 +1,10 @@ +#!/usr/bin/env bash + +curdir=$(dirname $(readlink -f "$BASH_SOURCE")) +rootdir=$(readlink -f $curdir/../../..) +source $rootdir/test/common/autotest_common.sh + +bdevperf=$rootdir/test/bdev/bdevperf/bdevperf + +$bdevperf -c $curdir/mallocs.conf -q 128 -o 4096 -t 4 -w flush +$bdevperf -c $curdir/mallocs.conf -q 128 -o 4096 -t 4 -w unmap diff --git a/test/ocf/ocf.sh b/test/ocf/ocf.sh index d8e3ffbce..374038349 100755 --- a/test/ocf/ocf.sh +++ b/test/ocf/ocf.sh @@ -15,5 +15,6 @@ function suite() timing_enter ocf suite "$testdir/integrity/fio-mallocs.sh" +suite "$testdir/integrity/bdevperf-iotypes.sh" timing_exit ocf