forked from lix-project/hydra
48 lines
1.2 KiB
Makefile
48 lines
1.2 KiB
Makefile
TESTS_ENVIRONMENT = \
|
|
HYDRA_DBI="dbi:SQLite:db.sqlite" \
|
|
HYDRA_DATA="$(builddir)/data" \
|
|
HYDRA_HOME="$(topsrc_dir)/src" \
|
|
NIX_REMOTE= \
|
|
NIX_STATE_DIR="$(builddir)/nix/var/nix" \
|
|
NIX_STORE_DIR="$(builddir)/nix/store" \
|
|
NIX_LOG_DIR="$(builddir)/nix/var/log/nix" \
|
|
PERL5LIB="$(srcdir):$(top_srcdir)/src/lib:$$PERL5LIB" \
|
|
perl -w
|
|
|
|
TESTS = \
|
|
query-all-tables.pl \
|
|
evaluation-tests.pl
|
|
|
|
clean :
|
|
chmod -R a+w nix
|
|
rm -rf db.sqlite data nix git-repo hg-repo svn-repo svn-checkout
|
|
|
|
$(TESTS) : db.sqlite dirs
|
|
|
|
db.sqlite : $(top_srcdir)/src/sql/hydra-sqlite.sql
|
|
sqlite3 db.sqlite < $(top_srcdir)/src/sql/hydra-sqlite.sql
|
|
|
|
dirs : git-repo hg-repo svn-repo
|
|
mkdir -p data
|
|
touch data/hydra.conf
|
|
mkdir -p nix
|
|
mkdir -p nix/store
|
|
mkdir -p nix/var
|
|
|
|
git-repo :
|
|
git init git-repo
|
|
touch git-repo/git-file
|
|
(cd git-repo; git add git-file ; git commit -m "add git file" git-file)
|
|
|
|
hg-repo :
|
|
hg init hg-repo
|
|
touch hg-repo/hg-file
|
|
(cd hg-repo; hg add hg-file ; hg commit -m "add hg file" hg-file)
|
|
|
|
svn-repo :
|
|
svnadmin create svn-repo
|
|
svn co file://$(builddir)/svn-repo svn-checkout
|
|
touch svn-checkout/svn-file
|
|
svn add svn-checkout/svn-file
|
|
svn commit -m "add svn file" svn-checkout/svn-file
|