[Git][reproducible-builds/disorderfs][master] tests: extend touch test with atime
Bernhard M. Wiedemann
gitlab at salsa.debian.org
Thu Oct 18 08:49:56 CEST 2018
Bernhard M. Wiedemann pushed to branch master at Reproducible Builds / disorderfs
Commits:
326d2cc5 by Bernhard M. Wiedemann at 2018-10-18T06:49:26Z
tests: extend touch test with atime
and add bug ref
- - - - -
1 changed file:
- tests/touch
Changes:
=====================================
tests/touch
=====================================
@@ -1,4 +1,5 @@
#!/bin/sh
+# Test for https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=911281
. ./common
@@ -7,12 +8,16 @@ f=target/a
exmtime=12345678
touch $f
touch -d @$exmtime $f
-mtime=$(stat --format=%Y $f)
-[ "$mtime" = "$exmtime" ] || Fail "test1: Got=$mtime Expected=$exmtime"
+mtime=$(stat --format=%X-%Y $f)
+[ "$mtime" = "$exmtime-$exmtime" ] || Fail "test1: Got=$mtime Expected=$exmtime"
touch $f
# This is what tar xf does for extracted files via futimens(2)
touch -m -d @$exmtime $f
mtime=$(stat --format=%Y $f)
[ "$mtime" = "$exmtime" ] || XFail "test2: Got=$mtime Expected=$exmtime" # FIXME
touch $f
+touch -a -d @$exmtime $f
+atime=$(stat --format=%X $f)
+[ "$atime" = "$exmtime" ] || XFail "test3: Got=$atime Expected=$exmtime" # FIXME
+touch $f
Unmount
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/commit/326d2cc5afc0a620c460db5e3b08373aed30eb64
--
View it on GitLab: https://salsa.debian.org/reproducible-builds/disorderfs/commit/326d2cc5afc0a620c460db5e3b08373aed30eb64
You're receiving this email because of your account on salsa.debian.org.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.reproducible-builds.org/pipermail/rb-commits/attachments/20181018/1269804a/attachment.html>
More information about the rb-commits
mailing list