setup environment variables for tests

This commit is contained in:
Rob Vermaas 2011-03-16 09:46:47 +00:00
parent a8d137379c
commit 6b0da4625f

View file

@ -1,8 +1,11 @@
TESTS_ENVIRONMENT = HYDRA_DBI="dbi:SQLite:db.sqlite" HYDRA_DATA="$(top_srcdir)/tests/data" HYDRA_HOME="$(topsrc_dir)/src"
TESTS = \ TESTS = \
query-all-tables.pl query-all-tables.pl
$(TESTS) : db.sqlite $(TESTS) : db.sqlite data
db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql
sqlite3 db.sqlite < $(top_srcdir)/src/sql/hydra-sqlite.sql sqlite3 db.sqlite < $(top_srcdir)/src/sql/hydra-sqlite.sql
data :
mkdir -p data