diff options
author | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-02-19 17:17:44 +0200 |
---|---|---|
committer | Artem Bityutskiy <Artem.Bityutskiy@nokia.com> | 2008-02-19 17:17:44 +0200 |
commit | 238050eeebb0389ecdc5fe3c016194b287a30100 (patch) | |
tree | 9d6e12fb0657bc0c86ba13c2516d32e80acff02b /ubi-utils/tests/runtests.sh | |
parent | 86dd9696d3a1acb036d65909d93d73455b8aed3a (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-x | ubi-utils/tests/runtests.sh | 41 |
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 |