1#!/usr/bin/env bash 2set -xe 3 4MATCH_FILE="spdkcli_raid.test" 5SPDKCLI_BRANCH="/bdevs" 6testdir=$(readlink -f $(dirname $0)) 7. $testdir/common.sh 8 9timing_enter spdkcli_raid 10trap 'on_error_exit;' ERR 11 12timing_enter run_spdk_tgt 13run_spdk_tgt 14timing_exit run_spdk_tgt 15 16timing_enter spdkcli_create_malloc 17$spdkcli_job "'/bdevs/malloc create 8 512 Malloc1' 'Malloc1' True 18'/bdevs/malloc create 8 512 Malloc2' 'Malloc2' True 19" 20timing_exit spdkcli_create_malloc 21 22timing_enter spdkcli_create_raid 23$spdkcli_job "'/bdevs/raid_volume create testraid 0 \"Malloc1 Malloc2\" 4' 'testraid' True 24" 25timing_exit spdkcli_create_raid 26 27timing_enter spdkcli_check_match 28check_match 29timing_exit spdkcli_check_match 30 31timing_enter spdkcli_delete_raid 32$spdkcli_job "'/bdevs/raid_volume delete testraid' '' True 33" 34timing_exit spdkcli_delete_raid 35 36timing_enter spdkcli_delete_malloc 37$spdkcli_job "'/bdevs/malloc delete Malloc1' '' True 38'/bdevs/malloc delete Malloc2' '' True 39" 40timing_exit spdkcli_delete_malloc 41 42killprocess $spdk_tgt_pid 43timing_exit spdkcli_raid 44report_test_completion spdk_cli 45