summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvain <syt@logilab.fr>2006-10-02 11:47:43 +0200
committerSylvain <syt@logilab.fr>2006-10-02 11:47:43 +0200
commit45f9adf261ff33cb8e97e6ae8514f8aa7f724ece (patch)
tree40c211e79daf42ed92fa02ffeacfe380b0fdfa2e
parentf3c804163960efa28561805316b3667474e14fe3 (diff)
downloadlogilab-common-45f9adf261ff33cb8e97e6ae8514f8aa7f724ece.tar.gz
added pytest.bat for windows installation
-rw-r--r--ChangeLog1
-rw-r--r--bin/pytest.bat29
2 files changed, 30 insertions, 0 deletions
diff --git a/ChangeLog b/ChangeLog
index 1f1dccd..8ac92df 100644
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@ ChangeLog for logilab.common
--
* fixed bug in textutils.normalise_[text|paragraph] with unsplitable
word larger than the maximum line size
+ * added pytest.bat for windows installation
2006-09-25 -- 0.19.2
* testlib:
diff --git a/bin/pytest.bat b/bin/pytest.bat
new file mode 100644
index 0000000..c2a928d
--- /dev/null
+++ b/bin/pytest.bat
@@ -0,0 +1,29 @@
+@echo off
+rem = """-*-Python-*- script
+rem -------------------- DOS section --------------------
+rem You could set PYTHONPATH or TK environment variables here
+python -x %~f0 %*
+goto exit
+
+"""
+# -------------------- Python section --------------------
+import os, sys
+import os.path as osp
+from logilab.common import testlib
+
+curdir = os.getcwd()
+if osp.exists(osp.join(curdir, '__pkginfo__.py')):
+ projdir = osp.abspath(curdir)
+elif osp.exists(osp.join(curdir, '..')):
+ projdir = osp.abspath(osp.join(curdir, '..'))
+else:
+ print 'fixme: cannot be run from here.'
+ sys.exit(1)
+testlib.main(osp.join(projdir,'test'))
+
+
+DosExitLabel = """
+:exit
+rem """
+
+