check:
	createdb testdb
	psql testdb -U postgres -a -f test.sql > result.txt 2>&1
	diff expected.txt result.txt > diffs.txt || exit 0
	@if [ `cat diffs.txt | wc -l` -gt 0 ]; \
	then \
		echo "FAILURE, you will see the defferences in diffs.txt";\
		exit 1;\
	else \
		echo "SUCCESS";\
		exit 0;\
	fi
