From eb92727f656fac2b142284102ec50851029d3201 Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Fri, 21 Oct 2016 10:30:20 +0200 Subject: [PATCH] tests: Add some more verification to the bundle tests --- tests/test-bundle.sh | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/tests/test-bundle.sh b/tests/test-bundle.sh index 2f44eb76..3ca6364e 100755 --- a/tests/test-bundle.sh +++ b/tests/test-bundle.sh @@ -38,6 +38,11 @@ echo "ok create bundles" ${FLATPAK} install ${U} --bundle hello.flatpak +assert_has_file $FL_DIR/repo/refs/remotes/org.test.Hello-origin/app/org.test.Hello/$ARCH/master +APP_COMMIT=`cat $FL_DIR/repo/refs/remotes/org.test.Hello-origin/app/org.test.Hello/$ARCH/master` +assert_has_file $FL_DIR/repo/objects/$(echo $APP_COMMIT | cut -b 1-2)/$(echo $APP_COMMIT | cut -b 3-).commit +assert_has_file $FL_DIR/repo/objects/$(echo $APP_COMMIT | cut -b 1-2)/$(echo $APP_COMMIT | cut -b 3-).commitmeta + assert_has_dir $FL_DIR/app/org.test.Hello assert_has_symlink $FL_DIR/app/org.test.Hello/current assert_symlink_has_content $FL_DIR/app/org.test.Hello/current ^$ARCH/master$ @@ -77,6 +82,11 @@ echo "ok install app bundle" ${FLATPAK} install ${U} --bundle platform.flatpak +assert_has_file $FL_DIR/repo/refs/remotes/org.test.Platform-origin/runtime/org.test.Platform/$ARCH/master +RUNTIME_COMMIT=`cat $FL_DIR/repo/refs/remotes/org.test.Platform-origin/runtime/org.test.Platform/$ARCH/master` +assert_has_file $FL_DIR/repo/objects/$(echo $RUNTIME_COMMIT | cut -b 1-2)/$(echo $RUNTIME_COMMIT | cut -b 3-).commit +assert_has_file $FL_DIR/repo/objects/$(echo $RUNTIME_COMMIT | cut -b 1-2)/$(echo $RUNTIME_COMMIT | cut -b 3-).commitmeta + assert_has_dir $FL_DIR/runtime/org.test.Platform assert_has_dir $FL_DIR/runtime/org.test.Platform/$ARCH/master assert_has_symlink $FL_DIR/runtime/org.test.Platform/$ARCH/master/active