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 <hailiangx.e.wang@intel.com> Reviewed-on: https://review.gerrithub.io/390709 Reviewed-by: Paul Luse <paul.e.luse@intel.com> Reviewed-by: Liang Yan <liang.z.yan@intel.com> Reviewed-by: Changpeng Liu <changpeng.liu@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Tested-by: SPDK Automated Test System <sys_sgsw@intel.com>
This commit is contained in:
parent
31d8f511ea
commit
ad9b3ef5a5
@ -107,6 +107,19 @@ if [ -d /usr/src/fio ] && [ $SPDK_RUN_ASAN -eq 0 ]; then
|
|||||||
timing_exit fio
|
timing_exit fio
|
||||||
fi
|
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
|
if [ $RUN_NIGHTLY -eq 1 ]; then
|
||||||
# Temporarily disabled - infinite loop
|
# Temporarily disabled - infinite loop
|
||||||
timing_enter reset
|
timing_enter reset
|
||||||
|
Loading…
x
Reference in New Issue
Block a user