diff options
author | Jürg Billeter <j@bitron.ch> | 2018-05-11 17:47:57 +0200 |
---|---|---|
committer | Jürg Billeter <j@bitron.ch> | 2018-07-17 07:56:40 +0200 |
commit | 05a1a25d2afc752fc718ade68f4232c6cf33d79b (patch) | |
tree | a16ee9d2b17bd0fa1b35e31e22f962db5bc7186f /tests | |
parent | d0346e89bcd64439f714fccaf555ddd2c738e4bc (diff) | |
download | buildstream-05a1a25d2afc752fc718ade68f4232c6cf33d79b.tar.gz |
tests: Test push/pull on all platforms
Diffstat (limited to 'tests')
-rw-r--r-- | tests/artifactcache/junctions.py | 2 | ||||
-rw-r--r-- | tests/frontend/pull.py | 7 | ||||
-rw-r--r-- | tests/frontend/push.py | 4 |
3 files changed, 0 insertions, 13 deletions
diff --git a/tests/artifactcache/junctions.py b/tests/artifactcache/junctions.py index 3fcea9705..378d007a0 100644 --- a/tests/artifactcache/junctions.py +++ b/tests/artifactcache/junctions.py @@ -2,7 +2,6 @@ import os import shutil import pytest from tests.testutils import cli, create_artifact_share -from tests.testutils.site import IS_LINUX from buildstream import _yaml @@ -37,7 +36,6 @@ def project_set_artifacts(project, url): _yaml.dump(_yaml.node_sanitize(project_config), filename=project_conf_file) -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull(cli, tmpdir, datafiles): project = os.path.join(str(datafiles), 'foo') diff --git a/tests/frontend/pull.py b/tests/frontend/pull.py index 78c1f9cc2..a41c3498a 100644 --- a/tests/frontend/pull.py +++ b/tests/frontend/pull.py @@ -2,7 +2,6 @@ import os import shutil import pytest from tests.testutils import cli, create_artifact_share -from tests.testutils.site import IS_LINUX from . import generate_junction @@ -42,7 +41,6 @@ def assert_not_shared(cli, share, project, element_name): # * `bst build` pushes all build elements to configured 'push' cache # * `bst pull --deps all` downloads everything from cache after local deletion # -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull_all(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) @@ -86,7 +84,6 @@ def test_push_pull_all(cli, tmpdir, datafiles): # * `bst build` pushes all build elements ONLY to configured 'push' cache # * `bst pull` finds artifacts that are available only in the secondary cache # -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_pull_secondary_cache(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) @@ -128,7 +125,6 @@ def test_pull_secondary_cache(cli, tmpdir, datafiles): # * `bst push --remote` pushes to the given remote, not one from the config # * `bst pull --remote` pulls from the given remote # -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull_specific_remote(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) @@ -178,7 +174,6 @@ def test_push_pull_specific_remote(cli, tmpdir, datafiles): # # * In non-strict mode, dependency changes don't block artifact reuse # -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull_non_strict(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) @@ -230,7 +225,6 @@ def test_push_pull_non_strict(cli, tmpdir, datafiles): # Regression test for https://gitlab.com/BuildStream/buildstream/issues/202 -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull_track_non_strict(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) @@ -274,7 +268,6 @@ def test_push_pull_track_non_strict(cli, tmpdir, datafiles): assert set(result.get_pulled_elements()) == all_elements -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_pull_cross_junction(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) diff --git a/tests/frontend/push.py b/tests/frontend/push.py index e7379807c..a39233ba1 100644 --- a/tests/frontend/push.py +++ b/tests/frontend/push.py @@ -3,7 +3,6 @@ import pytest from buildstream._exceptions import ErrorDomain from tests.testutils import cli, create_artifact_share, create_element_size -from tests.testutils.site import IS_LINUX from . import configure_project, generate_junction @@ -43,7 +42,6 @@ def assert_not_shared(cli, share, project, element_name): # * `bst push` fails if there are no remotes configured for pushing # * `bst push` successfully pushes to any remote that is configured for pushing # -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push(cli, tmpdir, datafiles): project = str(datafiles) @@ -101,7 +99,6 @@ def test_push(cli, tmpdir, datafiles): # Tests that `bst push --deps all` pushes all dependencies of the given element. # -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_all(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) @@ -151,7 +148,6 @@ def test_push_all(cli, tmpdir, datafiles): # Tests that `bst build` won't push artifacts to the cache it just pulled from. # # Regression test for https://gitlab.com/BuildStream/buildstream/issues/233. -@pytest.mark.skipif(not IS_LINUX, reason='Only available on linux') @pytest.mark.datafiles(DATA_DIR) def test_push_after_pull(cli, tmpdir, datafiles): project = os.path.join(datafiles.dirname, datafiles.basename) |