From d42bbae57d1184a7671782151c5413b874b0c23c Mon Sep 17 00:00:00 2001 From: Karel Zak Date: Mon, 19 Jan 2009 18:08:06 +0100 Subject: tests: add support for subdirs to basic test functions Signed-off-by: Karel Zak --- tests/run.sh | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) (limited to 'tests/run.sh') diff --git a/tests/run.sh b/tests/run.sh index 7b662390e..cef137160 100755 --- a/tests/run.sh +++ b/tests/run.sh @@ -15,7 +15,7 @@ # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # -. ./commands.sh +. functions.sh echo echo "------------------ Utils-linux-ng regression tests ------------------" @@ -24,12 +24,10 @@ echo " For development purpose only. " echo " Don't execute on production system! " echo -rm -f *~ - res=0 count=0 -for ts in $(find -maxdepth 1 -regex "\./ts[^\.~]*" | sort); do - $TS_TOPDIR/$ts "$1" +for ts in $(find ts/ -type f -perm /a+x -regex "[^\.~]*" | sort); do + ./$ts "$1" res=$(( $res + $? )) count=$(( $count + 1 )) done -- cgit v1.2.3-55-g7522