You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@buildstream.apache.org by ro...@apache.org on 2020/12/29 13:29:14 UTC

[buildstream] 09/09: quick test test

This is an automated email from the ASF dual-hosted git repository.

root pushed a commit to branch willsalmon/simpleOutSource
in repository https://gitbox.apache.org/repos/asf/buildstream.git

commit 44bba470efff0f19feebe2355c4d08631b4ed825
Author: William Salmon <wi...@codethink.co.uk>
AuthorDate: Wed Oct 10 11:41:05 2018 +0100

    quick test test
---
 tests/integration/cmake.py | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)

diff --git a/tests/integration/cmake.py b/tests/integration/cmake.py
index 3c16b29..6ab83b7 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):