summaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorDavid Sterba <dsterba@suse.com>2016-06-22 15:52:17 +0200
committerDavid Sterba <dsterba@suse.com>2016-06-22 15:52:17 +0200
commitcd9b35c37ae03d8ea7cc35c4ffe501925e75e629 (patch)
treee24e6287c7184f252b8ee836934f6745914411cf /tests
parent670b73fe0a40fc0b353fce64000c059ccd46a631 (diff)
btrfs-progs: tests: fix filesytem type creation for convert tests
The extN filesystem type was lost when the separate tests were created and we've been testing only ext2. The tests pass for ext3 and ext4 though. Signed-off-by: David Sterba <dsterba@suse.com>
Diffstat (limited to 'tests')
-rwxr-xr-xtests/convert-tests/002-ext3-basic/test.sh10
-rwxr-xr-xtests/convert-tests/003-ext4-basic/test.sh10
2 files changed, 10 insertions, 10 deletions
diff --git a/tests/convert-tests/002-ext3-basic/test.sh b/tests/convert-tests/002-ext3-basic/test.sh
index 64356307..aeb111eb 100755
--- a/tests/convert-tests/002-ext3-basic/test.sh
+++ b/tests/convert-tests/002-ext3-basic/test.sh
@@ -8,9 +8,9 @@ prepare_test_dev 512M
check_prereq btrfs-convert
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
- convert_test "$feature" "ext3 4k nodesize" 4096 mke2fs -b 4096
- convert_test "$feature" "ext3 8k nodesize" 8192 mke2fs -b 4096
- convert_test "$feature" "ext3 16k nodesize" 16384 mke2fs -b 4096
- convert_test "$feature" "ext3 32k nodesize" 32768 mke2fs -b 4096
- convert_test "$feature" "ext3 64k nodesize" 65536 mke2fs -b 4096
+ convert_test "$feature" "ext3 4k nodesize" 4096 mke2fs -j -b 4096
+ convert_test "$feature" "ext3 8k nodesize" 8192 mke2fs -j -b 4096
+ convert_test "$feature" "ext3 16k nodesize" 16384 mke2fs -j -b 4096
+ convert_test "$feature" "ext3 32k nodesize" 32768 mke2fs -j -b 4096
+ convert_test "$feature" "ext3 64k nodesize" 65536 mke2fs -j -b 4096
done
diff --git a/tests/convert-tests/003-ext4-basic/test.sh b/tests/convert-tests/003-ext4-basic/test.sh
index 9a81a473..531c81bd 100755
--- a/tests/convert-tests/003-ext4-basic/test.sh
+++ b/tests/convert-tests/003-ext4-basic/test.sh
@@ -8,9 +8,9 @@ prepare_test_dev 512M
check_prereq btrfs-convert
for feature in '' 'extref' 'skinny-metadata' 'no-holes'; do
- convert_test "$feature" "ext4 4k nodesize" 4096 mke2fs -b 4096
- convert_test "$feature" "ext4 8k nodesize" 8192 mke2fs -b 4096
- convert_test "$feature" "ext4 16k nodesize" 16384 mke2fs -b 4096
- convert_test "$feature" "ext4 32k nodesize" 32768 mke2fs -b 4096
- convert_test "$feature" "ext4 64k nodesize" 65536 mke2fs -b 4096
+ convert_test "$feature" "ext4 4k nodesize" 4096 mke2fs -t ext4 -b 4096
+ convert_test "$feature" "ext4 8k nodesize" 8192 mke2fs -t ext4 -b 4096
+ convert_test "$feature" "ext4 16k nodesize" 16384 mke2fs -t ext4 -b 4096
+ convert_test "$feature" "ext4 32k nodesize" 32768 mke2fs -t ext4 -b 4096
+ convert_test "$feature" "ext4 64k nodesize" 65536 mke2fs -t ext4 -b 4096
done