glusterfs/tests
Sunil Kumar Acharya acf8cc3a22 cluster/ec: Implement FALLOCATE FOP for EC
FALLOCATE file operations is not implemented in the
existing EC code. This change set implements it
for EC.

BUG: 1448293
Change-Id: Id9ed914db984c327c16878a5b2304a0ea461b623
Signed-off-by: Sunil Kumar Acharya <sheggodu@redhat.com>
Reviewed-on: https://review.gluster.org/15200
Smoke: Gluster Build System <jenkins@build.gluster.org>
NetBSD-regression: NetBSD Build System <jenkins@build.gluster.org>
Reviewed-by: Pranith Kumar Karampuri <pkarampu@redhat.com>
CentOS-regression: Gluster Build System <jenkins@build.gluster.org>
2017-05-23 07:13:06 +00:00
..
basic cluster/ec: Implement FALLOCATE FOP for EC 2017-05-23 07:13:06 +00:00
bitrot features/bit-rot-stub: bring in optional versioning 2017-04-18 23:29:46 -04:00
bugs nl-cache: In case of nameless operations do not cache 2017-05-22 12:39:59 +00:00
configfiles Halo Replication feature for AFR translator 2017-05-02 10:23:53 +00:00
encryption tests : Modifying crypt xlators unit tests 2016-01-24 04:35:01 -08:00
experimental core: Add experimental xlator directory 2015-11-18 04:23:02 -08:00
features tests/lock_revocation: mark as bad 2017-05-10 14:56:54 +00:00
geo-rep georep: tests for logrotate, create+rename, hard-link rename 2016-08-09 00:29:35 -07:00
performance tests: Fix races in open-behind.t 2016-09-27 04:44:27 -07:00
utils all: reduce "inline" usage 2015-09-01 04:55:15 -07:00
vagrant vagrant-test: added more options and centos6 base box 2016-04-25 07:28:39 -07:00
afr.rc cluster/ec: Implement heal info with lock 2016-10-11 02:29:27 -07:00
changelog.rc changelog: test case for verifying empty changelogs avoided 2015-07-27 00:49:44 -07:00
cleanup.sh tests: miscellaneous improvements 2016-07-11 06:33:38 -07:00
cluster.rc glusterd: socketfile & pidfile related fixes for brick multiplexing feature 2017-05-09 01:30:01 +00:00
common-utils.rc features/shard: Fix permission issues 2015-08-30 08:20:21 -07:00
dht.rc cluster/dht: Rebalance on all nodes should migrate files 2017-05-16 16:01:39 +00:00
env.rc.in tests: Enable all gfapi test cases 2016-07-20 23:15:55 -07:00
fallocate.rc porting: Provide setfattr/getfattr implementation 2014-09-05 10:04:20 -07:00
fdl.rc jbr: Sending rollback from failed fop to fdl 2016-11-08 11:25:25 -08:00
fileio.rc porting: Provide setfattr/getfattr implementation 2014-09-05 10:04:20 -07:00
geo-rep.rc georep: tests for logrotate, create+rename, hard-link rename 2016-08-09 00:29:35 -07:00
include.rc glusterd: Make reset-brick work correctly if brick-mux is on 2017-05-10 18:58:21 +00:00
nfs.rc Tests portability: umount(8) 2015-06-09 06:24:47 -07:00
README.md Geo-rep: Adding regression tests for geo-rep 2015-04-13 10:01:49 +00:00
snapshot.rc tests: use trap mechanism to ensure that proper cleanups happen 2016-04-12 05:04:24 -07:00
ssl.rc gfapi: SSL connection for mgmt connection is not working 2016-08-28 23:19:33 -07:00
tier.rc tier : Tier as a service 2017-01-16 20:49:47 -08:00
traps.rc tests: use trap mechanism to ensure that proper cleanups happen 2016-04-12 05:04:24 -07:00
volume.rc glusterd: socketfile & pidfile related fixes for brick multiplexing feature 2017-05-09 01:30:01 +00:00

Regression tests framework for GlusterFS

Prereq

  • Build and install the version of glusterfs with your changes. Make sure the installed version is accessible from $PATH.

Prereq for geo-rep regression tests.

How-To

  • To mount glusterfs, NEVER use 'mount -t glusterfs', instead use 'glusterfs -s ' method. This is because with the patch build setup doesnot install the /sbin/mount.glusterfs necessary, where as the glusterfs binary will be accessible with $PATH, and will pick the right version.
  • (optional) Set environment variables to specify location of export directories and mount points. Unless you have special requirements, the defaults should just work. The variables themselves can be found at the top of tests/include.rc. All of them can be overriden with environment variables.

Usage

  • Execute /usr/share/glusterfs/run-tests.sh as root.

  • If you want to run individual tests located in /usr/share/glusterfs/tests as opposed to the full test-suite, invoke it as /usr/share/glusterfs/run-tests.sh [pattern]*, where pattern can be:

    • the trailing parts of the full path of a test, e.g. tests/basic/mount.t
    • the name of a file or directory, e.g self-heal.t or basic/
    • bug number, which will match against numbered bugs in the tests/bugs/ directory.
    • a glob pattern (see man 7 glob for mor info on globs)
  • To execute single ".t" file, use "prove -vf /path/to/.t"

  • If some test cases fail, report to GlusterFS community at gluster-devel@gluster.org.

Reminder

  • BE WARNED THAT THE TEST CASES DELETE GLUSTERD_WORKDIR * !!!