From 65e4122444736a78481d8f7616cec7ac21236561 Mon Sep 17 00:00:00 2001 From: Rob Vermaas Date: Wed, 16 Mar 2011 10:27:32 +0000 Subject: [PATCH] --- tests/Makefile.am | 18 +++++++++++++++--- 1 file changed, 15 insertions(+), 3 deletions(-) diff --git a/tests/Makefile.am b/tests/Makefile.am index a6559a71..36c1d2bc 100644 --- a/tests/Makefile.am +++ b/tests/Makefile.am @@ -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 = \ query-all-tables.pl -$(TESTS) : db.sqlite data +$(TESTS) : db.sqlite dirs 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 nix + mkdir -p nix/store + mkdir -p nix/var