summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorWilliam Salmon <will.salmon@codethink.co.uk>2018-10-10 11:41:05 +0100
committerWilliam Salmon <will.salmon@codethink.co.uk>2018-10-10 11:41:05 +0100
commit44bba470efff0f19feebe2355c4d08631b4ed825 (patch)
tree6ffd33c550eae96594e505abc5797a139ff3aab9
parentf2017d0463b79ee7eb2c6c2867985de87d9512c0 (diff)
downloadbuildstream-willsalmon/simpleOutSource.tar.gz
-rw-r--r--tests/integration/cmake.py16
1 files changed, 16 insertions, 0 deletions
diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py
index 3c16b29b9..6ab83b7af 100644
--- a/tests/integration/cmake.py
+++ b/tests/integration/cmake.py
@@ -31,6 +31,22 @@ def test_cmake_build(cli, tmpdir, datafiles):
'/usr/lib/debug/usr/bin',
'/usr/lib/debug/usr/bin/hello'])
+@pytest.mark.datafiles(DATA_DIR)
+def test_cmake_confroot_build(cli, tmpdir, datafiles):
+ project = os.path.join(datafiles.dirname, datafiles.basename)
+ 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=['checkout', element_name, checkout])
+ assert result.exit_code == 0
+
+ assert_contains(checkout, ['/usr', '/usr/bin', '/usr/bin/hello',
+ '/usr/lib/debug', '/usr/lib/debug/usr',
+ '/usr/lib/debug/usr/bin',
+ '/usr/lib/debug/usr/bin/hello'])
@pytest.mark.datafiles(DATA_DIR)
def test_cmake_run(cli, tmpdir, datafiles):