diff options
author | Karel Zak <kzak@redhat.com> | 2009-01-19 18:08:06 +0100 |
---|---|---|
committer | Karel Zak <kzak@redhat.com> | 2009-02-11 23:27:55 +0100 |
commit | d42bbae57d1184a7671782151c5413b874b0c23c (patch) | |
tree | 86e74d2eedead7071a706af0ff99fca0da1de8ba /tests/run.sh | |
parent | 1cec8fc9f204823795752f33ecdd0fdbc4e3a307 (diff) | |
download | util-linux-old-d42bbae57d1184a7671782151c5413b874b0c23c.tar.gz |
tests: add support for subdirs to basic test functions
Signed-off-by: Karel Zak <kzak@redhat.com>
Diffstat (limited to 'tests/run.sh')
-rwxr-xr-x | tests/run.sh | 8 |
1 files changed, 3 insertions, 5 deletions
diff --git a/tests/run.sh b/tests/run.sh index 7b662390..cef13716 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 |