Просмотр исходного кода

Added create_testdbs make target to create the test data.

David N. Welton 11 лет назад
Родитель
Сommit
808e04dfaf
1 измененных файлов с 3 добавлено и 0 удалено
  1. 3 0
      Makefile

+ 3 - 0
Makefile

@@ -31,6 +31,9 @@ clean:
 	@rm -f test/*.beam
 	@rm -rf $(NAME)-$(VERSION) $(NAME)-*.tar.gz
 
+create_testdbs:
+	psql template1 < ./test_data/test_schema.sql
+
 test: $(TESTS:test/%.erl=test/%.beam) compile
 	$(ERL) -pa ebin/ -pa test/ -noshell -s pgsql_tests run_tests -s init stop