"Fossies" - the Fresh Open Source Software Archive  

Source code changes of the file "tests/test-summaries.sh" between
flatpak-1.9.1.tar.xz and flatpak-1.9.2.tar.xz

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

test-summaries.sh  (flatpak-1.9.1.tar.xz):test-summaries.sh  (flatpak-1.9.2.tar.xz)
skipping to change at line 74 skipping to change at line 74
<description><p>This is a test app.</p></description> <description><p>This is a test app.</p></description>
<releases> <releases>
<release timestamp="1525132800" version="0.0.1"/> <release timestamp="1525132800" version="0.0.1"/>
</releases> </releases>
</component> </component>
</components> </components>
EOF EOF
cp $(dirname $0)/org.test.Hello.png ${DIR}/files/share/app-info/icons/flatpa k/64x64/${APP_ID}.png cp $(dirname $0)/org.test.Hello.png ${DIR}/files/share/app-info/icons/flatpa k/64x64/${APP_ID}.png
$FLATPAK build-finish --command=hello.sh ${DIR} &> /dev/null $FLATPAK build-finish --command=hello.sh ${DIR} &> /dev/null
$FLATPAK build-export ${GPGARGS} --arch=$APPARCH --disable-sandbox ${REPO} ${DIR} &> /dev/null $FLATPAK build-export --no-update-summary ${GPGARGS} --arch=$APPARCH --disab le-sandbox ${REPO} ${DIR} &> /dev/null
rm -rf ${DIR} rm -rf ${DIR}
} }
active_subsets() { active_subsets() {
REPO=$1 REPO=$1
$FLATPAK repo --subsets $REPO | awk "{ print \$2 }" $FLATPAK repo --subsets $REPO | awk "{ print \$2 }"
} }
active_subset_for_arch() { active_subset_for_arch() {
REPO=$1 REPO=$1
skipping to change at line 147 skipping to change at line 147
# A non-default arch (that isn't compatible) # A non-default arch (that isn't compatible)
if [ $ARCH == x86_64 -o $ARCH == i386 ]; then if [ $ARCH == x86_64 -o $ARCH == i386 ]; then
OTHER_ARCH=aarch64 OTHER_ARCH=aarch64
else else
OTHER_ARCH=x86_64 OTHER_ARCH=x86_64
fi fi
# Set up some arches, including the current one # Set up some arches, including the current one
declare -A arches declare -A arches
for A in aarch64 arm $($FLATPAK --supported-arches); do for A in x86_64 aarch64 arm $($FLATPAK --supported-arches); do
arches[$A]=1 arches[$A]=1
done done
ARCHES=${!arches[@]} ARCHES=${!arches[@]}
for A in $ARCHES; do for A in $ARCHES; do
# Create runtimes for all arches (based on $ARCH version) # Create runtimes for all arches (based on $ARCH version)
if [ $A != $ARCH ]; then if [ $A != $ARCH ]; then
$FLATPAK build-commit-from ${GPGARGS} --src-ref=runtime/org.test.Platfo rm/x86_64/master repos/test runtime/org.test.Platform/$A/master $FLATPAK build-commit-from ${GPGARGS} --src-ref=runtime/org.test.Platfo rm/$ARCH/master repos/test runtime/org.test.Platform/$A/master
fi fi
# Create a bunch of apps (for all arches) # Create a bunch of apps (for all arches)
for I in $(seq 10); do for I in $(seq 10); do
make_app org.app.App$I $A repos/test make_app org.app.App$I $A repos/test
done done
update_repo
# Make sure we have no superfluous summary files # Make sure we have no superfluous summary files
verify_subsummaries repos/test verify_subsummaries repos/test
done done
set -x set -x
ok subsummary update generations ok subsummary update generations
ACTIVE_SUBSET=$(active_subset repos/test) ACTIVE_SUBSET=$(active_subset repos/test)
ACTIVE_SUBSET_OTHER=$(active_subset_for_arch repos/test $OTHER_ARCH) ACTIVE_SUBSET_OTHER=$(active_subset_for_arch repos/test $OTHER_ARCH)
# Ensure we have no initial cache
rm -rf $FL_CACHE_DIR/summaries/*
assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${ACTIVE_SUBSET}.sub assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${ACTIVE_SUBSET}.sub
assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${ACTIVE_SUBSET_OTHER}.sub assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${ACTIVE_SUBSET_OTHER}.sub
httpd_clear_log httpd_clear_log
# Prime cache for default arch
$FLATPAK $U remote-ls test-repo > /dev/null $FLATPAK $U remote-ls test-repo > /dev/null
assert_has_file $FL_CACHE_DIR/summaries/test-repo-${ARCH}-${ACTIVE_SUBSET}.sub assert_has_file $FL_CACHE_DIR/summaries/test-repo-${ARCH}-${ACTIVE_SUBSET}.sub
assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${OTHER_ARCH}-${ACTIVE_SUB SET_OTHER}.sub assert_not_has_file $FL_CACHE_DIR/summaries/test-repo-${OTHER_ARCH}-${ACTIVE_SUB SET_OTHER}.sub
# We downloaded the full summary (not delta) # We downloaded the full summary (not delta)
assert_file_has_content httpd-log summaries/${ACTIVE_SUBSET}.gz assert_file_has_content httpd-log summaries/${ACTIVE_SUBSET}.gz
httpd_clear_log httpd_clear_log
$FLATPAK $U remote-ls test-repo --arch=$OTHER_ARCH > /dev/null $FLATPAK $U remote-ls test-repo --arch=$OTHER_ARCH > /dev/null
 End of changes. 6 change blocks. 
3 lines changed or deleted 9 lines changed or added

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