]> git.proxmox.com Git - ceph.git/blame - ceph/src/test/run-rbd-unit-tests.sh
import 15.2.0 Octopus source
[ceph.git] / ceph / src / test / run-rbd-unit-tests.sh
CommitLineData
11fdf7f2
TL
1#!/usr/bin/env bash
2set -ex
7c673cae
FG
3
4# this should be run from the src directory in the ceph.git
5
6source $(dirname $0)/detect-build-env-vars.sh
7PATH="$CEPH_BIN:$PATH"
8
9f95a23c
TL
9if [ $# = 0 ]; then
10 # mimic the old behaviour
11 TESTS='0 1 61 109 127'
12 unset RBD_FEATURES; unittest_librbd
13elif [ $# = 1 -a "${1}" = N ] ; then
14 # new style no feature request
15 unset RBD_FEATURES; unittest_librbd
16else
17 TESTS="$*"
18fi
7c673cae 19
9f95a23c 20for i in ${TESTS}
7c673cae
FG
21do
22 RBD_FEATURES=$i unittest_librbd
23done
24
25echo OK