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