xfstests: make install support common/ and tests/ dirs
authorWang Sheng-Hui <shhuiw@gmail.com>
Fri, 12 Apr 2013 04:26:53 +0000 (04:26 +0000)
committerRich Johnston <rjohnston@sgi.com>
Fri, 12 Apr 2013 18:17:46 +0000 (13:17 -0500)
commit2519a97d1083efca79006ba5bd4ddb9f4af65a5e
tree7218af83a07b45a9a1fa53bd77e5e21027582562
parent2bfce6d36f9fb1cba6a0c677a82c08a6f305db62
xfstests: make install support common/ and tests/ dirs

xfstests have some change on the organization of the testcases
and common* files:
     * The common* scripts have been reorganized into the common/ dir.
     * The testcases have been reorganized into sub test dirs under tests/.
     * The run.* scripts have been removed.

This patch uses the simple way to make install support above changes:
     Make up one Makefile for each newly created subdirs, which can control
     'make install' separately.

v2 introduces the following changes compared with v1:
     * Ignore the file 'group' under the top dir, for it's useless in the new
       structures.
     * Remove the redundant comments in the Makefiles.
     * Use XXX_DIR instead of XXX_SUBDIR in the Makefiles under common/ and tests/.
     * Export TESTS_DIR in teh top level Makefile instead of tests/Makefile.
     * Obtain the names of dirs for testcases by iterating sub dirs under /tests,
       not by enumeration in tests/Makefile.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
Reviewed-by: Rich Johnston <rjohnston@sgi.com>
[rjohnston@sgi.com Minor modification to Makefile]
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
Makefile
common/Makefile [new file with mode: 0644]
tests/Makefile [new file with mode: 0644]
tests/btrfs/Makefile [new file with mode: 0644]
tests/ext4/Makefile [new file with mode: 0644]
tests/generic/Makefile [new file with mode: 0644]
tests/shared/Makefile [new file with mode: 0644]
tests/udf/Makefile [new file with mode: 0644]
tests/xfs/Makefile [new file with mode: 0644]