~daniel-mehrmann/e2fsprogs/master

« back to all changes in this revision

Viewing changes to tests/d_loaddump/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:
4
4
EXP=$test_dir/expect
5
5
VERIFY_FSCK_OPT=-yf
6
6
 
7
 
TEST_DATA=test.data
8
 
VERIFY_DATA=test.verify
 
7
TEST_DATA=$test_name.tmp
 
8
VERIFY_DATA=$test_name.ver.tmp
9
9
 
10
10
echo "debugfs load/dump test" > $OUT
11
11
 
47
47
# Do the verification
48
48
#
49
49
 
50
 
rm -f $test_name.ok $test_name.failed $VERIFY_DATA $TEST_DATA $TMPFILE $OUT.new
 
50
rm -f $VERIFY_DATA $TEST_DATA $TMPFILE $OUT.new
51
51
cmp -s $OUT $EXP
52
52
status=$?
53
53
 
54
54
if [ "$status" = 0 ] ; then
55
 
        echo "ok"
 
55
        echo "$test_name: $test_description: ok"
56
56
        touch $test_name.ok
57
57
else
58
 
        echo "failed"
 
58
        echo "$test_name: $test_description: failed"
59
59
        diff $DIFF_OPTS $EXP $OUT > $test_name.failed
60
60
fi
61
61
 
62
62
unset VERIFY_FSCK_OPT NATIVE_FSCK_OPT OUT EXP TEST_DATA VERIFY_DATA
63
63
 
64
64
else #if test -x $DEBUGFS_EXE; then
65
 
        rm -f $test_name.ok $test_name.failed
66
 
        echo "skipped"
 
65
        echo "$test_name: $test_description: skipped"
67
66
fi