This commit is contained in:
Rob Vermaas 2011-03-16 10:27:32 +00:00
parent 6b0da4625f
commit 65e4122444

View file

@ -1,11 +1,23 @@
TESTS_ENVIRONMENT = HYDRA_DBI="dbi:SQLite:db.sqlite" HYDRA_DATA="$(top_srcdir)/tests/data" HYDRA_HOME="$(topsrc_dir)/src" TESTS_ENVIRONMENT = \
HYDRA_DBI="dbi:SQLite:db.sqlite" \
HYDRA_DATA="$(top_srcdir)/tests/data" \
HYDRA_HOME="$(topsrc_dir)/src" \
NIX_REMOTE= \
NIX_STATE_DIR=$(top_srcdir)/tests/nix/var \
NIX_DATA_DIR=$(top_srcdir)/tests/nix/var \
NIX_STORE_DIR=$(top_srcdir)/tests/nix/store \
perl -w
TESTS = \ TESTS = \
query-all-tables.pl query-all-tables.pl
$(TESTS) : db.sqlite data $(TESTS) : db.sqlite dirs
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 : dirs :
mkdir -p data mkdir -p data
mkdir -p nix
mkdir -p nix/store
mkdir -p nix/var