diff options
author | Colin Finck <colin@reactos.org> | 2021-08-09 23:57:48 +0300 |
---|---|---|
committer | Colin Finck <colin@reactos.org> | 2021-08-09 23:57:48 +0300 |
commit | 088a3fe7b68c84e5f4db1d1a11220d42f07e69e2 (patch) | |
tree | 56eb89a1da03eabf5fa200ad02094b20a8fa8f8d /testdata | |
parent | 62da6dc109d669409c5d33d8f101c4a235940166 (diff) |
Add tests for the index functions.
Diffstat (limited to 'testdata')
-rw-r--r-- | testdata/create-testfs1.sh | 16 | ||||
-rw-r--r-- | testdata/testfs1 | bin | 1049600 -> 2097152 bytes |
2 files changed, 15 insertions, 1 deletions
diff --git a/testdata/create-testfs1.sh b/testdata/create-testfs1.sh index 65dac63..ba8badf 100644 --- a/testdata/create-testfs1.sh +++ b/testdata/create-testfs1.sh @@ -6,20 +6,34 @@ if [ "`whoami`" != "root" ]; then exit 1 fi -dd if=/dev/zero of=testfs1 bs=1k count=1025 +dd if=/dev/zero of=testfs1 bs=1k count=2048 mkntfs -c 512 -L mylabel -F testfs1 mkdir mnt mount -t ntfs-3g -o loop testfs1 mnt cd mnt +# Create a file with a specific modification time that we can check. touch -m -t 202101011337 empty-file + +# Create some zeroed files, as allocated and sparse files. dd if=/dev/zero of=file-with-5-zeros bs=1 count=5 dd if=/dev/zero of=big-sparse-file skip=5M bs=1 count=1 +# Create subdirectories of subdirectories. mkdir -p subdir/subsubdir + +# Create a file with some basic real content. echo abcdef > subdir/subsubdir/file-with-6-letters +# Create so many directories that the filesystem needs an INDEX_ROOT and INDEX_ALLOCATION. +mkdir many_subdirs +cd many_subdirs +for i in {1..512}; do + mkdir $i +done +cd .. + cd .. umount mnt rmdir mnt diff --git a/testdata/testfs1 b/testdata/testfs1 Binary files differindex 4afb44a..9d16e0e 100644 --- a/testdata/testfs1 +++ b/testdata/testfs1 |