Project

General

Profile

Tasks #4321

Updated by Loïc Dachary about 11 years ago

"FileStore.cc::_detect_fs":https://github.com/ceph/ceph/blob/ea7907fc2b7f0746ec1186c971b3d1706b94ba72/src/os/FileStore.cc#L987 unit testing "requires root privileges":http://marc.info/?l=ceph-devel&m=136015147332122&w=4 . It is best done by coupling a shell script "(in the qa/workunits directory)":https://github.com/ceph/ceph/tree/88555e72850219a121ece09e9ea0a269392efee4/qa/workunits     that setup the proper environment for unit tests written in "test/filestore/store_test.cc":https://github.com/ceph/ceph/blob/88555e72850219a121ece09e9ea0a269392efee4/src/test/filestore/store_test.cc  

 * for fs in ext4 btrfs xfs 
 ** create an $fs filesystem 
 ** run ceph_test_filestore --gtest_filter=${fs}StoreTest.* 

 The workunit test is then run as part of teuthology to "check code coverage":http://dachary.org/?p=1788 

Back