summaryrefslogtreecommitdiff
path: root/tests/test-basic.sh
diff options
context:
space:
mode:
authorRoddy Shuler <roddy@endlessm.com>2013-12-12 14:56:19 -0800
committerColin Walters <walters@verbum.org>2013-12-15 11:32:34 -0500
commitfe5ed36461a52b38cb366162bfd222ad3b326bf2 (patch)
treeb1267a46703afceb20430a7f607fa602939e83ed /tests/test-basic.sh
parent38a286f1571cbc8c4a91d05cf3608db72ab2ca1f (diff)
downloadostree-fe5ed36461a52b38cb366162bfd222ad3b326bf2.tar.gz
core: Set mtime of content objects to 0
This is necessary to satisfy tools such as guile and python, which compare mtimes to determine whether or not source files need to be compiled. https://bugzilla.gnome.org/show_bug.cgi?id=720363
Diffstat (limited to 'tests/test-basic.sh')
-rwxr-xr-xtests/test-basic.sh7
1 files changed, 7 insertions, 0 deletions
diff --git a/tests/test-basic.sh b/tests/test-basic.sh
index dd6103bd..2ac197f3 100755
--- a/tests/test-basic.sh
+++ b/tests/test-basic.sh
@@ -310,3 +310,10 @@ ${CMD_PREFIX} ostree --repo=repo remote show-url aremote > aremote-url.txt
assert_file_has_content aremote-url.txt 'http.*remote\.example\.com/repo'
echo "ok remote show-url"
+cd ${test_tmpdir}
+rm -rf test2-checkout
+$OSTREE checkout test2 test2-checkout
+stat '--format=%Y' test2-checkout/baz/cow > cow-mtime
+assert_file_has_content cow-mtime 0
+echo "ok content mtime"
+