coreutils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: [PATCH] tests: df: check that -k and -m are supported


From: Pádraig Brady
Subject: Re: [PATCH] tests: df: check that -k and -m are supported
Date: Tue, 18 Aug 2026 12:44:43 +0100
User-agent: Mozilla Thunderbird Beta

On 18/08/2026 06:36, Collin Funk wrote:
* tests/df/df-output.sh: Check that the block size is correct when using
-k and -m.
---
  tests/df/df-output.sh | 18 ++++++++++++++++++
  1 file changed, 18 insertions(+)

diff --git a/tests/df/df-output.sh b/tests/df/df-output.sh
index de062ee78..68336d3e5 100755
--- a/tests/df/df-output.sh
+++ b/tests/df/df-output.sh
@@ -98,6 +98,24 @@ sed -e '1 {
          }' out > out2
  compare exp out2 || fail=1
+df -k --output=size '.' >out || fail=1
+sed -e '1 {
+          s/ *//
+          q
+        }' out > out2
+compare exp out2 || fail=1
+
+cat <<\EOF > exp || framework_failure_
+1M-blocks
+EOF
+
+df -m --output=size '.' >out || fail=1
+sed -e '1 {
+          s/ *//
+          q
+        }' out > out2
+compare exp out2 || fail=1
+
  # Ensure that the grand total line now contains a "-" in the TARGET field ...
  cat <<\EOF > exp || framework_failure_
  -

+1

cheers,
Padraig



reply via email to

[Prev in Thread] Current Thread [Next in Thread]