5 LUSTRE=${LUSTRE:-`dirname $0`/..}
6 . $LUSTRE/tests/test-framework.sh
9 # QE uses the following parameters:
10 # size=128 crghi=16 thrhi=32
15 . ${CONFIG:=$LUSTRE/tests/cfg/$NAME.sh}
17 [ "$SLOW" = no ] && { crghi=2; thrhi=2; }
20 ALWAYS_EXCEPT="$SGPDD_SURVEY_EXCEPT"
32 local params="size=$size crghi=$crghi thrhi=$thrhi"
33 do_rpc_nodes $host run_sgpdd $devs "$params"
41 for facet in ${facets//,/ }; do
42 local host=$(facet_host $facet)
43 local dev=${facet}_dev
44 local var=${host}_devs
45 eval ${var}=$(expand_list ${!var} ${!dev})
46 facetshosts=$(expand_list $facetshosts $host)
49 for host in ${facetshosts//,/ }; do
51 echo "=== $facets === $host === ${!var} ==="
52 local scsidevs=${!var}
53 run_sgpdd_host $host ${scsidevs}
58 check_progs_installed $(facets_hosts mds) $SGPDDSURVEY sg_map || \
59 { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
63 run_test 1 "sgpdd-survey, mds, scsidevs"
66 local osts=$(get_facets OST)
68 check_progs_installed $(facets_hosts $osts) $SGPDDSURVEY sg_map || \
69 { skip_env "SGPDDSURVEY=$SGPDDSURVEY or sg_map not found" && return 0; }
71 run_sgpdd_facets $osts
73 run_test 2 "sgpdd-survey, osts, scsidevs"
75 equals_msg `basename $0`: test complete, cleaning up
76 [ -f "$TESTSUITELOG" ] && cat $TESTSUITELOG || true