]> git.apps.os.sepia.ceph.com Git - xfstests-dev.git/commit
xfs/106: rewrite to make it a reliable regression test
authorZorro Lang <zlang@redhat.com>
Fri, 22 Jul 2016 10:24:06 +0000 (18:24 +0800)
committerEryu Guan <eguan@redhat.com>
Sun, 31 Jul 2016 02:36:53 +0000 (10:36 +0800)
commitb18191a1d0df95f27ba9cbcf79ea889f9e6ffe7d
tree2e3283b91fade9b543e81b9b36662d190aa3ea3a
parent6721ab08bd2772da9f3aa1ae7b46b7cb5c0e8308
xfs/106: rewrite to make it a reliable regression test

xfs/106 is testing basic functions of xfs_quota command, but
there're three problems prevent people from running it as a reliable
regression test (i.e. it's not in 'auto' group):

- It tests unavailable commands in current xfs_quota, e.g. "warn"
- Lack of test coverage of important commands, e.g. "disable,
  enable, off and remove" commands
- Test output doesn't match golden image

So rewrite this case to test as many xfs_quota sub-commands and
options as possible and add it to 'auto' group, except:

- some "-v" options
- all "-a" options, because it's hard to get deterministic output
- default quota, this should be already covered by other tests
- project command options, I will write another case to test it
- report command -l option, which is a new option and will cause
  failure when testing with xfsprogs prior to 3.1 version.
- quot command -c option, which may output different histogram in
  different systems or hosts.
- warn command, which is not currently implemented.
- print, df, free, help, quit and path commands.

Signed-off-by: Zorro Lang <zlang@redhat.com>
Reviewed-by: Eryu Guan <eguan@redhat.com>
Signed-off-by: Eryu Guan <eguan@redhat.com>
tests/xfs/106
tests/xfs/106.out
tests/xfs/group