summaryrefslogtreecommitdiff
path: root/tests/xattrs.script
blob: 82cb28a36dbe683d5a75a1beece31dec34dbf37b (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
#!/bin/sh

set -e

mkdir -m 0775 "$DATADIR/xattrs"
touch "$DATADIR/xattrs/file"
if setfattr -n user.foo -v bar "$DATADIR/xattrs/file" 2> /dev/null
then
    ./summain --exclude=mtime --exclude=uid --exclude=username \
        --exclude=gid --exclude=group --exclude=ino --exclude=dev \
        --exclude=nlink --exclude=size --exclude=sha1 \
        --relative "$DATADIR/xattrs"
else
    # Fake results when xattrs not available.
    cat "$SRCDIR/tests/xattrs.stdout"
fi