summaryrefslogtreecommitdiffstats
path: root/tests/run.sh
diff options
context:
space:
mode:
authorKarel Zak2009-01-19 18:08:06 +0100
committerKarel Zak2009-02-11 23:27:55 +0100
commitd42bbae57d1184a7671782151c5413b874b0c23c (patch)
tree86e74d2eedead7071a706af0ff99fca0da1de8ba /tests/run.sh
parenttests: create expected/$(component)/$(testname) (diff)
downloadkernel-qcow2-util-linux-d42bbae57d1184a7671782151c5413b874b0c23c.tar.gz
kernel-qcow2-util-linux-d42bbae57d1184a7671782151c5413b874b0c23c.tar.xz
kernel-qcow2-util-linux-d42bbae57d1184a7671782151c5413b874b0c23c.zip
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-xtests/run.sh8
1 files changed, 3 insertions, 5 deletions
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