Commit Graph

14 Commits

Author SHA1 Message Date
Daniele Varrazzo
f697410ab4 The tests are run from the external of the package.
If __init__ is treated as a script, relative import fail.
2010-12-21 04:49:16 +00:00
Daniele Varrazzo
9b29282ee4 'make check' runs the test in the build directory.
This way tests can be run win Py3 too, as the setup 2to3s them.
2010-12-21 04:02:13 +00:00
Daniele Varrazzo
a30e461038 The Makefile can run with both Python 2 and 3. 2010-12-12 16:20:02 +00:00
Federico Di Gregorio
5f80dd38c4 Removed runtests target; checks is the default for Makefiles 2010-12-01 21:55:42 +01:00
Federico Di Gregorio
a411f85354 Removed default test database from Makefile
The default is already in test/__init__.py and the Makefile was
overwriting the PSYCOPG2_TESTDB env variable.
2010-12-01 21:29:33 +01:00
Daniele Varrazzo
19ead4a5cb Test cleanup.
Tests pass or fail gracefully on older PostgreSQL versions.

If unittest2 is available, skip tests instead of printing warnings.
2010-11-19 03:55:37 +00:00
Daniele Varrazzo
58079c6c91 Fixed dependencies of the sdist target 2010-11-15 09:35:28 +00:00
Daniele Varrazzo
0a2856477c The Makefile can receive the pg_config location. 2010-11-14 18:23:09 +00:00
Daniele Varrazzo
78dfbfb94a Fixed dependencies to build the docs. 2010-11-13 20:31:53 +00:00
Daniele Varrazzo
d07791cfe9 Fixed setuptools installation from scratch. 2010-11-13 20:01:48 +00:00
Daniele Varrazzo
9ffcb90038 Added flesh to the Makefile.
Now it can be used to build, make the docs (including installing
dependencies), run the tests, build the sdist.
2010-11-13 19:45:45 +00:00
Daniele Varrazzo
6cb949d371 Try to install the hstore type in the test database. 2010-11-05 09:34:52 +00:00
James Henstridge
fc2b684843 * runtests.py: add a harness to run all the psycopg tests against
the version built by distutils.
2008-02-27 02:29:55 +00:00
Daniele Varrazzo
67afd678b0 Added 'make check' target, running all the available tests.
Most of the updates have been provided by James Henstridge.

Closes ticket #195.
2007-11-11 10:40:12 +00:00