[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: Make ls/block-size more readable
From: |
Jean Delvare |
Subject: |
[PATCH] tests: Make ls/block-size more readable |
Date: |
Fri, 1 Dec 2017 11:01:30 +0100 |
* tests/ls/block-size.sh: The output of the test was hard to read. Add
comments saying what we are testing to make it easier to understand.
---
tests/ls/block-size.sh | 13 +++++++++++++
1 file changed, 13 insertions(+)
--- coreutils.orig/tests/ls/block-size.sh 2017-11-30 17:16:09.639499884
+0100
+++ coreutils/tests/ls/block-size.sh 2017-11-30 19:58:30.497880788 +0100
@@ -39,6 +39,7 @@ POSIXLY_CORRECT=1 ls -k -og * | sed "$si
for var in BLOCKSIZE BLOCK_SIZE LS_BLOCK_SIZE; do
for blocksize in 1 512 1K 1KiB; do
(eval $var=$blocksize && export $var &&
+ echo "x x # $var=$blocksize" &&
ls -og * &&
ls -og -k * &&
ls -og -k --block-size=$blocksize *
@@ -58,6 +59,7 @@ cat >exp <<'EOF'
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
+# BLOCKSIZE=1
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
@@ -67,6 +69,7 @@ cat >exp <<'EOF'
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
+# BLOCKSIZE=512
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
@@ -76,6 +79,7 @@ cat >exp <<'EOF'
2 Jan 1 2001 file1024
512 Jan 1 2001 file262144
8 Jan 1 2001 file4096
+# BLOCKSIZE=1K
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
@@ -85,6 +89,7 @@ cat >exp <<'EOF'
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
+# BLOCKSIZE=1KiB
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
@@ -94,6 +99,7 @@ cat >exp <<'EOF'
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
+# BLOCK_SIZE=1
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
@@ -103,6 +109,7 @@ cat >exp <<'EOF'
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
+# BLOCK_SIZE=512
2 Jan 1 2001 file1024
512 Jan 1 2001 file262144
8 Jan 1 2001 file4096
@@ -112,6 +119,7 @@ cat >exp <<'EOF'
2 Jan 1 2001 file1024
512 Jan 1 2001 file262144
8 Jan 1 2001 file4096
+# BLOCK_SIZE=1K
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
@@ -121,6 +129,7 @@ cat >exp <<'EOF'
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
+# BLOCK_SIZE=1KiB
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
@@ -130,6 +139,7 @@ cat >exp <<'EOF'
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
+# LS_BLOCK_SIZE=1
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
@@ -139,6 +149,7 @@ cat >exp <<'EOF'
1024 Jan 1 2001 file1024
262144 Jan 1 2001 file262144
4096 Jan 1 2001 file4096
+# LS_BLOCK_SIZE=512
2 Jan 1 2001 file1024
512 Jan 1 2001 file262144
8 Jan 1 2001 file4096
@@ -148,6 +159,7 @@ cat >exp <<'EOF'
2 Jan 1 2001 file1024
512 Jan 1 2001 file262144
8 Jan 1 2001 file4096
+# LS_BLOCK_SIZE=1K
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
@@ -157,6 +169,7 @@ cat >exp <<'EOF'
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
+# LS_BLOCK_SIZE=1KiB
1 Jan 1 2001 file1024
256 Jan 1 2001 file262144
4 Jan 1 2001 file4096
--
Jean Delvare
SUSE L3 Support
- [PATCH] tests: Make ls/block-size more readable,
Jean Delvare <=