aboutsummaryrefslogtreecommitdiff
path: root/ubi-utils/tests/runtests.sh
diff options
context:
space:
mode:
Diffstat (limited to 'ubi-utils/tests/runtests.sh')
-rwxr-xr-xubi-utils/tests/runtests.sh39
1 files changed, 0 insertions, 39 deletions
diff --git a/ubi-utils/tests/runtests.sh b/ubi-utils/tests/runtests.sh
deleted file mode 100755
index 7072e03..0000000
--- a/ubi-utils/tests/runtests.sh
+++ /dev/null
@@ -1,39 +0,0 @@
-#!/bin/sh
-
-ubidev="$1"
-tests="mkvol_basic mkvol_bad mkvol_paral rsvol io_basic io_read io_update
-io_paral rmvol"
-
-if test -z "$ubidev";
-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
-
-echo SUCCESS
-
-exit 0