Project

General

Profile

Actions

Tasks #4321

closed

unit tests for FileStore::_detect_fs

Added by Loïc Dachary about 11 years ago. Updated over 10 years ago.

Status:
Resolved
Priority:
Normal
Assignee:
Category:
qa
Target version:
-
% Done:

10%

Tags:
Reviewed:
Affected Versions:
Pull request ID:

Description

work in progress

FileStore.cc::_detect_fs unit testing requires root privileges . It is best done by coupling a shell script (in the qa/workunits directory) that setup the proper environment for unit tests written in 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

Actions

Also available in: Atom PDF