summaryrefslogtreecommitdiff
Commit message (Collapse)AuthorAgeFilesLines
* Fix affected test cases24-better-validation-for-loaded-yamlTristan Maat2017-09-145-4/+23
|
* Add source plugin node validationsTristan Maat2017-09-148-1/+19
|
* Add element plugin node validationsTristan Maat2017-09-147-4/+52
|
* context.py: Add user config node validationsTristan Maat2017-09-141-0/+18
|
* project.py: Add project config node validationsTristan Maat2017-09-141-0/+9
|
* Add element node validationsTristan Maat2017-09-144-0/+31
|
* Add _yaml.validate_nodeTristan Maat2017-09-133-0/+43
|
* tar.py source test case: Stop using tar's private _sha256sum() methodTristan Van Berkom2017-09-121-4/+5
| | | | | That was removed anyway, now use utils.sha256sum() to calculate the expected tar ref.
* source.py: Use utils.sha256sum() when calculating workspace keysTristan Van Berkom2017-09-121-11/+7
|
* patch.py source plugin: Use utils.sha256sum()Tristan Van Berkom2017-09-121-11/+1
|
* tar.py source plugin: Use utils.sha256sum()Tristan Van Berkom2017-09-121-9/+1
|
* local.py source plugin: Use utils.sha256sum()Tristan Van Berkom2017-09-121-10/+6
|
* utils.py: Added sha256sum utilityTristan Van Berkom2017-09-121-0/+21
| | | | | This little bit of code was being repeated a bunch of times already throughout buildstream, looks sane enough to offer a utility.
* Construct pipeline without push queue if cannot push to artifact cacheChandan Singh2017-09-121-8/+9
| | | | | | | | | Currently, if BuildStream is unable to push to the artifact cache for whatever reason, the build will just error out. Fix it so that if we are unable to push to the shared cache, we give a warning to the user and continue building. Fixes https://gitlab.com/BuildStream/buildstream/issues/90
* Generating man pagesTristan Van Berkom2017-09-1016-69/+115
| | | | | Including changes for newly added bst push & pull commands and also some changes to the shell command.
* _sandboxbwrap.py: Make terminal control setting conditional on stdin being a ttytesting-shellTristan Van Berkom2017-09-101-1/+1
| | | | So that interactive sandbox mode can be used in a test or automated scenario.
* _frontend/main.py: Changes to the bst shell commandTristan Van Berkom2017-09-101-22/+23
| | | | | | | | | | | | | | | | | | | | | | | bst shell command is now an optional argument, which defaults to ['sh', '-i']. This allows one to override the command including the shell, so one need not invoke the shell, thus it fixes issue #86. Instead of an option. This means we can pick up a complete command line after the '--' token directly from the remaining argument vector, which makes escaping of things a bit less complicated. E.g.: bst shell --scope run <target.bst> -- sh -c "echo Hello World" Further, the --scope argument is removed in favor of defaulting to the --scope=run behavior, and adding a --build option (use `bst shell --build <target>` for build shells, otherwise juse use `bst shell <target>` for run shells). Finally, the --builddir has been renamed to --sysroot; which a bit more accurately describes what it is.
* element.py: Changed Element._shell() behaviors.Tristan Van Berkom2017-09-101-5/+7
| | | | | | o The command argument is a list, not a string o The default value for the command list is ['sh', '-i'] o The sandbox is always run interactively
* tests/cachekey: Adding cache key tests for new patch sourceTristan Van Berkom2017-09-099-1/+30
|
* Adding new patch source to the docs index.Tristan Van Berkom2017-09-091-0/+1
|
* Add patch source pluginChandan Singh2017-09-0923-7/+341
| | | | Fixes #63
* _yaml.py: Removing unused CompositePolicy.STRICTTristan Van Berkom2017-09-091-14/+2
| | | | | This composite policy is on the way out the door anyway, first lets reduce some unused code though.
* Dockerfile-build.sh: remove DNF cache at the end of the buildSam Thursfield2017-09-091-0/+1
| | | | This saves over 100MB from the resulting image size.
* .gitlab-ci.yml: Also use the .coveragerc when reportingTristan Van Berkom2017-09-081-1/+1
|
* .gitlab-ci.yml: Produce combined coverage reportTristan Van Berkom2017-09-081-4/+43
| | | | | | This report combines the coverage from the integration tests and the pytest suite together into one report so we can see just what parts of the code base we're covering collectively.
* .coveragerc: Configuring so that reports from different environments can be ↵Tristan Van Berkom2017-09-081-7/+11
| | | | combined
* _ostree.py: Removed remove()Tristan Van Berkom2017-09-081-23/+0
| | | | | | | | The remove() API is not used anywhere, it was previously used by ArtifactCache.remove() which itself was unused. If we need it in the future, it will be right here in the history.
* _artifactcache/artifactcache.py: Removed remove()Tristan Van Berkom2017-09-081-16/+0
| | | | | The remove() API is not used anywhere, except for previously being tested.
* Removing artifact cache tests.Tristan Van Berkom2017-09-083-113/+0
| | | | | | | | | | Except for the ArtifactCache.remove() test, all of these assertions are covered by the frontend `push` and `pull` tests. The remove() API itself is unused except for being tested, lets leave this functionality out until it's used. The highlevel tests are easier to write and exercise more of the codebase to assert the right behaviors, so lets only maintain that.
* .coveragerc: Indicate that we use multiprocessingTristan Van Berkom2017-09-061-2/+10
| | | | | | | The coverage reports do not include codepaths reached by forked processes with multiprocessing unless we configure this, now we have a more accurate report (and up from 69% to 73% !)
* doc/source/install.rst: Fixing docs for required OSTree versionTristan Van Berkom2017-09-051-6/+1
| | | | | | | We require a newer version of OSTree now so the old note in the install.rst doesnt make sense anymore. This fixes issue #88
* tests/frontend/buildcheckout.py: Run tests in strict/non-strict modeTristan Van Berkom2017-09-051-9/+21
|
* source-bundle: don't use a subdirectory of {build_root}Charles Bailey2017-09-051-3/+3
| | | | | | | | | | Use {build_root} itself and not a subdirectory of {build_root} for the build area used in the source-bundle generated build scripts. This is consistent with what %{build-root} is expanded to when generating the build scripts. Fixes issue #67
* tests/completions/completions.py: Testing more completion casesTristan Van Berkom2017-09-0510-17/+114
|
* _frontend/complete.py: Fixing completions of subdirectory trees in element ↵Tristan Van Berkom2017-09-051-4/+17
| | | | | | | | | | | subdirs When completing .bst files in subdirectories of an 'element-path', we need to take the element path into consideration when testing the results of os.listdir() for os.path.isdir(). This makes directories behave like directories when completing subdirs of project element paths.
* tests/completions/completions.py: Adding new test for bash completionsTristan Van Berkom2017-09-0510-0/+272
|
* tests/frontend/pull.py: Added test case for testing `bst pull`Tristan Van Berkom2017-09-051-0/+145
|
* tests/frontend/push.py: Adding test for `bst push`Tristan Van Berkom2017-09-051-0/+98
|
* _pipeline.py: Raise pipeline error in pull/pushTristan Van Berkom2017-09-051-2/+2
| | | | | Instead of trying to fire a MessageType.FAIL without an elapsed parameter, and then not returning from the push()/pull() methods.
* frontend test project.conf: Use a more neutral and sensible project nameTristan Van Berkom2017-09-051-1/+1
|
* tests/testutils/runcli.py: Now the cli can set the environment and cwd for a runTristan Van Berkom2017-09-051-7/+40
|
* tests/testutils/runcli.py: Print CLI commands unconditionallyTristan Van Berkom2017-09-051-5/+5
| | | | We want to see them in failed test logs even if they succeeded.
* tests/testutils/runcli.py: Added get_element_key() method to fetch cache keyTristan Van Berkom2017-09-051-0/+13
|
* artifactcache.py: Special casing local pull & pushTristan Van Berkom2017-09-051-4/+18
| | | | | | | | | | It's interesting to keep the local directory push & pull codepaths alive for the sake of testing everything that calls into the artifact cache. For this reason, even when the artifact cache is "offline", it should be possible to pull and push to it if it is a local artifact share.
* tests/testutils/artifactshare.py: Added scaffolding for artifact sharesTristan Van Berkom2017-09-052-0/+107
| | | | | So we can create artifact shares and use them easily in test cases for pushing and pulling artifacts from a share.
* _frontend/main.py: special case test suite for completionsTristan Van Berkom2017-09-051-3/+16
| | | | | | | If we are executing completions in the context of running tests, dont use the fast exit path. Also some docstring fixups for push/pull commands
* _frontend/complete.py: Return whether completions were handled instead of ↵Tristan Van Berkom2017-09-051-34/+6
| | | | | | | | | | exiting Leave that choice to the calling code. Also some additional cleanup. Removed some bits of code borrowed from click but unused in this context, just because it's futzing up the coverage reports.
* setup.{cfg,py}: Bring back BST_TEST_SUITE env variableTristan Van Berkom2017-09-052-0/+3
| | | | Turns out we do need this in some corner cases
* Restructuring tests using the Repo and CliTristan Van Berkom2017-09-046-22/+18
| | | | | | Make all the test batteries which run on all the source backends we have repo scaffoldings for discover the list of Repo implementations automatically.
* tests/frontend/workspace.py: Adding test for `bst workspace` familyTristan Van Berkom2017-09-041-0/+192
|