From 76f4f70ac1cef4df8b68af7ea0c6cd87c2852c0f Mon Sep 17 00:00:00 2001 From: Oskar Date: Thu, 11 Jul 2024 16:25:29 +0200 Subject: much improved function, still got some testing and refining --- test/gentestfiles.sh | 17 ++++++++++++++++- 1 file changed, 16 insertions(+), 1 deletion(-) (limited to 'test') diff --git a/test/gentestfiles.sh b/test/gentestfiles.sh index da113d8..d469964 100755 --- a/test/gentestfiles.sh +++ b/test/gentestfiles.sh @@ -4,4 +4,19 @@ touch ts_file1.txt touch ts_file2.txt touch ts_file3.txt touch thisfile.txt -dd if=/dev/zero of=./1gb.img bs=100M count=10 + +dd if=/dev/zero of=./1gib.img bs=1GiB count=1 # 1024 exactly, should show 1GiB on tsr -l +dd if=/dev/zero of=./1000mb.img bs=1000MB count=1 # 1000Mib should show 1000MiB on tsr -l +dd if=/dev/zero of=./1.1gib.img bs=1100MiB count=1 # 1100MiB should show 1.1 Gib on tsr -l + +dd if=/dev/zero of=./1mb.img bs=1MB count=1 # MB =/= MiB +dd if=/dev/zero of=./1mib.img bs=1MiB count=1 # 1 Mib +dd if=/dev/zero of=./500kib.img bs=500KiB count=1 # 500 Kib +dd if=/dev/zero of=./1023kib.img bs=1023KiB count=1 # 1023 Kib +dd if=/dev/zero of=./1024kib.img bs=1024KiB count=1 # 1 Mib + +dd if=/dev/zero of=./1000b.img bs=1000B count=1 +dd if=/dev/zero of=./1KiB.img bs=1KiB count=1 +dd if=/dev/zero of=./1023b.img bs=1023B count=1 +dd if=/dev/zero of=./1024b.img bs=1024B count=1 +dd if=/dev/zero of=./1KB.img bs=1KB count=1 # KB =/= KiB -- cgit v1.2.3