]> git.apps.os.sepia.ceph.com Git - ceph.git/commitdiff
win32_build.sh: build "ceph_test*"
authorLucian Petrut <lpetrut@cloudbasesolutions.com>
Thu, 15 Sep 2022 08:41:56 +0000 (08:41 +0000)
committerLucian Petrut <lpetrut@cloudbasesolutions.com>
Fri, 17 Feb 2023 10:42:40 +0000 (10:42 +0000)
At the moment, win32_build.sh builds the "tests" target, which
only includes the "unittest_*" tests.

We'll update the build script to include "ceph_test_*" targets
as well.

Note that we can't just build all the targets that were generated
by cmake since some of them are unavailable on Windows. When
doing the Windows port, we decided to avoid polluting the Cmake
files and keep the amount of Windows checks to a minimum.

Signed-off-by: Lucian Petrut <lpetrut@cloudbasesolutions.com>
win32_build.sh

index 2b84851ce8f6ac9dea5b91fa2a15a0bf98ab47dc..3644074ef441d4eaf1806a28ea19ce72455f3a41 100755 (executable)
@@ -197,7 +197,8 @@ if [[ -z $SKIP_BUILD ]]; then
     # TODO: do we actually need the ceph compression libs?
     ninja_targets+=" compressor ceph_lz4 ceph_snappy ceph_zlib ceph_zstd"
     if [[ -z $SKIP_TESTS ]]; then
-      ninja_targets+=" tests ceph_radosacl ceph_scratchtool"
+      ninja_targets+=" tests ceph_radosacl ceph_scratchtool "
+      ninja_targets+=`ninja -t targets | grep ceph_test | cut -d ":" -f 1 | grep -v exe`
     fi
 
     ninja -v $ninja_targets 2>&1 | tee "${BUILD_DIR}/build.log"