ceph/qa/workunits/suites/wac.sh
Alan Somers 3aae5ca6fd scripts: fix bash path in shebangs
/bin/bash is a Linuxism.  Other operating systems install bash to
different paths.  Use /usr/bin/env in shebangs to find bash.

Signed-off-by: Alan Somers <asomers@gmail.com>
2017-07-27 13:24:26 -06:00

13 lines
178 B
Bash
Executable File

#!/usr/bin/env bash
set -ex
wget http://download.ceph.com/qa/wac.c
gcc -o wac wac.c
set +e
timeout 5m ./wac -l 65536 -n 64 -r wac-test
RET=$?
set -e
[[ $RET -eq 124 ]]
echo OK