Commit d606f262 authored by Bernhard M. Wiedemann's avatar Bernhard M. Wiedemann
Browse files

Add two tests

one passing and
one "FIXME" XFail that needs a code fix
parent ee367870
Loading
Loading
Loading
Loading
+4 −0
Original line number Diff line number Diff line
@@ -19,6 +19,10 @@ Fail () {
	exit 1
}

XFail () {
	echo "XFail: ${*}"
}

Expect () {
	ENTRIES="$(Get_entries)"
	EXPECTED="${1}"

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