[ostree] tests: Add some more tests of compose content



commit 3b61a21c0f6d1514c70640debe8beb66b430414d
Author: Colin Walters <walters verbum org>
Date:   Thu Nov 3 22:35:42 2011 -0400

    tests: Add some more tests of compose content

 tests/t0005-compose.sh |   10 +++++++++-
 1 files changed, 9 insertions(+), 1 deletions(-)
---
diff --git a/tests/t0005-compose.sh b/tests/t0005-compose.sh
index 4621d64..88a1708 100755
--- a/tests/t0005-compose.sh
+++ b/tests/t0005-compose.sh
@@ -20,7 +20,7 @@
 
 set -e
 
-echo "1..2"
+echo "1..3"
 
 . libtest.sh
 
@@ -61,3 +61,11 @@ echo 'ok artifacts committed'
 cd "${test_tmpdir}"
 ostree compose $ot_repo some-compose artifact-libfoo-runtime artifact-libfoo-devel artifact-barapp
 echo 'ok compose command'
+
+cd some-compose
+assert_file_has_content ./usr/bin/bar 'another ELF file'
+assert_file_has_content ./usr/share/doc/foo.txt 'some documentation'
+find | md5sum > ../some-compose-md5
+assert_file_has_content ../some-compose-md5 9038703e43d2ff2745fb7dd844de65c8 
+
+echo 'ok compose content'



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]