aboutsummaryrefslogtreecommitdiff
path: root/tests
diff options
context:
space:
mode:
authorElliott Hughes <enh@google.com>2019-02-20 15:57:30 -0800
committerRob Landley <rob@landley.net>2019-02-21 12:12:01 -0600
commit4cc20c7554685df53228c4cf6d551b07837f8bf1 (patch)
tree947c469dbf22a74c594c8f480e5e984a19943f4f /tests
parent01503a37c9ae3bc608e7ba9fb476ab7aca3fdd46 (diff)
downloadtoybox-4cc20c7554685df53228c4cf6d551b07837f8bf1.tar.gz
getfattr: add --only-values.
Needed to improve cp(1) testing.
Diffstat (limited to 'tests')
-rw-r--r--tests/getfattr.test9
1 files changed, 7 insertions, 2 deletions
diff --git a/tests/getfattr.test b/tests/getfattr.test
index cb0f9475..ae33d766 100644
--- a/tests/getfattr.test
+++ b/tests/getfattr.test
@@ -8,14 +8,19 @@ mkdir attrs
touch attrs/file
setfattr -n user.empty attrs/file
setfattr -n user.data -v hello attrs/file
+setfattr -n user.more -v world attrs/file
testing "" "getfattr attrs/file" \
- "# file: attrs/file\nuser.data\nuser.empty\n\n" "" ""
+ "# file: attrs/file\nuser.data\nuser.empty\nuser.more\n\n" "" ""
testing "-d" "getfattr -d attrs/file" \
- "# file: attrs/file\nuser.data=\"hello\"\nuser.empty\n\n" "" ""
+ "# file: attrs/file\nuser.data=\"hello\"\nuser.empty\nuser.more=\"world\"\n\n" "" ""
testing "-n" "getfattr -n user.empty attrs/file" \
"# file: attrs/file\nuser.empty\n\n" "" ""
testing "-d -n" "getfattr -d -n user.data attrs/file" \
"# file: attrs/file\nuser.data=\"hello\"\n\n" "" ""
+testing "--only-values" "getfattr --only-values attrs/file" \
+ "helloworld" "" ""
+testing "--only-values -n" "getfattr --only-values -n user.data attrs/file" \
+ "hello" "" ""
rm -rf attrs