[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[PATCH] tests: df: check that -k and -m are supported
|
From: |
Collin Funk |
|
Subject: |
[PATCH] tests: df: check that -k and -m are supported |
|
Date: |
Mon, 17 Aug 2026 22:36:02 -0700 |
* 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_
-
--
2.55.0
- [PATCH] tests: df: check that -k and -m are supported,
Collin Funk <=