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

smcv pushed a commit to branch master
in repository game-data-packager.

commit f233879813bd655f4d957f25f9b0f2b18966da2f
Author: Alexandre Detiste <[email protected]>
Date:   Fri Jan 16 15:54:10 2015 +0100

    this add a little testsuite to the Makefile
    
    feel free to change picked games selection
---
 Makefile | 20 ++++++++++++++++++--
 1 file changed, 18 insertions(+), 2 deletions(-)

diff --git a/Makefile b/Makefile
index f814229..d2b5b80 100644
--- a/Makefile
+++ b/Makefile
@@ -1,6 +1,16 @@
 VERSION := $(shell dpkg-parsechangelog | grep ^Version | cut -d' ' -f2-)
 DIRS := ./out ./build
-LDLIBS = -ldynamite
+GDP_MIRROR ?= localhost
+
+# some cherry picked games that:
+# - are freely downloadable (either demo or full version)
+# - test various codepaths:
+#   - alternatives
+#   - archive recursion (zip in zip)
+#   - lha
+#   - id-shr-extract
+# - are not too big
+TEST_SUITE += rott spear-of-destiny wolf3d
 
 default: $(DIRS)
        gzip -nc9 debian/changelog > ./out/changelog.gz
@@ -83,4 +93,10 @@ check:
        GDP_UNINSTALLED=1 PYTHONPATH=lib python3 -m 
game_data_packager.check_syntax
        pyflakes3 lib/game_data_packager/*.py lib/game_data_packager/*/*.py || :
 
-.PHONY: default clean check
+testsuite:
+       for game in $(TEST_SUITE); do \
+               GDP_MIRROR=$(GDP_MIRROR) GDP_UNINSTALLED=1 PYTHONPATH=lib \
+               python3 -m game_data_packager -d /tmp --no-search --no-compress 
$$game || exit $$?; \
+       done
+
+.PHONY: default clean check testsuite

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

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to