]> git.apps.os.sepia.ceph.com Git - ceph-ci.git/commitdiff
test/libcephfs: add ceph_test_libcephfs_vxattr
authorXiubo Li <xiubli@redhat.com>
Tue, 5 Mar 2024 04:38:05 +0000 (12:38 +0800)
committerXiubo Li <xiubli@redhat.com>
Wed, 24 Jul 2024 02:48:05 +0000 (10:48 +0800)
Fixes: https://tracker.ceph.com/issues/64679
Signed-off-by: Xiubo Li <xiubli@redhat.com>
(cherry picked from commit b2a07f8a1b40ebbfe0fd96dc19d3307b5145f7ec)

Conflicts:
qa/workunits/libcephfs/test.sh
src/test/libcephfs/CMakeLists.txt
Missing commit 540f3962034("test/libcephfs: move the snapdiff to a dedicated binary")

qa/workunits/libcephfs/test.sh
src/test/libcephfs/CMakeLists.txt

index c53fe893c13b270ed97351f28e2e1c71a1fb7b0e..4c88517d87187d144e984dc8bc2de610be9303ba 100755 (executable)
@@ -6,5 +6,6 @@ ceph_test_libcephfs_reclaim
 ceph_test_libcephfs_lazyio
 ceph_test_libcephfs_newops
 ceph_test_libcephfs_suidsgid
+ceph_test_libcephfs_vxattr
 
 exit 0
index 09cb7e6dea00cd5d330507c5e1dfb6910f09b94b..4904b562fb325e43fd954c5c64bfd491c5c6dfb1 100644 (file)
@@ -10,7 +10,6 @@ if(WITH_LIBCEPHFS)
     main.cc
     deleg.cc
     monconfig.cc
-    vxattr.cc
     snapdiff.cc
   )
   target_link_libraries(ceph_test_libcephfs
@@ -37,6 +36,21 @@ if(WITH_LIBCEPHFS)
   install(TARGETS ceph_test_libcephfs_suidsgid
     DESTINATION ${CMAKE_INSTALL_BINDIR})
 
+  add_executable(ceph_test_libcephfs_vxattr
+    vxattr.cc
+    main.cc
+  )
+  target_link_libraries(ceph_test_libcephfs_vxattr
+    ceph-common
+    cephfs
+    librados
+    ${UNITTEST_LIBS}
+    ${EXTRALIBS}
+    ${CMAKE_DL_LIBS}
+    )
+  install(TARGETS ceph_test_libcephfs_vxattr
+    DESTINATION ${CMAKE_INSTALL_BINDIR})
+
   add_executable(ceph_test_libcephfs_newops
     main.cc
     newops.cc