summaryrefslogtreecommitdiff
path: root/ubi-utils/tests/runtests.sh
diff options
context:
space:
mode:
authorArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-02-19 17:17:44 +0200
committerArtem Bityutskiy <Artem.Bityutskiy@nokia.com>2008-02-19 17:17:44 +0200
commit238050eeebb0389ecdc5fe3c016194b287a30100 (patch)
tree9d6e12fb0657bc0c86ba13c2516d32e80acff02b /ubi-utils/tests/runtests.sh
parent86dd9696d3a1acb036d65909d93d73455b8aed3a (diff)
Remove redundant tests
Sorry for this mess in the history, but I hope this is the last ugly commit. I accidentally copies the tests from mtd-utils.git/tests/ubi-tests/ to here. Remove them. Signed-off-by: Artem Bityutskiy <Artem.Bityutskiy@nokia.com>
Diffstat (limited to 'ubi-utils/tests/runtests.sh')
-rwxr-xr-xubi-utils/tests/runtests.sh41
1 files changed, 0 insertions, 41 deletions
diff --git a/ubi-utils/tests/runtests.sh b/ubi-utils/tests/runtests.sh
deleted file mode 100755
index f993bc0..0000000
--- a/ubi-utils/tests/runtests.sh
+++ /dev/null
@@ -1,41 +0,0 @@
-#!/bin/sh
-
-ubidev="$1"
-ubiloadcmd="$2"
-tests="mkvol_basic mkvol_bad mkvol_paral rsvol io_basic io_read io_update io_paral"
-
-if test -z "$ubidev" || test -z "$ubiloadcmd";
-then
- echo "Usage:"
- echo "$0 <UBI device> <ubi module load command>"
- exit 1
-fi
-
-ubiname=`echo $ubidev | cut -d/ -f3`
-
-major=`cat /sys/class/ubi/$ubiname/dev | cut -d: -f1`
-
-for minor in `seq 0 4`; do
- if test ! -e ${ubidev}_${minor} ;
- then
- mknod ${ubidev}_${minor} c $major $(($minor + 1))
- fi
-done
-
-if ! test -c "$ubidev";
-then
- echo "Error: $ubidev is not character device"
- exit 1
-fi
-
-for t in `echo $tests`;
-do
- echo "Running $t $ubidev"
- "./$t" "$ubidev" || exit 1
-done
-
-./integ "$ubiloadcmd" || exit 1
-
-echo SUCCESS
-
-exit 0