[glfw3] 08/11: Fix autopkgtests not working for non-patch versions of glfw

James Cowgill jcowgill at moszumanska.debian.org
Fri Jun 3 12:52:08 UTC 2016


This is an automated email from the git hooks/post-receive script.

jcowgill pushed a commit to branch master
in repository glfw3.

commit f602a689bf6e3b01ba00bf5399d44af44885f21a
Author: James Cowgill <james410 at cowgill.org.uk>
Date:   Fri Jun 3 11:56:31 2016 +0100

    Fix autopkgtests not working for non-patch versions of glfw
---
 debian/tests/build | 3 ++-
 debian/tests/cmake | 3 ++-
 2 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/debian/tests/build b/debian/tests/build
index 8526017..d638e72 100644
--- a/debian/tests/build
+++ b/debian/tests/build
@@ -21,7 +21,8 @@ gcc -Wall -Werror -o glfw3_test2 glfw3_test.c $(pkg-config --cflags --libs glfw3
 echo "build2: OK"
 
 # Run them - ensure the correct version is reported
-GLFW_VERSION=$(dpkg-query -f '${Version}\n' -W libglfw3-dev | sed 's/[^.0-9].*//')
+GLFW_VERSION=$(dpkg-query -f '${Version}\n' -W libglfw3-dev | \
+	sed 's/[^.0-9].*//' | sed 's/^[0-9]*\.[0-9]*$/&.0/')
 
 TEST1_RESULT=$(./glfw3_test1)
 echo $TEST1_RESULT
diff --git a/debian/tests/cmake b/debian/tests/cmake
index 390cfd7..e9b2a7f 100644
--- a/debian/tests/cmake
+++ b/debian/tests/cmake
@@ -20,7 +20,8 @@ make
 echo "build: OK"
 
 # Run it - ensure the correct version is reported
-GLFW_VERSION=$(dpkg-query -f '${Version}\n' -W libglfw3-dev | sed 's/[^.0-9].*//')
+GLFW_VERSION=$(dpkg-query -f '${Version}\n' -W libglfw3-dev | \
+	sed 's/[^.0-9].*//' | sed 's/^[0-9]*\.[0-9]*$/&.0/')
 
 TEST_RESULT=$(./glfw3_test)
 echo $TEST_RESULT

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-games/glfw3.git



More information about the Pkg-games-commits mailing list