diff options
-rw-r--r-- | tests/integration/cmake.py | 16 |
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): |