[ostree] tests: A few more compose tests
- From: Colin Walters <walters src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [ostree] tests: A few more compose tests
- Date: Fri, 4 Nov 2011 22:14:52 +0000 (UTC)
commit 9877f7eea3330817b926cc08a266d0d6e876b618
Author: Colin Walters <walters verbum org>
Date: Fri Nov 4 16:13:21 2011 -0400
tests: A few more compose tests
tests/t0005-compose.sh | 23 ++++++++++++++++++++++-
1 files changed, 22 insertions(+), 1 deletions(-)
---
diff --git a/tests/t0005-compose.sh b/tests/t0005-compose.sh
index 140405d..1a178ff 100755
--- a/tests/t0005-compose.sh
+++ b/tests/t0005-compose.sh
@@ -20,7 +20,7 @@
set -e
-echo "1..6"
+echo "1..8"
. libtest.sh
@@ -83,3 +83,24 @@ $OSTREE show --print-compose some-compose > ${test_tmpdir}/some-compose-contents
assert_file_has_content ${test_tmpdir}/some-compose-contents artifact-libfoo-runtime
assert_file_has_content ${test_tmpdir}/some-compose-contents artifact-libfoo-devel
echo 'ok compose verify metadata'
+
+cd "${test_tmpdir}"
+rm -rf some-compose some-compose-metadata
+cd "${test_tmpdir}"/artifact-barapp
+echo 'updated bar ELF file' > usr/bin/bar
+$OSTREE commit -b artifact-barapp -s 'Build 43 of barapp'
+
+cd "${test_tmpdir}"
+$OSTREE compose --out-metadata=./some-compose-metadata some-compose artifact-libfoo-runtime artifact-libfoo-devel artifact-barapp
+cd some-compose
+assert_file_has_content ./usr/bin/bar 'updated bar ELF file'
+
+echo 'ok updated artifact barapp'
+$OSTREE commit --metadata-variant=${test_tmpdir}/some-compose-metadata -b some-compose -s 'Updated some-compose'
+cd ${test_tmpdir}
+rm -rf some-compose
+
+$OSTREE checkout some-compose some-compose-checkout
+cd some-compose-checkout
+assert_file_has_content ./usr/bin/bar 'updated bar ELF file'
+echo 'ok updated compose commit'
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]