~daniel-mehrmann/e2fsprogs/master

« back to all changes in this revision

Viewing changes to tests/i_e2image/script

  • Committer: Package Import Robot
  • Author(s): Dmitrijs Ledkovs
  • Date: 2012-06-14 13:01:21 UTC
  • mfrom: (8.4.18 sid)
  • Revision ID: package-import@ubuntu.com-20120614130121-t2gct0d09jepx0y6
Tags: 1.42.4-3ubuntu1
* Merge from Debian unstable (LP: #978012), remainging changes:
  - debian/control.in: 
      Build-depend on gettext:any instead of on gettext for (cross-building)
      Drop build dependency on dc, which hasn't been needed for some time.
      Update maintainer field.
  - debian/rules:
      Block pkg-create-dbgsym from operating on this package.
      Build without dietlibc-dev, which is in universe 
  - debian/control:
      Regenerate with ./debian/rules debian/control

Show diffs side-by-side

added added

removed removed

Lines of Context:
1
 
printf "Create/convert raw and qcow2 disk images: "
 
1
test_description="create/convert raw/qcow2 images"
2
2
if test -x $E2IMAGE_EXE; then
3
3
 
4
4
ORIG_IMAGES="image1024.orig image2048.orig image4096.orig"
8
8
QCOW2_TO_RAW=_image.qcow2.raw
9
9
OUT=$test_name.log
10
10
MD5=$SRCDIR/$test_name/$test_name.md5
11
 
MD5_TMP=$test_name.md5tmp
 
11
MD5_TMP=$test_name.md5.tmp
12
12
 
13
13
rm -f $test_name/_image.* $MD5_TMP $OUT >/dev/null 2>&1
14
14
 
43
43
diff $MD5 $MD5_TMP >> $OUT 2>&1
44
44
 
45
45
if [ $? -eq 0 ]; then
46
 
        echo "ok"
 
46
        echo "$test_name: $test_description: ok"
47
47
        touch $test_name.ok
48
 
        rm -f $test_name.failed
49
48
else
50
 
        rm -f $test_name.ok
51
49
        ln -f $test_name.log $test_name.failed
52
 
        echo "failed"
 
50
        echo "$test_name: $test_description: failed"
53
51
fi
54
52
 
55
53
rm -f _image.* $MD5_TMP >/dev/null 2>&1
56
54
 
57
55
else #if test -x $E2IMAGE_EXE; then
58
 
        rm -f $test_name.ok $test_name.failed
59
 
        echo "skipped"
 
56
        echo "$test_name: $test_description: skipped"
60
57
fi