X-Git-Url: https://git.phdru.name/?a=blobdiff_plain;ds=sidebyside;f=tests%2FMakefile;h=6e7d1d837dfb435d3bc8b287a5c577d5b11cd48a;hb=00f0aef5739a19921ed06f0397b44ba336184424;hp=a6a5e1f64fcca64b44fc4d8a7e2de2345b4999b9;hpb=3b92cf503ab42f2e3b040398a54d8b7d75838e8b;p=sqlconvert.git diff --git a/tests/Makefile b/tests/Makefile index a6a5e1f..6e7d1d8 100644 --- a/tests/Makefile +++ b/tests/Makefile @@ -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