[Pkg-privacy-commits] [pyptlib] 72/136: add Makefile to automatically run all tests
Ximin Luo
infinity0 at moszumanska.debian.org
Sat Aug 22 13:25:10 UTC 2015
This is an automated email from the git hooks/post-receive script.
infinity0 pushed a commit to branch master
in repository pyptlib.
commit 35067fce3c3257bc1ec6c0ede5ed59d2f1b44271
Author: Ximin Luo <infinity0 at gmx.com>
Date: Tue Aug 6 16:05:17 2013 +0100
add Makefile to automatically run all tests
---
Makefile | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/Makefile b/Makefile
new file mode 100644
index 0000000..3d9f1ee
--- /dev/null
+++ b/Makefile
@@ -0,0 +1,14 @@
+# This is only an ad-hoc way for running multi-language tests.
+# Use setup.py for building/distributing.
+
+TEST_DIR = pyptlib/test
+BASE_DIR = $(realpath .)
+PYTHONPATH = $(BASE_DIR):$(realpath $(TEST_DIR))
+
+.PHONY: check check_py check_sh
+
+check: check_py check_sh
+
+check_py: $(TEST_DIR)/test_*.py
+ export PYTHONPATH=$(PYTHONPATH); cd $(TEST_DIR); \
+ for i in $^; do python "$${i#$(TEST_DIR)/}" || exit 1; done
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-privacy/packages/pyptlib.git
More information about the Pkg-privacy-commits
mailing list