Commit 1cfe6c12 authored by Tatuya Kamada's avatar Tatuya Kamada

stack/erp5: Add faketime for tests.

Hand-made merge from the following commit.

commit eb517ef0
Author: Yusei Tahara <yusei@nexedi.com>
Date:   Fri Feb 22 15:11:15 2019 +0900

    Add faketime for tests.
parent d59bdcd5
...@@ -5,6 +5,7 @@ extends = ...@@ -5,6 +5,7 @@ extends =
ztk-versions.cfg ztk-versions.cfg
zope-versions.cfg zope-versions.cfg
buildout.hash.cfg buildout.hash.cfg
../../component/faketime/buildout.cfg
../../component/fonts/buildout.cfg ../../component/fonts/buildout.cfg
../../component/git/buildout.cfg ../../component/git/buildout.cfg
../../component/graphviz/buildout.cfg ../../component/graphviz/buildout.cfg
...@@ -89,6 +90,8 @@ parts += ...@@ -89,6 +90,8 @@ parts +=
# jupyter # jupyter
jupyter-notebook-initialized-scripts jupyter-notebook-initialized-scripts
# faketime for test
faketime
# override instance-jupyter-notebook not to render into default template.cfg # override instance-jupyter-notebook not to render into default template.cfg
[instance-jupyter-notebook] [instance-jupyter-notebook]
...@@ -178,6 +181,7 @@ context = ...@@ -178,6 +181,7 @@ context =
key dcron_location dcron:location key dcron_location dcron:location
key default_cloudooo_url erp5-defaults:cloudooo-connection-url key default_cloudooo_url erp5-defaults:cloudooo-connection-url
key erp5_location erp5:location key erp5_location erp5:location
key faketime_location faketime:location
key findutils_location findutils:location key findutils_location findutils:location
key gzip_location gzip:location key gzip_location gzip:location
key xz_utils_location xz-utils:location key xz_utils_location xz-utils:location
......
...@@ -70,7 +70,7 @@ md5sum = 7a14019abf48ca100eb94d9add20f5ae ...@@ -70,7 +70,7 @@ md5sum = 7a14019abf48ca100eb94d9add20f5ae
[template] [template]
filename = instance.cfg.in filename = instance.cfg.in
md5sum = b5ac16fdeed8863e465e955ba6d1e12a md5sum = 06621d6067b99f42fdb1bdb9de962175
[template-erp5] [template-erp5]
filename = instance-erp5.cfg.in filename = instance-erp5.cfg.in
...@@ -82,7 +82,7 @@ md5sum = 0648e38bd5d3a15bb9f93264932740b9 ...@@ -82,7 +82,7 @@ md5sum = 0648e38bd5d3a15bb9f93264932740b9
[template-zope] [template-zope]
filename = instance-zope.cfg.in filename = instance-zope.cfg.in
md5sum = 9fa66b93fbf6a40aa8136c651ad9f539 md5sum = 7cee641983e127e483e6dfe23b847984
[template-balancer] [template-balancer]
filename = instance-balancer.cfg.in filename = instance-balancer.cfg.in
......
...@@ -455,7 +455,7 @@ context = ...@@ -455,7 +455,7 @@ context =
{% else -%} {% else -%}
[{{ section('run-unit-test-userhosts-wrapper') }}] [{{ section('run-unit-test-userhosts-wrapper') }}]
<= userhosts-wrapper-base <= userhosts-wrapper-base
wrapped-command-line = ${runUnitTest:wrapper-path} wrapped-command-line = {{ parameter_dict['faketime'] }}/bin/faketime "2057/01/03 00:00:00" ${runUnitTest:wrapper-path}
wrapper-path = ${buildout:bin-directory}/runUnitTest wrapper-path = ${buildout:bin-directory}/runUnitTest
[{{ section('run-test-suite-userhosts-wrapper') }}] [{{ section('run-test-suite-userhosts-wrapper') }}]
......
...@@ -113,6 +113,7 @@ extra-path-list = {{ dumps(extra_path_list) }} ...@@ -113,6 +113,7 @@ extra-path-list = {{ dumps(extra_path_list) }}
matplotlibrc = {{ matplotlibrc_location }} matplotlibrc = {{ matplotlibrc_location }}
erp5-location = {{ erp5_location }} erp5-location = {{ erp5_location }}
egg-interpreter = {{egg_interpreter}} egg-interpreter = {{egg_interpreter}}
faketime = {{ faketime_location }}
[dynamic-template-zope] [dynamic-template-zope]
<= jinja2-template-base <= jinja2-template-base
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment