"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test-extensions.sh" between
flatpak-1.8.2.tar.xz and flatpak-1.8.3.tar.xz

About: Flatpak is a Linux application sandboxing and distribution framework.

test-extensions.sh  (flatpak-1.8.2.tar.xz):test-extensions.sh  (flatpak-1.8.3.tar.xz)
skipping to change at line 43 skipping to change at line 43
cat > ${DIR}/metadata <<EOF cat > ${DIR}/metadata <<EOF
[Runtime] [Runtime]
name=${ID} name=${ID}
EOF EOF
mkdir -p ${DIR}/usr mkdir -p ${DIR}/usr
mkdir -p ${DIR}/files mkdir -p ${DIR}/files
touch ${DIR}/usr/exists touch ${DIR}/usr/exists
touch ${DIR}/usr/extension-$ID:$VERSION touch ${DIR}/usr/extension-$ID:$VERSION
${FLATPAK} build-export --runtime ${GPGARGS-} repos/test ${DIR} ${VERSION} ${FLATPAK} build-export --no-update-summary --runtime ${GPGARGS-} repos/test
${DIR} ${VERSION}
update_repo
rm -rf ${DIR} rm -rf ${DIR}
${FLATPAK} --user install -y test-repo $ID $VERSION ${FLATPAK} --user install -y test-repo $ID $VERSION
} }
add_extensions () { add_extensions () {
local DIR=$1 local DIR=$1
mkdir -p $DIR/files/foo/ext1 mkdir -p $DIR/files/foo/ext1
mkdir -p $DIR/files/foo/ext2 mkdir -p $DIR/files/foo/ext2
skipping to change at line 104 skipping to change at line 105
} }
mkdir -p repos mkdir -p repos
ostree init --repo=repos/test --mode=archive-z2 ostree init --repo=repos/test --mode=archive-z2
$(dirname $0)/make-test-runtime.sh repos/test org.test.Platform master "" "" bas h ls cat echo readlink > /dev/null $(dirname $0)/make-test-runtime.sh repos/test org.test.Platform master "" "" bas h ls cat echo readlink > /dev/null
$(dirname $0)/make-test-app.sh repos/test "" master "" > /dev/null $(dirname $0)/make-test-app.sh repos/test "" master "" > /dev/null
# Modify platform metadata # Modify platform metadata
ostree checkout -U --repo=repos/test runtime/org.test.Platform/${ARCH}/master pl atform ostree checkout -U --repo=repos/test runtime/org.test.Platform/${ARCH}/master pl atform
add_extensions platform add_extensions platform
${FLATPAK} build-export --disable-sandbox repos/test platform --files=files mast ${FLATPAK} build-export --no-update-summary --disable-sandbox repos/test platfor
er m --files=files master
${FLATPAK} build-update-repo repos/test update_repo
${FLATPAK} remote-add --user --no-gpg-verify test-repo repos/test ${FLATPAK} remote-add --user --no-gpg-verify test-repo repos/test
${FLATPAK} --user install -y test-repo org.test.Platform master ${FLATPAK} --user install -y test-repo org.test.Platform master
${FLATPAK} --user install -y test-repo org.test.Hello master ${FLATPAK} --user install -y test-repo org.test.Hello master
make_extension org.test.Extension1 master make_extension org.test.Extension1 master
make_extension org.test.Extension1 not-master make_extension org.test.Extension1 not-master
make_extension org.test.Extension2 master make_extension org.test.Extension2 master
make_extension org.test.Extension2 not-master make_extension org.test.Extension2 not-master
make_extension org.test.Extension3 master make_extension org.test.Extension3 master
skipping to change at line 158 skipping to change at line 159
assert_not_has_extension_file /usr dir2/foo/exists assert_not_has_extension_file /usr dir2/foo/exists
run_sh org.test.Hello "ls -lR /usr/foo/multiversion" run_sh org.test.Hello "ls -lR /usr/foo/multiversion"
assert_has_extension_file /usr multiversion/master/extension-org.test.Multiversi on.master:master assert_has_extension_file /usr multiversion/master/extension-org.test.Multiversi on.master:master
assert_has_extension_file /usr multiversion/notmaster/extension-org.test.Multive rsion.notmaster:not-master assert_has_extension_file /usr multiversion/notmaster/extension-org.test.Multive rsion.notmaster:not-master
ok "runtime extensions" ok "runtime extensions"
# Modify app metadata # Modify app metadata
ostree checkout -U --repo=repos/test app/org.test.Hello/${ARCH}/master hello ostree checkout -U --repo=repos/test app/org.test.Hello/${ARCH}/master hello
add_extensions hello add_extensions hello
${FLATPAK} build-export --disable-sandbox repos/test hello master ${FLATPAK} build-export --no-update-summary --disable-sandbox repos/test hello m
${FLATPAK} build-update-repo repos/test aster
update_repo
${FLATPAK} --user update -y org.test.Hello master ${FLATPAK} --user update -y org.test.Hello master
assert_has_extension_file /app ext1/exists assert_has_extension_file /app ext1/exists
assert_has_extension_file /app ext1/extension-org.test.Extension1:master assert_has_extension_file /app ext1/extension-org.test.Extension1:master
assert_has_extension_file /app ext2/exists assert_has_extension_file /app ext2/exists
assert_has_extension_file /app ext2/extension-org.test.Extension2:master assert_has_extension_file /app ext2/extension-org.test.Extension2:master
assert_has_extension_file /app ext3/exists assert_has_extension_file /app ext3/exists
assert_has_extension_file /app ext3/extension-org.test.Extension3:not-master assert_has_extension_file /app ext3/extension-org.test.Extension3:not-master
assert_not_has_extension_file /app ext4/exists assert_not_has_extension_file /app ext4/exists
 End of changes. 3 change blocks. 
6 lines changed or deleted 9 lines changed or added

Home  |  About  |  Features  |  All  |  Newest  |  Dox  |  Diffs  |  RSS Feeds  |  Screenshots  |  Comments  |  Imprint  |  Privacy  |  HTTP(S)