Will Salmon pushed to branch willsalmon/bugfix/CWDnotcreated at BuildStream / buildstream
Commits:
-
9b09ee28
by William Salmon at 2018-09-14T10:40:19Z
2 changed files:
- + tests/integration/project/elements/workspace/workspace-commanddir.bst
- tests/integration/workspace.py
Changes:
| 1 |
+kind: manual
|
|
| 2 |
+description: Workspace mount test
|
|
| 3 |
+ |
|
| 4 |
+depends:
|
|
| 5 |
+ - filename: base.bst
|
|
| 6 |
+ type: build
|
|
| 7 |
+ |
|
| 8 |
+sources:
|
|
| 9 |
+ - kind: local
|
|
| 10 |
+ path: files/workspace-mount-src/
|
|
| 11 |
+ |
|
| 12 |
+variables:
|
|
| 13 |
+ command-subdir: build
|
|
| 14 |
+ |
|
| 15 |
+config:
|
|
| 16 |
+ build-commands:
|
|
| 17 |
+ - cc -c ../hello.c
|
| ... | ... | @@ -31,6 +31,21 @@ def test_workspace_mount(cli, tmpdir, datafiles): |
| 31 | 31 |
|
| 32 | 32 |
assert os.path.exists(os.path.join(cli.directory, 'workspace'))
|
| 33 | 33 |
|
| 34 |
+@pytest.mark.integration
|
|
| 35 |
+@pytest.mark.datafiles(DATA_DIR)
|
|
| 36 |
+def test_workspace_commanddir(cli, tmpdir, datafiles):
|
|
| 37 |
+ project = os.path.join(datafiles.dirname, datafiles.basename)
|
|
| 38 |
+ workspace = os.path.join(cli.directory, 'workspace')
|
|
| 39 |
+ element_name = 'workspace/workspace-commanddir.bst'
|
|
| 40 |
+ |
|
| 41 |
+ res = cli.run(project=project, args=['workspace', 'open', element_name, workspace])
|
|
| 42 |
+ assert res.exit_code == 0
|
|
| 43 |
+ |
|
| 44 |
+ res = cli.run(project=project, args=['build', element_name])
|
|
| 45 |
+ assert res.exit_code == 0
|
|
| 46 |
+ |
|
| 47 |
+ assert os.path.exists(os.path.join(cli.directory, 'workspace'))
|
|
| 48 |
+ assert os.path.exists(os.path.join(cli.directory, 'workspace', 'build'))
|
|
| 34 | 49 |
|
| 35 | 50 |
@pytest.mark.integration
|
| 36 | 51 |
@pytest.mark.datafiles(DATA_DIR)
|
