forked from Mirrors/flatpak-builder
test-basic: Verify the right version
parent
b330368761
commit
337f81048c
|
@ -41,8 +41,14 @@ install-data-hook:
|
|||
|
||||
check_PROGRAMS += $(TEST_PROGS)
|
||||
|
||||
tests/package_version.txt: Makefile
|
||||
echo $(PACKAGE_VERSION) > tests/package_version.txt
|
||||
|
||||
tests/test-basic.sh: tests/package_version.txt
|
||||
|
||||
installed_test_SCRIPTS += \
|
||||
buildutil/tap-driver.sh \
|
||||
tests/package_version.txt \
|
||||
tests/make-test-app.sh \
|
||||
tests/make-test-runtime.sh \
|
||||
tests/make-test-bundles.sh \
|
||||
|
|
|
@ -25,7 +25,8 @@ echo "1..2"
|
|||
|
||||
${XDG_APP} --version > version_out
|
||||
|
||||
assert_file_has_content version_out '^xdg-app '
|
||||
VERSION=`cat $(dirname $0)/package_version.txt`
|
||||
assert_file_has_content version_out "^xdg-app $VERSION$"
|
||||
|
||||
echo "ok version"
|
||||
|
||||
|
|
Loading…
Reference in New Issue