diff --git a/__init__.py b/__init__.py new file mode 100644 index 00000000..e69de29b diff --git a/test_suites/README.rst b/test_suites/README.rst new file mode 100644 index 00000000..48cc274e --- /dev/null +++ b/test_suites/README.rst @@ -0,0 +1,8 @@ +Main Module +=========== +This module contains the dependencies to install all others modules + +Contributors +------------ +* Jordi Riera +* David Dufresne diff --git a/test_suites/__init__.py b/test_suites/__init__.py new file mode 100644 index 00000000..6f71e463 --- /dev/null +++ b/test_suites/__init__.py @@ -0,0 +1,4 @@ +# -*- coding: utf-8 -*- +# © 2018 Jordi Riera +# © 2018 David Dufresne +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). diff --git a/test_suites/__manifest__.py b/test_suites/__manifest__.py new file mode 100644 index 00000000..adcfd28f --- /dev/null +++ b/test_suites/__manifest__.py @@ -0,0 +1,19 @@ +# -*- coding: utf-8 -*- +# © 2018 Jordi Riera +# © 2018 David Dufresne +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +{ + 'name': 'tests', + 'version': 'test', + 'author': 'Numigi', + 'maintainer': 'Numigi', + 'license': 'LGPL-3', + 'category': 'Other', + 'summary': 'Tests to make sure the setup is as wanted.', + 'depends': [ + ], + 'data': [], + 'installable': True, + 'application': True, +} diff --git a/test_suites/static/description/icon.png b/test_suites/static/description/icon.png new file mode 100644 index 00000000..4d4a1be0 Binary files /dev/null and b/test_suites/static/description/icon.png differ diff --git a/test_suites/tests/__init__.py b/test_suites/tests/__init__.py new file mode 100644 index 00000000..12d6c27f --- /dev/null +++ b/test_suites/tests/__init__.py @@ -0,0 +1,6 @@ +# -*- coding: utf-8 -*- +# © 2018 Jordi Riera +# © 2018 David Dufresne +# License LGPL-3.0 or later (http://www.gnu.org/licenses/lgpl). + +from . import test_linux_commands diff --git a/test_suites/tests/test_linux_commands.py b/test_suites/tests/test_linux_commands.py new file mode 100644 index 00000000..4a08ba22 --- /dev/null +++ b/test_suites/tests/test_linux_commands.py @@ -0,0 +1,30 @@ +"""Check that the linux command lines exists in the docker that will be pushed +""" +import subprocess + +from odoo.tests import common, unittest + + +class CommandLines(common.TransactionCase): + """Test suite for command lines.""" + + def test_updoo(self): + """ updoo is required.""" + # no assert here, the subprocess will crash if the command doesn't exist. + subprocess.call(["updoo", "--version"]) + + def test_gitoo(self): + """ gitoo is required""" + # no assert here, the subprocess will crash if the command doesn't exist. + subprocess.call(["gitoo", "--version"]) + + def test_run_pytest_sh(self): + """ run_pytest.sh""" + # no assert here, the subprocess will crash if the command doesn't exist. + subprocess.call(["run_pytest.sh", "--version"]) + + @unittest.skip("Need to find a way to test run_test.sh.") + def test_run_test_sh(self): + """ run_pytest.sh""" + # no assert here, the subprocess will crash if the command doesn't exist. + subprocess.call(["run_test.sh", "--version"])