mirror of
https://github.com/ceph/ceph
synced 2024-12-25 21:03:31 +00:00
22fe493268
Signed-off-by: Sage Weil <sage@redhat.com>
37 lines
705 B
Bash
Executable File
37 lines
705 B
Bash
Executable File
#!/bin/bash -ex
|
|
|
|
parallel=1
|
|
[ "$1" = "--serial" ] && parallel=0
|
|
|
|
color=""
|
|
[ -t 1 ] && color="--gtest_color=yes"
|
|
|
|
function cleanup() {
|
|
pkill -P $$ || true
|
|
}
|
|
trap cleanup EXIT ERR HUP INT QUIT
|
|
|
|
for f in \
|
|
api_aio api_io api_list api_lock api_misc \
|
|
api_tier api_pool api_snapshots api_stat api_watch_notify api_cmd \
|
|
api_c_write_operations \
|
|
api_c_read_operations \
|
|
api_tmap_migrate \
|
|
list_parallel \
|
|
open_pools_parallel \
|
|
delete_pools_parallel \
|
|
watch_notify
|
|
do
|
|
if [ $parallel -eq 1 ]; then
|
|
r=`printf '%25s' $f`
|
|
ceph_test_rados_$f $color 2>&1 | \
|
|
tee ceph_test_rados_$f.log | \
|
|
sed "s/^/$r: /" &
|
|
else
|
|
ceph_test_rados_$f
|
|
fi
|
|
done
|
|
wait
|
|
|
|
exit 0
|