forked from Mirrors/flatpak-builder
tests: Run flatpak-builder under valgrind too
parent
1b09719298
commit
25483378a9
|
@ -100,6 +100,7 @@ if [ x${USE_DELTAS-} == xyes ] ; then
|
|||
fi
|
||||
|
||||
export FLATPAK="${CMD_PREFIX} flatpak"
|
||||
export FLATPAK_BUILDER="${CMD_PREFIX} flatpak-builder"
|
||||
|
||||
assert_streq () {
|
||||
test "$1" = "$2" || (echo 1>&2 "$1 != $2"; exit 1)
|
||||
|
|
|
@ -39,7 +39,7 @@ cp -a $(dirname $0)/test-configure .
|
|||
echo "version1" > app-data
|
||||
cp $(dirname $0)/test.json .
|
||||
cp $(dirname $0)/0001-Add-test-logo.patch .
|
||||
flatpak-builder --repo=$REPO $FL_GPGARGS --force-clean appdir test.json > /dev/null
|
||||
${FLATPAK_BUILDER} --repo=$REPO $FL_GPGARGS --force-clean appdir test.json
|
||||
|
||||
assert_file_has_content appdir/files/share/app-data version1
|
||||
assert_file_has_content appdir/metadata shared=network;
|
||||
|
@ -66,7 +66,7 @@ assert_file_has_content app_data_1 version1
|
|||
echo "ok install+run"
|
||||
|
||||
echo "version2" > app-data
|
||||
flatpak-builder $FL_GPGARGS --repo=$REPO --force-clean appdir test.json > /dev/null
|
||||
${FLATPAK_BUILDER} $FL_GPGARGS --repo=$REPO --force-clean appdir test.json
|
||||
assert_file_has_content appdir/files/share/app-data version2
|
||||
|
||||
${FLATPAK} ${U} update org.test.Hello2 master
|
||||
|
|
Loading…
Reference in New Issue