Whamcloud - gitweb
LU-6345 test: compare /bin/sleep in sanity-hsm.sh test_30c
[fs/lustre-release.git] / lustre / tests / racer / file_exec.sh
1 #!/bin/bash
2
3 DIR=$1
4 MAX=$2
5 PROG=/bin/sleep
6
7 while /bin/true ; do
8     file=$((RANDOM % MAX))
9     cp $PROG $DIR/$file > /dev/null 2>&1
10     $DIR/$file 0.$((RANDOM % 5 + 1)) 2> /dev/null
11     sleep $((RANDOM % 3))
12 done
13