Whamcloud - gitweb
LU-17744 ldiskfs: mballoc stats fixes
[fs/lustre-release.git] / lustre / tests / cfg / ncli.sh
1 . $LUSTRE/tests/cfg/local.sh
2
3 # For multiple clients testing, we need use the cfg/ncli.sh config file, and
4 # only need specify the "RCLIENTS" variable. The "CLIENTS" and "CLIENTCOUNT"
5 # variables are defined in init_clients_lists(), called from cfg/ncli.sh.
6 RCLIENTS=${RCLIENTS:-""}
7
8 init_clients_lists
9
10 [ -n "$RCLIENTS" -a "$PDSH" = "no_dsh" ] &&
11         error "tests for remote clients $RCLIENTS needs pdsh != do_dsh " || true
12
13 [ -n "$FUNCTIONS" ] && . $FUNCTIONS || true
14
15 # for recovery scale tests
16 # default boulder cluster iozone location
17 export PATH=/opt/iozone/bin:$PATH
18
19 LOADS=${LOADS:-"dd tar dbench iozone"}
20 for i in $LOADS; do
21         [ -f $LUSTRE/tests/run_${i}.sh ] || error "incorrect load: $i"
22 done
23 CLIENT_LOADS=($LOADS)
24
25 # This is used when testing on SLURM environment.
26 # Test will use srun when SRUN_PARTITION is set
27 SRUN=${SRUN:-$(which srun 2>/dev/null || true)}
28 SRUN_PARTITION=${SRUN_PARTITION:-""}
29 SRUN_OPTIONS=${SRUN_OPTIONS:-"-W 1800 -l -O"}