X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;f=tests%2FMakefile;h=444794bf8c284281e5c7b89b87c3917f8b7a09b8;hb=a745f0f7a38739e6b5274060bfd38abd4ba4638b;hp=b990065cfd8bab40e800e4f3987644c570fca99e;hpb=16c2bcbc29f78bf54fb7ffee9577d1d88216ebbc;p=sqlconvert.git diff --git a/tests/Makefile b/tests/Makefile index b990065..444794b 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -1,4 +1,22 @@ .PHONY: all -all: - ./run_all.py +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