diff options
| author | Thomas Coldrick <thomas.coldrick@codethink.co.uk> | 2019-09-20 10:09:37 +0100 |
|---|---|---|
| committer | Thomas Coldrick <othko97@gmail.com> | 2019-10-15 19:20:00 +0100 |
| commit | c21fdd559356c88465eac352a302284f8495bf7e (patch) | |
| tree | 6ff6f355801d46dbdf996a3540bc81154130510e | |
| parent | 7ed843dabe76f038001a53b8e8e90a5955f82359 (diff) | |
| download | buildstream-c21fdd559356c88465eac352a302284f8495bf7e.tar.gz | |
Remove integration tests for moved plugins
| -rw-r--r-- | tests/integration/cmake.py | 68 | ||||
| -rw-r--r-- | tests/integration/make.py | 52 | ||||
| -rw-r--r-- | tests/integration/project/elements/cmake/cmakeconfroothello.bst | 15 | ||||
| -rw-r--r-- | tests/integration/project/elements/cmake/cmakehello.bst | 10 | ||||
| -rw-r--r-- | tests/integration/project/elements/make/makehello.bst | 10 | ||||
| -rw-r--r-- | tests/integration/project/files/cmakehello.tar.gz | bin | 10240 -> 0 bytes | |||
| -rw-r--r-- | tests/integration/project/files/makehello.tar.gz | bin | 432 -> 0 bytes |
7 files changed, 0 insertions, 155 deletions
diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py deleted file mode 100644 index a0298c2c3..000000000 --- a/tests/integration/cmake.py +++ /dev/null @@ -1,68 +0,0 @@ -# Pylint doesn't play well with fixtures and dependency injection from pytest -# pylint: disable=redefined-outer-name - -import os -import pytest - -from buildstream.testing import cli_integration as cli # pylint: disable=unused-import -from buildstream.testing.integration import assert_contains -from buildstream.testing._utils.site import HAVE_SANDBOX - - -pytestmark = pytest.mark.integration - - -DATA_DIR = os.path.join( - os.path.dirname(os.path.realpath(__file__)), - "project" -) - - -@pytest.mark.datafiles(DATA_DIR) -@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') -def test_cmake_build(cli, datafiles): - project = str(datafiles) - checkout = os.path.join(cli.directory, 'checkout') - element_name = 'cmake/cmakehello.bst' - - result = cli.run(project=project, args=['build', element_name]) - assert result.exit_code == 0 - - result = cli.run(project=project, args=['artifact', 'checkout', element_name, '--directory', checkout]) - assert result.exit_code == 0 - - assert_contains(checkout, ['/usr', '/usr/bin', '/usr/bin/hello']) - - -@pytest.mark.datafiles(DATA_DIR) -@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') -@pytest.mark.xfail(HAVE_SANDBOX == 'buildbox', reason='Not working with BuildBox') -def test_cmake_confroot_build(cli, datafiles): - project = str(datafiles) - checkout = os.path.join(cli.directory, 'checkout') - element_name = 'cmake/cmakeconfroothello.bst' - - result = cli.run(project=project, args=['build', element_name]) - assert result.exit_code == 0 - - result = cli.run(project=project, args=['artifact', 'checkout', element_name, '--directory', checkout]) - assert result.exit_code == 0 - - assert_contains(checkout, ['/usr', '/usr/bin', '/usr/bin/hello']) - - -@pytest.mark.datafiles(DATA_DIR) -@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') -def test_cmake_run(cli, datafiles): - project = str(datafiles) - element_name = 'cmake/cmakehello.bst' - - result = cli.run(project=project, args=['build', element_name]) - assert result.exit_code == 0 - - result = cli.run(project=project, args=['shell', element_name, '/usr/bin/hello']) - assert result.exit_code == 0 - - assert result.output == """Hello World! -This is hello. -""" diff --git a/tests/integration/make.py b/tests/integration/make.py deleted file mode 100644 index 664e7ca7a..000000000 --- a/tests/integration/make.py +++ /dev/null @@ -1,52 +0,0 @@ -# Pylint doesn't play well with fixtures and dependency injection from pytest -# pylint: disable=redefined-outer-name - -import os -import pytest - -from buildstream.testing import cli_integration as cli # pylint: disable=unused-import -from buildstream.testing.integration import assert_contains -from buildstream.testing._utils.site import HAVE_SANDBOX - - -pytestmark = pytest.mark.integration - - -DATA_DIR = os.path.join( - os.path.dirname(os.path.realpath(__file__)), - "project" -) - - -# Test that a make build 'works' - we use the make sample -# makehello project for this. -@pytest.mark.datafiles(DATA_DIR) -@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') -def test_make_build(cli, datafiles): - project = str(datafiles) - checkout = os.path.join(cli.directory, 'checkout') - element_name = 'make/makehello.bst' - - result = cli.run(project=project, args=['build', element_name]) - assert result.exit_code == 0 - - result = cli.run(project=project, args=['artifact', 'checkout', element_name, '--directory', checkout]) - assert result.exit_code == 0 - - assert_contains(checkout, ['/usr', '/usr/bin', - '/usr/bin/hello']) - - -# Test running an executable built with make -@pytest.mark.datafiles(DATA_DIR) -@pytest.mark.skipif(not HAVE_SANDBOX, reason='Only available with a functioning sandbox') -def test_make_run(cli, datafiles): - project = str(datafiles) - element_name = 'make/makehello.bst' - - result = cli.run(project=project, args=['build', element_name]) - assert result.exit_code == 0 - - result = cli.run(project=project, args=['shell', element_name, '/usr/bin/hello']) - assert result.exit_code == 0 - assert result.output == 'Hello, world\n' diff --git a/tests/integration/project/elements/cmake/cmakeconfroothello.bst b/tests/integration/project/elements/cmake/cmakeconfroothello.bst deleted file mode 100644 index cd33dee99..000000000 --- a/tests/integration/project/elements/cmake/cmakeconfroothello.bst +++ /dev/null @@ -1,15 +0,0 @@ -kind: cmake -description: Cmake test - -depends: - - base.bst - -sources: - - kind: tar - directory: Source - url: project_dir:/files/cmakehello.tar.gz - ref: 508266f40dbc5875293bd24c4e50a9eb6b88cbacab742033f7b92f8c087b64e5 - -variables: - conf-root: "%{build-root}/Source" - command-subdir: build diff --git a/tests/integration/project/elements/cmake/cmakehello.bst b/tests/integration/project/elements/cmake/cmakehello.bst deleted file mode 100644 index c5fe496ad..000000000 --- a/tests/integration/project/elements/cmake/cmakehello.bst +++ /dev/null @@ -1,10 +0,0 @@ -kind: cmake -description: Cmake test - -depends: - - base.bst - -sources: - - kind: tar - url: project_dir:/files/cmakehello.tar.gz - ref: 508266f40dbc5875293bd24c4e50a9eb6b88cbacab742033f7b92f8c087b64e5 diff --git a/tests/integration/project/elements/make/makehello.bst b/tests/integration/project/elements/make/makehello.bst deleted file mode 100644 index 4b5c5ac3b..000000000 --- a/tests/integration/project/elements/make/makehello.bst +++ /dev/null @@ -1,10 +0,0 @@ -kind: make -description: make test - -depends: -- base.bst - -sources: -- kind: tar - url: project_dir:/files/makehello.tar.gz - ref: fd342a36503a0a0dd37b81ddb4d2b78bd398d912d813339e0de44a6b6c393b8e diff --git a/tests/integration/project/files/cmakehello.tar.gz b/tests/integration/project/files/cmakehello.tar.gz Binary files differdeleted file mode 100644 index 54d950575..000000000 --- a/tests/integration/project/files/cmakehello.tar.gz +++ /dev/null diff --git a/tests/integration/project/files/makehello.tar.gz b/tests/integration/project/files/makehello.tar.gz Binary files differdeleted file mode 100644 index d0edcb29c..000000000 --- a/tests/integration/project/files/makehello.tar.gz +++ /dev/null |
