Whamcloud - gitweb
git://git.whamcloud.com
/
tools
/
e2fsprogs.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
debian: don't gitignore debian/patches
[tools/e2fsprogs.git]
/
tests
/
f_dup_resize
/
script
diff --git
a/tests/f_dup_resize/script
b/tests/f_dup_resize/script
index
ed374fe
..
52a1aed
100644
(file)
--- a/
tests/f_dup_resize/script
+++ b/
tests/f_dup_resize/script
@@
-1,5
+1,10
@@
+if ! test -x $DEBUGFS_EXE; then
+ echo "$test_name: $test_description: skipped (no debugfs)"
+ return 0
+fi
+
SKIP_GUNZIP="true"
SKIP_GUNZIP="true"
-TEST_DATA="
test.data
"
+TEST_DATA="
$test_name.tmp
"
dd if=$TEST_BITS of=$TEST_DATA bs=63k count=1 conv=sync > /dev/null 2>&1
dd if=$TEST_BITS of=$TEST_DATA bs=63k count=1 conv=sync > /dev/null 2>&1
@@
-9,7
+14,8
@@
$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
freeb 4 4
freeb 8195 4
write $TEST_DATA debugfs
freeb 4 4
freeb 8195 4
write $TEST_DATA debugfs
-set_inode_field debugfs mtime 200504110000
+set_current_time 20050411000000
+set_inode_field debugfs mtime 20050411000000
q
EOF
q
EOF