Loading tests/common +4 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,10 @@ Fail () { exit 1 } XFail () { echo "XFail: ${*}" } Expect () { ENTRIES="$(Get_entries)" EXPECTED="${1}" Loading tests/touch 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/bin/sh . ./common Mount f=target/a exmtime=12345678 touch $f touch -d @$exmtime $f mtime=$(stat --format=%Y $f) [ "$mtime" = "$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 Unmount Loading
tests/common +4 −0 Original line number Diff line number Diff line Loading @@ -19,6 +19,10 @@ Fail () { exit 1 } XFail () { echo "XFail: ${*}" } Expect () { ENTRIES="$(Get_entries)" EXPECTED="${1}" Loading
tests/touch 0 → 100755 +18 −0 Original line number Diff line number Diff line #!/bin/sh . ./common Mount f=target/a exmtime=12345678 touch $f touch -d @$exmtime $f mtime=$(stat --format=%Y $f) [ "$mtime" = "$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 Unmount