ceph/qa
Loic Dachary 574051f8da unit tests for FileStore::_detect_fs when running on ext4
unit tests are added in test/filestore/store_test.cc for the
FileStore::_detect_fs method, when using ext4. It tests the following
situations:

 * without user_xattr, ext4 fails
 * mounted with user_xattr, ext4 fails if filestore_xattr_use_omap is false
 * mounted with user_xattr, ext4 succeeds if filestore_xattr_use_omap is true

The tests are grouped in an ext4 dedicated class

  TEST(EXT4StoreTest, _detect_fs)

The qa/workunits/filestore/filestore.sh script is added to prepare the
environment required for the unit tests ( create an image file,
formats it with ext4 etc.). It runs ceph_test_filestore with a sudo
to allow it to mount(2) and umount(2) the ext4 file system. It is
called with

  ceph_test_filestore --gtest_filter=EXT4StoreTest.*

to only run the ext4 dependent tests.

The filestore.sh script is meant to be used as part of teuthology
in order to increase the code coverage for src/os/FileStore.cc. It is
self tested and can be checked from the source directory with

  CEPH_TEST_FILESTORE=../../../src/ceph_test_filestore filestore.sh TEST

http://tracker.ceph.com/issues/4321 refs #4321

Signed-off-by: Loic Dachary <loic@dachary.org>
2013-04-02 13:10:37 +02:00
..
btrfs qa/btrfs/test_rmdir_async_snap 2012-02-20 10:56:42 -08:00
client qa/client/gen-1774.sh 2012-01-12 12:59:07 -08:00
libceph trivial_libceph: need O_RDWR 2012-02-07 21:56:51 -08:00
mds qa: add a slightly more stressful anchortable test 2012-01-04 17:11:36 -08:00
mon/bootstrap qa: fix mon single_host_multi.sh test 2012-05-21 13:15:23 -07:00
qa_scripts added new cli tests 2013-02-11 17:29:03 -08:00
rbd doc: more c* -> ceph-* renames 2011-09-22 16:18:37 -07:00
rgw s3.sh: simple bug fix 2011-02-10 15:43:30 -08:00
workunits unit tests for FileStore::_detect_fs when running on ext4 2013-04-02 13:10:37 +02:00
loopall.sh qa: fix loopall, runallonce scripts 2011-06-13 13:31:35 -07:00
Makefile qa: add clone_range tool 2011-06-29 12:58:49 -07:00
run_xfstests_qemu.sh qa: fix quoting of wget URLs 2013-02-18 10:58:10 -08:00
run_xfstests.sh qa/run_xfstests.sh: use $TESTDIR instead of /tmp/cephtest 2013-02-23 08:38:10 -08:00
runallonce.sh qa: fix loopall, runallonce scripts 2011-06-13 13:31:35 -07:00
runoncfuse.sh c* -> ceph-* 2011-09-22 15:08:25 -07:00
runonkclient.sh qa: Whoops, never added the runonkclient script 2009-12-14 15:46:06 -08:00
setup-chroot.sh Add the setup-chroot.sh script 2010-09-28 19:25:10 -07:00