hydra/tests/Makefile.am

24 lines
550 B
Makefile
Raw Normal View History

2011-03-16 10:27:32 +00:00
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
2011-03-16 08:50:31 +00:00
TESTS = \
query-all-tables.pl
2011-03-16 10:27:32 +00:00
$(TESTS) : db.sqlite dirs
2011-03-16 08:50:31 +00:00
2011-03-16 09:24:18 +00:00
db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql
sqlite3 db.sqlite < $(top_srcdir)/src/sql/hydra-sqlite.sql
2011-03-16 08:50:31 +00:00
2011-03-16 10:27:32 +00:00
dirs :
2011-03-16 09:46:47 +00:00
mkdir -p data
2011-03-16 10:27:32 +00:00
mkdir -p nix
mkdir -p nix/store
mkdir -p nix/var