From 337f81048cb3d58c75de8c0039e7339cba1a939b Mon Sep 17 00:00:00 2001 From: Alexander Larsson Date: Thu, 28 Apr 2016 13:12:43 +0200 Subject: test-basic: Verify the right version --- tests/Makefile.am.inc | 6 ++++++ tests/test-basic.sh | 3 ++- 2 files changed, 8 insertions(+), 1 deletion(-) (limited to 'tests') diff --git a/tests/Makefile.am.inc b/tests/Makefile.am.inc index 5c9b48f..4a89138 100644 --- a/tests/Makefile.am.inc +++ b/tests/Makefile.am.inc @@ -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 \ diff --git a/tests/test-basic.sh b/tests/test-basic.sh index f2add78..f649dff 100755 --- a/tests/test-basic.sh +++ b/tests/test-basic.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" -- cgit v1.2.1