summaryrefslogtreecommitdiff
path: root/test
diff options
context:
space:
mode:
authorOskar <[email protected]>2024-07-11 16:25:29 +0200
committerOskar <[email protected]>2024-07-11 16:25:29 +0200
commit76f4f70ac1cef4df8b68af7ea0c6cd87c2852c0f (patch)
treeabfb8fd43f066c7f6ea484827a25df1b2805eabd /test
parent808e0bddfd4ff67390ccd510b0e3c22461e4b44d (diff)
much improved function, still got some testing and refining
Diffstat (limited to 'test')
-rwxr-xr-xtest/gentestfiles.sh17
1 files changed, 16 insertions, 1 deletions
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