Whamcloud - gitweb
LU-780 test: improve parallel-scale to support hyperion run
[fs/lustre-release.git] / lustre / tests / cfg / ncli.sh
1 . $LUSTRE/tests/cfg/local.sh
2
3 CLIENT1=${CLIENT1:-`hostname`}
4 SINGLECLIENT=$CLIENT1
5 RCLIENTS=${RCLIENTS:-""}
6
7 init_clients_lists
8
9 [ -n "$RCLIENTS" -a "$PDSH" = "no_dsh" ] && \
10                 error "tests for remote clients $RCLIENTS needs pdsh != do_dsh " || true
11
12 [ -n "$FUNCTIONS" ] && . $FUNCTIONS || true
13
14 # for recovery scale tests
15 # default boulder cluster iozone location
16 export PATH=/opt/iozone/bin:$PATH
17
18 # This is used by a small number of tests to share state between the client
19 # running the tests, or in some cases between the servers (e.g. lfsck.sh).
20 # It needs to be a non-lustre filesystem that is available on all the nodes.
21 SHARED_DIRECTORY=${SHARED_DIRECTORY:-""}        # bug 17839 comment 65
22
23 LOADS=${LOADS:-"dd tar dbench iozone"}
24 for i in $LOADS; do
25     [ -f $LUSTRE/tests/run_${i}.sh ] || \
26         error "incorrect load: $i"
27 done
28 CLIENT_LOADS=($LOADS)
29
30 # This is used when testing on SLURM environment.
31 # Test will use srun when SRUN_PARTITION is set
32 SRUN=${SRUN:-$(which srun 2>/dev/null)}
33 SRUN_PARTITION=${SRUN_PARTITION:-""}
34 SRUN_OPTIONS=${SRUN_OPTIONS:-"-W 1800 -l -O"}