blob: 3f66b00c6261f26630b310cf65a61eacd814515e (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
|
#!/bin/sh
set -e
umask 0002
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
|