mirror of https://github.com/ceph/ceph
win32*.sh: fix SKIP_TESTS flag
The "SKIP_TESTS" flag used by the Windows build script is currently ignored. This patch will skip some of the make targets when "SKIP_TESTS" is set. Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
This commit is contained in:
parent
0f6e7370b3
commit
a9b322b385
|
@ -155,12 +155,17 @@ if [[ -z $SKIP_BUILD ]]; then
|
|||
# We're going to use an associative array having subdirectories as keys
|
||||
# and targets as values.
|
||||
declare -A make_targets
|
||||
make_targets["src/tools"]="ceph-conf ceph_radosacl ceph_scratchtool rados"
|
||||
make_targets["src/tools"]="ceph-conf rados"
|
||||
make_targets["src/tools/immutable_object_cache"]="all"
|
||||
make_targets["src/tools/rbd"]="all"
|
||||
make_targets["src/tools/rbd_wnbd"]="all"
|
||||
make_targets["src/compressor"]="all"
|
||||
|
||||
if [[ -z $SKIP_TESTS ]]; then
|
||||
make_targets["src/tools"]+=" ceph_radosacl ceph_scratchtool"
|
||||
make_targets["src/test"]="all"
|
||||
fi
|
||||
|
||||
for target_subdir in "${!make_targets[@]}"; do
|
||||
echo "Building $target_subdir: ${make_targets[$target_subdir]}" | tee -a "${BUILD_DIR}/build.log"
|
||||
make -j $NUM_WORKERS -C $target_subdir ${make_targets[$target_subdir]} 2>&1 | tee -a "${BUILD_DIR}/build.log"
|
||||
|
|
Loading…
Reference in New Issue