Whamcloud - gitweb
LU-1538 tests: delete test files from /tmp after use
[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 CLIENT1=${CLIENT1:-$(hostname)}
7 SINGLECLIENT=$CLIENT1
8 RCLIENTS=${RCLIENTS:-""}
9
10 init_clients_lists
11
12 [ -n "$RCLIENTS" -a "$PDSH" = "no_dsh" ] &&
13         error "tests for remote clients $RCLIENTS needs pdsh != do_dsh " || true
14
15 [ -n "$FUNCTIONS" ] && . $FUNCTIONS || true
16
17 # for recovery scale tests
18 # default boulder cluster iozone location
19 export PATH=/opt/iozone/bin:$PATH
20
21 LOADS=${LOADS:-"dd tar dbench iozone"}
22 for i in $LOADS; do
23         [ -f $LUSTRE/tests/run_${i}.sh ] || error "incorrect load: $i"
24 done
25 CLIENT_LOADS=($LOADS)
26
27 # This is used when testing on SLURM environment.
28 # Test will use srun when SRUN_PARTITION is set
29 SRUN=${SRUN:-$(which srun 2>/dev/null || true)}
30 SRUN_PARTITION=${SRUN_PARTITION:-""}
31 SRUN_OPTIONS=${SRUN_OPTIONS:-"-W 1800 -l -O"}