2011-11-30 17:03:50 +00:00
|
|
|
TESTS_ENVIRONMENT = \
|
|
|
|
BZR_HOME="$(abs_builddir)/data" \
|
2015-06-25 13:51:44 +00:00
|
|
|
HYDRA_DBI="dbi:Pg:dbname=hydra-test-suite;port=6433" \
|
2011-11-30 17:03:50 +00:00
|
|
|
HYDRA_DATA="$(abs_builddir)/data" \
|
2011-03-16 16:18:59 +00:00
|
|
|
HYDRA_HOME="$(top_srcdir)/src" \
|
2013-07-19 12:42:34 +00:00
|
|
|
HYDRA_CONFIG= \
|
2011-03-16 16:18:56 +00:00
|
|
|
NIX_REMOTE= \
|
2016-10-06 15:19:16 +00:00
|
|
|
NIX_REMOTE_SYSTEMS= \
|
2011-03-17 13:25:27 +00:00
|
|
|
NIX_CONF_DIR="$(abs_builddir)/nix/etc/nix" \
|
2011-03-17 07:43:33 +00:00
|
|
|
NIX_STATE_DIR="$(abs_builddir)/nix/var/nix" \
|
2011-04-19 11:55:49 +00:00
|
|
|
NIX_MANIFESTS_DIR="$(abs_builddir)/nix/var/nix/manifests" \
|
2011-03-17 07:43:33 +00:00
|
|
|
NIX_STORE_DIR="$(abs_builddir)/nix/store" \
|
|
|
|
NIX_LOG_DIR="$(abs_builddir)/nix/var/log/nix" \
|
2011-12-04 21:50:03 +00:00
|
|
|
NIX_BUILD_HOOK= \
|
2019-03-29 21:46:38 +00:00
|
|
|
PGHOST=/tmp \
|
2017-05-24 14:00:38 +00:00
|
|
|
PERL5LIB="$(srcdir):$(abs_top_srcdir)/src/lib:$$PERL5LIB" \
|
Fix Mercurial tests
In Nixpkgs 20.03, Mercurial fails if PYTHONPATH is set:
$ hg
Traceback (most recent call last):
File "/nix/store/q7s856v6nw4dffdrm9k3w38qs35i8kr3-mercurial-5.2.2/bin/..hg-wrapped-wrapped", line 37, in <module>
dispatch.run()
File "/nix/store/bffdy7q3wi3qinflnvbdkigqj39zzynd-python3-3.7.6/lib/python3.7/importlib/util.py", line 245, in __getattribute__
self.__spec__.loader.exec_module(self)
File "<frozen importlib._bootstrap_external>", line 728, in exec_module
File "<frozen importlib._bootstrap>", line 219, in _call_with_frames_removed
File "/nix/store/q7s856v6nw4dffdrm9k3w38qs35i8kr3-mercurial-5.2.2/lib/python3.7/site-packages/mercurial/dispatch.py", line 10, in <module>
import difflib
File "/nix/store/bffdy7q3wi3qinflnvbdkigqj39zzynd-python3-3.7.6/lib/python3.7/difflib.py", line 1084, in <module>
import re
File "/nix/store/bffdy7q3wi3qinflnvbdkigqj39zzynd-python3-3.7.6/lib/python3.7/re.py", line 143, in <module>
class RegexFlag(enum.IntFlag):
AttributeError: module 'enum' has no attribute 'IntFlag'
(cherry picked from commit 4009d4295e1e3c0e59e716b0b111f48c590a6020)
2020-03-31 11:33:11 +00:00
|
|
|
PYTHONPATH= \
|
2016-10-13 13:53:05 +00:00
|
|
|
PATH=$(abs_top_srcdir)/src/hydra-evaluator:$(abs_top_srcdir)/src/script:$(abs_top_srcdir)/src/hydra-eval-jobs:$(abs_top_srcdir)/src/hydra-queue-runner:$$PATH \
|
2013-01-22 13:41:02 +00:00
|
|
|
perl -w
|
2011-03-16 10:27:32 +00:00
|
|
|
|
2011-03-17 07:30:19 +00:00
|
|
|
EXTRA_DIST = \
|
|
|
|
$(wildcard *.pm) \
|
|
|
|
$(wildcard jobs/*.nix) \
|
2011-11-30 16:32:50 +00:00
|
|
|
$(wildcard jobs/*.sh) \
|
|
|
|
$(TESTS)
|
|
|
|
|
2011-03-16 08:50:31 +00:00
|
|
|
TESTS = \
|
2015-06-25 13:29:22 +00:00
|
|
|
set-up.pl \
|
|
|
|
evaluation-tests.pl \
|
|
|
|
tear-down.pl
|
2011-03-16 13:18:12 +00:00
|
|
|
|
2015-06-25 13:29:22 +00:00
|
|
|
check_SCRIPTS = repos
|
2011-03-16 08:50:31 +00:00
|
|
|
|
2013-01-23 14:56:28 +00:00
|
|
|
db.sqlite: $(top_srcdir)/src/sql/hydra-sqlite.sql
|
2012-03-12 20:06:42 +00:00
|
|
|
$(TESTS_ENVIRONMENT) $(top_srcdir)/src/script/hydra-init
|
2011-03-16 08:50:31 +00:00
|
|
|
|
2013-01-23 14:56:28 +00:00
|
|
|
repos: dirs
|
2011-03-17 09:14:48 +00:00
|
|
|
|
2013-01-23 14:56:28 +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
|
2011-03-17 13:25:27 +00:00
|
|
|
mkdir -p nix/etc/nix
|
|
|
|
touch nix/etc/nix/nix.conf
|
2019-02-01 03:29:07 +00:00
|
|
|
echo "sandbox = false" >> nix/etc/nix/nix.conf
|
2011-03-16 10:27:32 +00:00
|
|
|
mkdir -p nix/store
|
|
|
|
mkdir -p nix/var
|