Some more tests, one fails!

master
Vitaliy Filippov 2014-01-15 14:49:07 +00:00
parent ae5c125cd4
commit d84383495c
2 changed files with 16 additions and 0 deletions

View File

@ -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)
{

View File

@ -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