xfstests: update method to set TESTS_SUBDIRS in tests/Makefile.
authorWang Sheng-Hui <shhuiw@gmail.com>
Mon, 13 May 2013 20:41:21 +0000 (15:41 -0500)
committerRich Johnston <rjohnston@sgi.com>
Mon, 13 May 2013 20:41:21 +0000 (15:41 -0500)
  make install support common/ and tests/ dirs (V4)
  * reposted for current top of tree changes. [rjohnston@sgi.com]
  * use the neater way by Dave to get the TESTS_SUBDIRS in tests/Makefile.

Signed-off-by: Wang Sheng-Hui <shhuiw@gmail.com>
[rjohnston@sgi.com Reposted for current top of tree changes]
Reviewed-by: Dave Chinner <dchinner@redhat.com>
Signed-off-by: Rich Johnston <rjohnston@sgi.com>
tests/Makefile

index 254dd48..2611b3b 100644 (file)
@@ -5,7 +5,7 @@
 TOPDIR = ..
 include $(TOPDIR)/include/builddefs
 
-TESTS_SUBDIRS = $(shell find . -maxdepth 1 -type d | sed -n -e 's/\.\///gp')
+TESTS_SUBDIRS = $(sort $(dir $(wildcard $(PWD)/$(TESTS_DIR)/[a-z]*/)))
 
 include $(BUILDRULES)