From d84383495c1835edd835ed5a05f6decc60628df3 Mon Sep 17 00:00:00 2001 From: Vitaliy Filippov Date: Wed, 15 Jan 2014 14:49:07 +0000 Subject: [PATCH] Some more tests, one fails! --- run-tests.pl | 10 ++++++++++ test-mkimages.sh | 6 ++++++ 2 files changed, 16 insertions(+) diff --git a/run-tests.pl b/run-tests.pl index 4781850..d113194 100644 --- a/run-tests.pl +++ b/run-tests.pl @@ -5,6 +5,8 @@ use strict; my $tests = [ [ 'Basic ext2 test - grow', 'test-ext2', 8192 ], [ 'Basic ext2 test - shrink', 'test-ext2', 1920 ], + [ 'Basic ext3 test - grow', 'test-ext3', 16384 ], + [ 'Basic ext3 test - shrink', 'test-ext3', 1920 ], [ 'Basic ext4 test - grow', 'test-ext4', 8192 ], [ 'Basic ext4 test - shrink', 'test-ext4', 1920 ], [ 'Big flex_bg - grow', 'test-biggroup', 33280 ], @@ -14,8 +16,16 @@ my $tests = [ [ 'Bigalloc - grow', 'test-ext4-bigalloc', 8192 ], [ 'Bigalloc - shrink, not on a cluster boundary', 'test-ext4-bigalloc', 1984 ], [ 'Patch I/O, big flex_bg - shrink', 'test-biggroup', 8192, 1 ], + [ 'Patch I/O, big flex_bg - extend', 'test-biggroup', 40000, 1 ], + # FAILS! + [ 'Patch I/O, 4k block, shrink, non-optimal inode count', 'test-ext4-4k', 1928, 1 ], ]; +if (@ARGV) +{ + @$tests = @$tests[@ARGV]; +} + my $ok = 0; for (@$tests) { diff --git a/test-mkimages.sh b/test-mkimages.sh index fdeedd0..910f214 100644 --- a/test-mkimages.sh +++ b/test-mkimages.sh @@ -6,6 +6,12 @@ FS=ext2 FILE=test-ext2.img sh mkimage.sh # ??? e2fsck rehashes dir indexes on a fresh ext2 O_o e2fsck -f test-ext2.img +# Basic ext3 test +FS=ext3 FILE=test-ext3.img sh mkimage.sh + +# Normal 4k block size +FS=ext4 FILE=test-ext4-4k.img OPTS='-b 4096' sh mkimage.sh + # Basic ext4 test FS=ext4 FILE=test-ext4.img sh mkimage.sh