-stage Checking utimens and timestamps
-for ts in 12345 1234567 987654321; do
- # NB: It's not possible to set the ctime with touch.
- touch -a -d @$ts timestamp
- [ "$(stat -c %X timestamp)" -eq $ts ]
- touch -m -d @$ts timestamp
- [ "$(stat -c %Y timestamp)" -eq $ts ]
- touch -d @$ts timestamp
- [ "$(stat -c %X timestamp)" -eq $ts ]
- [ "$(stat -c %Y timestamp)" -eq $ts ]
-done
+# Disabled because of RHBZ#660687 on Debian.
+# stage Checking utimens and timestamps
+# for ts in 12345 1234567 987654321; do
+# # NB: It's not possible to set the ctime with touch.
+# touch -a -d @$ts timestamp
+# [ "$(stat -c %X timestamp)" -eq $ts ]
+# touch -m -d @$ts timestamp
+# [ "$(stat -c %Y timestamp)" -eq $ts ]
+# touch -d @$ts timestamp
+# [ "$(stat -c %X timestamp)" -eq $ts ]
+# [ "$(stat -c %Y timestamp)" -eq $ts ]
+# done
+
+stage Checking writes
+cp hello.txt copy.txt
+echo >> copy.txt
+echo world >> copy.txt
+echo bigger >> copy.txt
+echo biggest >> copy.txt
+[ "$(cat copy.txt)" = "hello
+world
+bigger
+biggest" ]
+
+stage 'Checking extended attribute (xattr) read operation'
+if getfattr --help > /dev/null 2>&1 ; then
+ [ "$(getfattr -d user_xattr | grep -v ^#)" = 'user.test="hello123"' ]
+fi
+
+stage Checking POSIX ACL read operation
+if getfacl --help > /dev/null 2>&1 ; then
+ [ "$(getfacl -n acl | grep -v ^#)" = "user::rw-
+user:500:r--
+group::r--
+mask::r--
+other::r--" ]
+fi