test/lvol: update help message
update help message to match reordered and new test cases Change-Id: Id85391cfc84c1ee1567cae07da9ff797a95a6f68 Signed-off-by: Pawel Niedzwiecki <pawelx.niedzwiecki@intel.com> Reviewed-on: https://review.gerrithub.io/392675 Tested-by: SPDK Automated Test System <sys_sgsw@intel.com> Reviewed-by: Karol Latecki <karol.latecki@intel.com> Reviewed-by: Daniel Verkamp <daniel.verkamp@intel.com> Reviewed-by: Ben Walker <benjamin.walker@intel.com>
This commit is contained in:
parent
56af83ac74
commit
62dc3292f5
@ -1,5 +1,5 @@
|
|||||||
#!/usr/bin/env bash
|
#!/usr/bin/env bash
|
||||||
set -xe
|
set -e
|
||||||
BASE_DIR=$(readlink -f $(dirname $0))
|
BASE_DIR=$(readlink -f $(dirname $0))
|
||||||
[[ -z "$TEST_DIR" ]] && TEST_DIR="$(cd $BASE_DIR/../../ && pwd)"
|
[[ -z "$TEST_DIR" ]] && TEST_DIR="$(cd $BASE_DIR/../../ && pwd)"
|
||||||
|
|
||||||
@ -23,53 +23,59 @@ function usage() {
|
|||||||
echo "-x set -x for script debug"
|
echo "-x set -x for script debug"
|
||||||
echo " --test-cases= List test cases which will be run:
|
echo " --test-cases= List test cases which will be run:
|
||||||
1: 'construct_lvs_positive',
|
1: 'construct_lvs_positive',
|
||||||
2: 'construct_logical_volume_positive',
|
50: 'construct_logical_volume_positive',
|
||||||
3: 'construct_multi_logical_volumes_positive',
|
51: 'construct_multi_logical_volumes_positive',
|
||||||
4: 'resize_lvol_bdev_positive',
|
52: 'construct_lvol_bdev_using_name_positive',
|
||||||
5: 'destroy_lvol_store_positive',
|
53: 'construct_lvol_bdev_duplicate_names_positive',
|
||||||
6: 'destroy_lvol_store_with_lvol_bdev_positive',
|
100: 'construct_logical_volume_nonexistent_lvs_uuid',
|
||||||
7: 'destroy_multi_logical_volumes_positive',
|
101: 'construct_lvol_bdev_on_full_lvol_store',
|
||||||
8: 'nested construct_logical_volume_positive',
|
102: 'construct_lvol_bdev_name_twice',
|
||||||
9: 'destroy_after_resize_lvol_bdev_positive',
|
150: 'resize_lvol_bdev_positive',
|
||||||
10: 'construct_lvs_nonexistent_bdev',
|
200: 'resize_logical_volume_nonexistent_logical_volume',
|
||||||
11: 'construct_lvs_on_bdev_twice_negative',
|
201: 'resize_logical_volume_with_size_out_of_range',
|
||||||
12: 'construct_logical_volume_nonexistent_lvs_uuid',
|
250: 'destroy_lvol_store_positive',
|
||||||
13: 'construct_logical_volumes_on_busy_bdev',
|
251: 'destroy_lvol_store_use_name_positive',
|
||||||
14: 'resize_logical_volume_nonexistent_logical_volume',
|
252: 'destroy_lvol_store_with_lvol_bdev_positive',
|
||||||
15: 'resize_logical_volume_with_size_out_of_range',
|
253: 'destroy_multi_logical_volumes_positive',
|
||||||
16: 'destroy_lvol_store_nonexistent_lvs_uuid',
|
254: 'destroy_after_resize_lvol_bdev_positive',
|
||||||
17: 'destroy_lvol_store_nonexistent_bdev',
|
255: 'delete_lvol_store_persistent_positive',
|
||||||
18: 'nested construct_logical_volume_on_busy_bdev',
|
300: 'destroy_lvol_store_nonexistent_lvs_uuid',
|
||||||
19: 'nested destroy_logical_volume_positive',
|
301: 'delete_lvol_store_underlying_bdev',
|
||||||
20: 'delete_bdev_positive',
|
350: 'nested_destroy_logical_volume_negative',
|
||||||
21: 'construct_lvs_with_cluster_sz_out_of_range_max',
|
400: 'nested_construct_logical_volume_positive',
|
||||||
22: 'construct_lvs_with_cluster_sz_out_of_range_min',
|
450: 'construct_lvs_nonexistent_bdev',
|
||||||
23: 'tasting_positive',
|
451: 'construct_lvs_on_bdev_twice',
|
||||||
24: 'SIGTERM'
|
452: 'construct_lvs_name_twice',
|
||||||
|
500: 'nested_construct_lvol_bdev_on_full_lvol_store',
|
||||||
|
550: 'delete_bdev_positive',
|
||||||
|
600: 'construct_lvol_store_with_cluster_size_max',
|
||||||
|
601 'construct_lvol_store_with_cluster_size_min',
|
||||||
|
650: 'tasting_positive',
|
||||||
|
651: 'tasting_lvol_store_positive',
|
||||||
|
700: 'SIGTERM'
|
||||||
or
|
or
|
||||||
all: This parameter runs all tests
|
all: This parameter runs all tests
|
||||||
Ex: \"1,2,19,20\", default: all"
|
Ex: \"1,2,19,20\", default: all"
|
||||||
echo
|
echo
|
||||||
echo
|
echo
|
||||||
exit 0
|
|
||||||
}
|
}
|
||||||
|
|
||||||
while getopts 'xh-:' optchar; do
|
while getopts 'xh-:' optchar; do
|
||||||
case "$optchar" in
|
case "$optchar" in
|
||||||
-)
|
-)
|
||||||
case "$OPTARG" in
|
case "$OPTARG" in
|
||||||
help) usage $0 ;;
|
help) usage $0 && exit 0;;
|
||||||
total-size=*) total_size="${OPTARG#*=}" ;;
|
total-size=*) total_size="${OPTARG#*=}" ;;
|
||||||
block-size=*) block_size="${OPTARG#*=}" ;;
|
block-size=*) block_size="${OPTARG#*=}" ;;
|
||||||
cluster-sz=*) cluster_sz="${OPTARG#*=}" ;;
|
cluster-sz=*) cluster_sz="${OPTARG#*=}" ;;
|
||||||
test-cases=*) test_cases="${OPTARG#*=}" ;;
|
test-cases=*) test_cases="${OPTARG#*=}" ;;
|
||||||
*) usage $0 "Invalid argument '$OPTARG'" ;;
|
*) usage $0 "Invalid argument '$OPTARG'" && exit 1 ;;
|
||||||
esac
|
esac
|
||||||
;;
|
;;
|
||||||
h) usage $0 ;;
|
h) usage $0 && exit 0 ;;
|
||||||
x) set -x
|
x) set -x
|
||||||
x="-x" ;;
|
x="-x" ;;
|
||||||
*) usage $0 "Invalid argument '$OPTARG'"
|
*) usage $0 "Invalid argument '$OPTARG'" && exit 1 ;;
|
||||||
esac
|
esac
|
||||||
done
|
done
|
||||||
shift $(( OPTIND - 1 ))
|
shift $(( OPTIND - 1 ))
|
||||||
|
Loading…
Reference in New Issue
Block a user