xref: /aosp_15_r20/external/e2fsprogs/tests/f_dup_de/script (revision 6a54128f25917bfc36a8a6e9d722c04a0b4641b6)
1*6a54128fSAndroid Build Coastguard Workerif ! test -x $DEBUGFS_EXE; then
2*6a54128fSAndroid Build Coastguard Worker	echo "$test_name: $test_description: skipped (no debugfs)"
3*6a54128fSAndroid Build Coastguard Worker	return 0
4*6a54128fSAndroid Build Coastguard Workerfi
5*6a54128fSAndroid Build Coastguard Worker
6*6a54128fSAndroid Build Coastguard Workerif test "$HTREE"x = x ; then
7*6a54128fSAndroid Build Coastguard Worker	gunzip < $test_dir/image.gz > $TMPFILE
8*6a54128fSAndroid Build Coastguard Worker	$DEBUGFS -w -R "feature ^dir_index" $TMPFILE >/dev/null 2>&1
9*6a54128fSAndroid Build Coastguard Worker	gzip $TMPFILE
10*6a54128fSAndroid Build Coastguard Worker	IMAGE="$TMPFILE".gz
11*6a54128fSAndroid Build Coastguard Worker	EXP1=$test_dir/expect-nohtree.1
12*6a54128fSAndroid Build Coastguard Worker	EXP2=$test_dir/expect-nohtree.2
13*6a54128fSAndroid Build Coastguard Workerfi
14*6a54128fSAndroid Build Coastguard Worker. $cmd_dir/run_e2fsck
15*6a54128fSAndroid Build Coastguard Workerrm -f "$TMPFILE".gz
16