]> git.phdru.name Git - sqlconvert.git/blobdiff - tests/Makefile
Add a test for unescaped strings for Postgres
[sqlconvert.git] / tests / Makefile
index a6a5e1f64fcca64b44fc4d8a7e2de2345b4999b9..6e7d1d837dfb435d3bc8b287a5c577d5b11cd48a 100644 (file)
@@ -1,4 +1,17 @@
 
 .PHONY: all
-all:
-       python `which pytest`
+all: nodb postgres clean
+
+.PHONY: nodb
+nodb:
+       PYTHONPATH=.. python -m  pytest
+
+.PHONY: postgres
+postgres:
+       createdb test
+       PYTHONPATH=.. python -m  pytest -D postgres:///test
+       dropdb test
+
+.PHONY: clean
+clean:
+       rm -f *.tmp