]> git.ipfire.org Git - thirdparty/e2fsprogs.git/commitdiff
tests: use mke2fs and debugfs from the build tree
authorTheodore Ts'o <tytso@mit.edu>
Sat, 31 Mar 2018 20:38:48 +0000 (16:38 -0400)
committerTheodore Ts'o <tytso@mit.edu>
Sat, 31 Mar 2018 20:38:48 +0000 (16:38 -0400)
The tests f_bigalloc_badinode and f_bigalloc_orphan_list were not
using the version of mke2fs and debugfs from the build tree, and if
mke2fs and debugfs are not in the user's PATH, these tests would fail.
Fix this.

Reported-by: Somchai Smythe <buraphalinuxserver@gmail.com>
Signed-off-by: Theodore Ts'o <tytso@mit.edu>
tests/f_bigalloc_badinode/script
tests/f_bigalloc_orphan_list/script

index 9113e9c87fff162e75d2d6d760460be0758be1e8..e58910f29f5251ca153ada61a41fb2d9023015ee 100644 (file)
@@ -6,8 +6,8 @@ TEST_DATA="$test_name.tmp"
 dd if=$TEST_BITS of=$TEST_DATA bs=4k count=2 seek=1> /dev/null 2>&1
 
 touch $TMPFILE
-mke2fs -Fq -t ext4 -O bigalloc -C 16384 $TMPFILE 1M > /dev/null 2>&1
-debugfs -w $TMPFILE << EOF > /dev/null 2>&1
+$MKE2FS -Fq -t ext4 -O bigalloc -C 16384 $TMPFILE 1M > /dev/null 2>&1
+$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
 write $TEST_DATA testfile
 set_inode_field testfile i_mode 0120000
 quit
index 1508bf1263c7869a3253bd22986e3fefc1c2d987..af9d753022ada6bdd7615fbbe5627e3ed52e69a5 100644 (file)
@@ -6,8 +6,8 @@ TEST_DATA="$test_name.tmp"
 dd if=$TEST_BITS of=$TEST_DATA bs=28k count=1 > /dev/null 2>&1
 
 touch $TMPFILE
-mke2fs -Fq -t ext4 -O bigalloc $TMPFILE 1M > /dev/null 2>&1
-debugfs -w $TMPFILE << EOF > /dev/null 2>&1
+$MKE2FS -Fq -t ext4 -O bigalloc $TMPFILE 1M > /dev/null 2>&1
+$DEBUGFS -w $TMPFILE << EOF > /dev/null 2>&1
 write $TEST_DATA testfile
 set_inode_field testfile links_count 0
 set_inode_field testfile bmap[0] 0