diff options
author | Valentin David <valentin.david@codethink.co.uk> | 2018-11-12 14:22:17 +0100 |
---|---|---|
committer | Valentin David <valentin.david@gmail.com> | 2018-11-14 11:43:33 +0000 |
commit | 85046b29000f9f61579413fffe8cac96a036ad9e (patch) | |
tree | 0fb9fbf0c5ca9f437a67699fa70617cf281f563d /tests/examples | |
parent | 16b0148976b8a92c4ba7888e407cd4c5e26e0cae (diff) | |
download | buildstream-85046b29000f9f61579413fffe8cac96a036ad9e.tar.gz |
Disable tests on example on other architectures than x86_64
Diffstat (limited to 'tests/examples')
-rw-r--r-- | tests/examples/autotools.py | 6 | ||||
-rw-r--r-- | tests/examples/developing.py | 8 | ||||
-rw-r--r-- | tests/examples/flatpak-autotools.py | 6 | ||||
-rw-r--r-- | tests/examples/integration-commands.py | 6 | ||||
-rw-r--r-- | tests/examples/junctions.py | 6 | ||||
-rw-r--r-- | tests/examples/running-commands.py | 6 |
6 files changed, 32 insertions, 6 deletions
diff --git a/tests/examples/autotools.py b/tests/examples/autotools.py index 37f6ed0e3..fc6ff7e09 100644 --- a/tests/examples/autotools.py +++ b/tests/examples/autotools.py @@ -3,7 +3,7 @@ import pytest from tests.testutils import cli_integration as cli from tests.testutils.integration import assert_contains -from tests.testutils.site import IS_LINUX +from tests.testutils.site import IS_LINUX, MACHINE_ARCH pytestmark = pytest.mark.integration @@ -13,6 +13,8 @@ DATA_DIR = os.path.join( # Tests a build of the autotools amhello project on a alpine-linux base runtime +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_autotools_build(cli, tmpdir, datafiles): @@ -36,6 +38,8 @@ def test_autotools_build(cli, tmpdir, datafiles): # Test running an executable built with autotools. +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_autotools_run(cli, tmpdir, datafiles): diff --git a/tests/examples/developing.py b/tests/examples/developing.py index bca6ac61d..6c65c5e54 100644 --- a/tests/examples/developing.py +++ b/tests/examples/developing.py @@ -4,7 +4,7 @@ import pytest import tests.testutils.patch as patch from tests.testutils import cli_integration as cli from tests.testutils.integration import assert_contains -from tests.testutils.site import IS_LINUX +from tests.testutils.site import IS_LINUX, MACHINE_ARCH pytestmark = pytest.mark.integration @@ -14,6 +14,8 @@ DATA_DIR = os.path.join( # Test that the project builds successfully +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_autotools_build(cli, tmpdir, datafiles): @@ -35,6 +37,8 @@ def test_autotools_build(cli, tmpdir, datafiles): # Test the unmodified hello command works as expected. +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_run_unmodified_hello(cli, tmpdir, datafiles): @@ -66,6 +70,8 @@ def test_open_workspace(cli, tmpdir, datafiles): # Test making a change using the workspace +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_make_change_in_workspace(cli, tmpdir, datafiles): diff --git a/tests/examples/flatpak-autotools.py b/tests/examples/flatpak-autotools.py index 2d02755fc..32a0dc193 100644 --- a/tests/examples/flatpak-autotools.py +++ b/tests/examples/flatpak-autotools.py @@ -3,7 +3,7 @@ import pytest from tests.testutils import cli_integration as cli from tests.testutils.integration import assert_contains -from tests.testutils.site import IS_LINUX +from tests.testutils.site import IS_LINUX, MACHINE_ARCH pytestmark = pytest.mark.integration @@ -32,6 +32,8 @@ def workaround_setuptools_bug(project): # Test that a build upon flatpak runtime 'works' - we use the autotools sample # amhello project for this. +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_autotools_build(cli, tmpdir, datafiles): @@ -55,6 +57,8 @@ def test_autotools_build(cli, tmpdir, datafiles): # Test running an executable built with autotools +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_autotools_run(cli, tmpdir, datafiles): diff --git a/tests/examples/integration-commands.py b/tests/examples/integration-commands.py index 32ef763eb..19c5df2ef 100644 --- a/tests/examples/integration-commands.py +++ b/tests/examples/integration-commands.py @@ -3,7 +3,7 @@ import pytest from tests.testutils import cli_integration as cli from tests.testutils.integration import assert_contains -from tests.testutils.site import IS_LINUX +from tests.testutils.site import IS_LINUX, MACHINE_ARCH pytestmark = pytest.mark.integration @@ -12,6 +12,8 @@ DATA_DIR = os.path.join( ) +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_integration_commands_build(cli, tmpdir, datafiles): @@ -23,6 +25,8 @@ def test_integration_commands_build(cli, tmpdir, datafiles): # Test running the executable +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_integration_commands_run(cli, tmpdir, datafiles): diff --git a/tests/examples/junctions.py b/tests/examples/junctions.py index d2a653884..9ddb7b7fb 100644 --- a/tests/examples/junctions.py +++ b/tests/examples/junctions.py @@ -3,7 +3,7 @@ import pytest from tests.testutils import cli_integration as cli from tests.testutils.integration import assert_contains -from tests.testutils.site import IS_LINUX +from tests.testutils.site import IS_LINUX, MACHINE_ARCH pytestmark = pytest.mark.integration @@ -13,6 +13,8 @@ DATA_DIR = os.path.join( # Test that the project builds successfully +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_build(cli, tmpdir, datafiles): @@ -23,6 +25,8 @@ def test_build(cli, tmpdir, datafiles): # Test the callHello script works as expected. +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_shell_call_hello(cli, tmpdir, datafiles): diff --git a/tests/examples/running-commands.py b/tests/examples/running-commands.py index 95f645d77..26b53f7ad 100644 --- a/tests/examples/running-commands.py +++ b/tests/examples/running-commands.py @@ -3,7 +3,7 @@ import pytest from tests.testutils import cli_integration as cli from tests.testutils.integration import assert_contains -from tests.testutils.site import IS_LINUX +from tests.testutils.site import IS_LINUX, MACHINE_ARCH pytestmark = pytest.mark.integration @@ -12,6 +12,8 @@ DATA_DIR = os.path.join( ) +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_running_commands_build(cli, tmpdir, datafiles): @@ -23,6 +25,8 @@ def test_running_commands_build(cli, tmpdir, datafiles): # Test running the executable +@pytest.mark.skipif(MACHINE_ARCH != 'x86_64', + reason='Examples are writtent for x86_64') @pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_running_commands_run(cli, tmpdir, datafiles): |