2011-03-16 16:18:56 +00:00
|
|
|
TESTS_ENVIRONMENT = \
|
|
|
|
HYDRA_DBI="dbi:SQLite:db.sqlite" \
|
2011-03-17 07:43:33 +00:00
|
|
|
HYDRA_DATA="$(abs_builddir)/data" \
|
2011-03-16 16:18:59 +00:00
|
|
|
HYDRA_HOME="$(top_srcdir)/src" \
|
2011-03-16 16:18:56 +00:00
|
|
|
NIX_REMOTE= \
|
2011-03-17 07:43:33 +00:00
|
|
|
NIX_STATE_DIR="$(abs_builddir)/nix/var/nix" \
|
|
|
|
NIX_STORE_DIR="$(abs_builddir)/nix/store" \
|
|
|
|
NIX_LOG_DIR="$(abs_builddir)/nix/var/log/nix" \
|
2011-03-16 16:18:56 +00:00
|
|
|
PERL5LIB="$(srcdir):$(top_srcdir)/src/lib:$$PERL5LIB" \
|
2011-03-16 10:27:32 +00:00
|
|
|
perl -w
|
|
|
|
|
2011-03-17 07:30:19 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(wildcard *.pm) \
|
|
|
|
$(wildcard jobs/*.nix) \
|
|
|
|
$(wildcard jobs/*.sh)
|
|
|
|
|
2011-03-16 08:50:31 +00:00
|
|
|
TESTS = \
|
2011-03-16 13:18:12 +00:00
|
|
|
query-all-tables.pl \
|
|
|
|
evaluation-tests.pl
|
|
|
|
|
2011-03-17 07:43:33 +00:00
|
|
|
rob:
|
|
|
|
echo $(TESTS_ENVIRONMENT)
|
2011-03-16 13:18:12 +00:00
|
|
|
clean :
|
|
|
|
chmod -R a+w nix
|
2011-03-16 13:36:42 +00:00
|
|
|
rm -rf db.sqlite data nix git-repo hg-repo svn-repo svn-checkout
|
2011-03-16 08:50:31 +00:00
|
|
|
|
2011-03-16 14:00:52 +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 14:00:52 +00:00
|
|
|
dirs : git-repo hg-repo svn-repo
|
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
|
2011-03-16 13:36:42 +00:00
|
|
|
|
2011-03-16 14:00:52 +00:00
|
|
|
git-repo :
|
2011-03-16 13:36:42 +00:00
|
|
|
git init git-repo
|
|
|
|
touch git-repo/git-file
|
|
|
|
(cd git-repo; git add git-file ; git commit -m "add git file" git-file)
|
|
|
|
|
2011-03-16 14:00:52 +00:00
|
|
|
hg-repo :
|
2011-03-16 13:36:42 +00:00
|
|
|
hg init hg-repo
|
|
|
|
touch hg-repo/hg-file
|
|
|
|
(cd hg-repo; hg add hg-file ; hg commit -m "add hg file" hg-file)
|
|
|
|
|
2011-03-16 14:00:52 +00:00
|
|
|
svn-repo :
|
2011-03-16 13:36:42 +00:00
|
|
|
svnadmin create svn-repo
|
2011-03-17 07:25:23 +00:00
|
|
|
svn co file://$(abs_builddir)/svn-repo svn-checkout
|
2011-03-16 13:36:42 +00:00
|
|
|
touch svn-checkout/svn-file
|
|
|
|
svn add svn-checkout/svn-file
|
|
|
|
svn commit -m "add svn file" svn-checkout/svn-file
|