blob: 5bd9baa78a1cd454a2457cac94e7195eb0cb37a5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
|
#!/bin/sh -euf
ubidev="$1"
tests="mkvol_basic mkvol_bad mkvol_paral rsvol io_basic io_read io_update io_paral volrefcnt"
fatal()
{
echo "Error: $1" 2>&1
exit 1
}
if [ -z "$ubidev" ]; then
echo "Usage:" 2>&1
echo "$0 <UBI device>"
exit 1
fi
[ -c "$ubidev" ] || fatal "$ubidev is not character device"
for t in $tests; do
echo "Running $t $ubidev"
"./$t" "$ubidev" || fatal "$t failed"
done
echo "SUCCESS"
|