Whamcloud - gitweb
LU-17814 utils: implement real pfind
[fs/lustre-release.git] / lustre / tests / acceptance-small.sh
1 #!/bin/bash
2 #
3 # usage: acceptance-small.sh [test list]
4 #       if no tests are specified, they are taken from test-groups/regression
5 #       if {TEST_NAME}=no is set, that test script is skipped
6 LUSTRE=${LUSTRE:-$(dirname $0)/..}
7 NAME=${NAME:-local} # name of config file eg lustre/tests/cfg/local.sh
8 DEFAULT_SUITES="${*:-$ACC_SM_ONLY}"
9 DEFAULT_SUITES="${DEFAULT_SUITES:-$(cat "$LUSTRE/tests/test-groups/regression")}"
10 AUSTER=$LUSTRE/tests/auster
11
12 for SUB in $DEFAULT_SUITES; do
13         ENV=${SUB^^}
14         ENV=${ENV//-/_}
15         [[ "${!ENV}" != "no" ]] || continue
16         SUITES="$SUITES $SUB"
17 done
18
19 echo "SUITES: $SUITES"
20
21 # check config file is available
22 if [ -e "$LUSTRE/tests/cfg/$NAME.sh" ]; then
23         echo "Running with config $LUSTRE/tests/cfg/${NAME}.sh"
24         $AUSTER -r -R -v -f "${NAME}" $SUITES
25 else # fall back to default lustre.cfg
26         echo "Running with config $LUSTRE/tests/cfg/lustre.sh"
27         $AUSTER -r -R -v -f "lustre" $SUITES
28 fi
29