diff --git a/functionaltests/post_test_hook.sh b/functionaltests/post_test_hook.sh new file mode 100755 index 0000000000..12ec885368 --- /dev/null +++ b/functionaltests/post_test_hook.sh @@ -0,0 +1,18 @@ +#!/bin/bash +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This script is executed inside post_test_hook function in devstack gate. + +cd /opt/stack/new/heat +sudo tox -efunctional diff --git a/functionaltests/pre_test_hook.sh b/functionaltests/pre_test_hook.sh new file mode 100755 index 0000000000..434f3499af --- /dev/null +++ b/functionaltests/pre_test_hook.sh @@ -0,0 +1,16 @@ +#!/bin/bash +# +# Licensed under the Apache License, Version 2.0 (the "License"); you may +# not use this file except in compliance with the License. You may obtain +# a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, WITHOUT +# WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the +# License for the specific language governing permissions and limitations +# under the License. + +# This script is executed inside pre_test_hook function in devstack gate. + diff --git a/tox.ini b/tox.ini index 1749da82fd..7f589d814b 100644 --- a/tox.ini +++ b/tox.ini @@ -13,13 +13,17 @@ install_command = pip install {opts} {packages} deps = -r{toxinidir}/requirements.txt -r{toxinidir}/test-requirements.txt commands = - python setup.py testr --slowest --testr-args='{posargs}' + python setup.py testr --slowest --testr-args='^(?!functionaltests) {posargs}' whitelist_externals = bash +[testenv:functional] +commands = + python -c "print('TODO: functional tests')" + [testenv:pep8] commands = - flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib + flake8 heat bin/heat-api bin/heat-api-cfn bin/heat-api-cloudwatch bin/heat-engine bin/heat-manage contrib functionaltests {toxinidir}/tools/config/check_uptodate.sh {toxinidir}/tools/requirements_style_check.sh requirements.txt test-requirements.txt # Check that .po and .pot files are valid: