From ad9b3ef5a558c5acc569c07f5071534cb93f021e Mon Sep 17 00:00:00 2001 From: Hailiang Wang Date: Thu, 7 Dec 2017 21:37:12 +0800 Subject: [PATCH] autotest: bdevperf test with gpt(porting from nightly to autotest) This patch is used to test bdevperf on one NVMe disk with 2 GPT partition. Change-Id: I46f6b5be3f4951625678861ff540629265e8931f Signed-off-by: Hailiang Wang Reviewed-on: https://review.gerrithub.io/390709 Reviewed-by: Paul Luse Reviewed-by: Liang Yan Reviewed-by: Changpeng Liu Reviewed-by: Daniel Verkamp Tested-by: SPDK Automated Test System --- test/lib/bdev/blockdev.sh | 13 +++++++++++++ 1 file changed, 13 insertions(+) diff --git a/test/lib/bdev/blockdev.sh b/test/lib/bdev/blockdev.sh index a56ae02e9..09fda353d 100755 --- a/test/lib/bdev/blockdev.sh +++ b/test/lib/bdev/blockdev.sh @@ -107,6 +107,19 @@ if [ -d /usr/src/fio ] && [ $SPDK_RUN_ASAN -eq 0 ]; then timing_exit fio fi +# Create conf file for bdevperf with gpt +cat > $testdir/bdev_gpt.conf << EOL +[Gpt] + Disable No +EOL + +# Get Nvme info through filtering gen_nvme.sh's result +$rootdir/scripts/gen_nvme.sh >> $testdir/bdev_gpt.conf + +# Run bdevperf with gpt +$testdir/bdevperf/bdevperf -c $testdir/bdev_gpt.conf -q 128 -s 4096 -w verify -t 5 +rm -f $testdir/bdev_gpt.conf + if [ $RUN_NIGHTLY -eq 1 ]; then # Temporarily disabled - infinite loop timing_enter reset