hydra/tests/Makefile.am

27 lines
620 B
Makefile
Raw Normal View History

2011-03-16 10:46:43 +00:00
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 \
2011-03-16 10:41:31 +00:00
PERL5LIB=$$PERL5LIB:$(top_srcdir)/src/lib \
2011-03-16 10:27:32 +00:00
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:50:50 +00:00
touch data/hydra.conf
2011-03-16 10:27:32 +00:00
mkdir -p nix
mkdir -p nix/store
mkdir -p nix/var