hydra/tests/Makefile.am
Rob Vermaas 4f50af18aa
2011-03-16 10:50:50 +00:00

27 lines
620 B
Makefile

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 \
PERL5LIB=$$PERL5LIB:$(top_srcdir)/src/lib \
perl -w
TESTS = \
query-all-tables.pl
$(TESTS) : db.sqlite dirs
db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql
sqlite3 db.sqlite < $(top_srcdir)/src/sql/hydra-sqlite.sql
dirs :
mkdir -p data
touch data/hydra.conf
mkdir -p nix
mkdir -p nix/store
mkdir -p nix/var