Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

test: break out librados-using cephfs test #10452

Merged
merged 1 commit into from
Aug 7, 2016
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 1 addition & 0 deletions qa/workunits/libcephfs/test.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
#!/bin/sh -e

ceph_test_libcephfs
ceph_test_libcephfs_access

exit 0
18 changes: 16 additions & 2 deletions src/test/libcephfs/CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,18 +6,32 @@ if(${WITH_CEPHFS})
multiclient.cc
flock.cc
acl.cc
access.cc
)
set_target_properties(ceph_test_libcephfs PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_libcephfs
cephfs
librados
${UNITTEST_LIBS}
${EXTRALIBS}
${CMAKE_DL_LIBS}
)
install(TARGETS ceph_test_libcephfs
DESTINATION ${CMAKE_INSTALL_BINDIR})

add_executable(ceph_test_libcephfs_access
test.cc
access.cc
)
set_target_properties(ceph_test_libcephfs_access PROPERTIES COMPILE_FLAGS
${UNITTEST_CXX_FLAGS})
target_link_libraries(ceph_test_libcephfs_access
cephfs
librados
${UNITTEST_LIBS}
${EXTRALIBS}
${CMAKE_DL_LIBS}
)
install(TARGETS ceph_test_libcephfs_access
DESTINATION ${CMAKE_INSTALL_BINDIR})
endif(${WITH_CEPHFS})

2 changes: 1 addition & 1 deletion src/test/libcephfs/access.cc
Original file line number Diff line number Diff line change
Expand Up @@ -72,7 +72,7 @@ int do_mon_command(string s, string *key)

string get_unique_dir()
{
return string("/ceph_test_libcephfs.") + stringify(rand());
return string("/ceph_test_libcephfs_access.") + stringify(rand());
}

TEST(AccessTest, Foo) {
Expand Down