X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2FMakefile;h=444794bf8c284281e5c7b89b87c3917f8b7a09b8;hb=a685d7b5007c13e765a29685d1ae63d8cda9c5c0;hp=a6a5e1f64fcca64b44fc4d8a7e2de2345b4999b9;hpb=d6d2d76d2b29e8384169c5b86e19e494fab1a464;p=sqlconvert.git diff --git a/tests/Makefile b/tests/Makefile index a6a5e1f..444794b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,22 @@ .PHONY: all -all: - python `which pytest` +all: nodb postgres sqlite clean + +.PHONY: nodb +nodb: + PYTHONPATH=.. python -m pytest + +.PHONY: postgres +postgres: + createdb test + PYTHONPATH=.. python -m pytest -D postgres:///test + dropdb test + +.PHONY: sqlite +sqlite: + PYTHONPATH=.. python -m pytest -D sqlite:///tmp/test.sqdb + rm -f /tmp/test.sqdb + +.PHONY: clean +clean: + rm -f *.tmp