[Pkg-sdl-commits] [sdl-stretch] 02/03: Fix tests
Manuel A. Fernandez Montecelo
mafm at moszumanska.debian.org
Fri Jun 30 22:10:09 UTC 2017
This is an automated email from the git hooks/post-receive script.
mafm pushed a commit to annotated tag debian/0.3.1-7
in repository sdl-stretch.
commit 0733fde3268ab37d568c24cf5dfee54a87b7238c
Author: Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>
Date: Fri Jun 30 22:14:09 2017 +0200
Fix tests
---
debian/changelog | 2 +-
debian/tests/compile-libsdl-stretch-test0 | 17 +++++++++--------
2 files changed, 10 insertions(+), 9 deletions(-)
diff --git a/debian/changelog b/debian/changelog
index 3dc1db4..c3624e9 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,6 +1,6 @@
sdl-stretch (0.3.1-7) UNRELEASED; urgency=medium
- *
+ * Fix tests
-- Manuel A. Fernandez Montecelo <mafm at debian.org> Fri, 30 Jun 2017 22:07:14 +0200
diff --git a/debian/tests/compile-libsdl-stretch-test0 b/debian/tests/compile-libsdl-stretch-test0
index 26daeae..bde2221 100644
--- a/debian/tests/compile-libsdl-stretch-test0
+++ b/debian/tests/compile-libsdl-stretch-test0
@@ -8,23 +8,24 @@
set -e
+DST_BINARY="$WORKDIR"/compile-libsdl-stretch-test0-exec
+
WORKDIR=$(mktemp -d)
trap "rm -rf $WORKDIR" 0 INT QUIT ABRT PIPE TERM
-cd $WORKDIR
+#cd $WORKDIR
# compile
-cp -av $OLDPWD/compile-libsdl-stretch-test0.c .
-gcc -o compile-libsdl-stretch-test0-exec compile-libsdl-stretch-test0.c $(pkg-config --cflags --libs SDL_stretch sdl)
+gcc -o "$DST_BINARY" compile-libsdl-stretch-test0.c $(pkg-config --cflags --libs SDL_stretch sdl)
echo "build: OK"
# check/execute
-for executable in compile-libsdl-stretch-test0-exec
+for BINFILE in "$DST_BINARY"
do
- [ -x $BINFILE ]
- echo "check: executable does exist"
+ [ -x "$BINFILE" ]
+ echo "check: $BINFILE executable does exist"
- ./$BINFILE
- echo "run: OK"
+ ./"$BINFILE"
+ echo "run $BINFILE: OK"
done
echo "run: all OK"
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-sdl/packages/sdl-stretch.git
More information about the pkg-sdl-commits
mailing list