summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* tests/examples/developing.py: Add tests for workspaces walkthroughphil/437-workspaces-tutorialPhil Dawson2018-08-011-0/+91
|
* testutils/patch.py: Add methods for applying and removing patchesPhil Dawson2018-08-011-0/+21
|
* tests: Add tests for cached behavioursRichard Maw2018-07-311-0/+160
|
* tests/examples/junctions.py: Add tests for junctions walkthroughphil/437-junction-tutorialPhil Dawson2018-07-301-0/+84
| | | | This is part of the work towards issue #437.
* tests: Add mirrored fetching and tracking testsJonathan Maw2018-07-272-0/+487
|
* testutils: Add a helper to copy a testutils repoJonathan Maw2018-07-271-1/+20
| | | | | | | | This is helpful if you want to test what happens when you have one repo that has diverged from another. By copying the repo you're sure they start with shared history. This is especially useful when mirroring.
* Set default mirror via command-line or user configJonathan Maw2018-07-271-0/+1
| | | | | | | In user config (buildstream.conf), it is set with the "default-mirror" field. On the command-line, it is set with "--default-mirror"
* tests/sources: deb, tar and zip all test for retry behaviourJosh Smith2018-07-273-3/+6
| | | | | | This is following 5d6418a06a3a0262df5f6b9e6e1a36578515fd4a where DownloadableFileSource was modified to raise 'temporary' errors when relating to file downloading.
* Provide explicit reason for SourceError exception on pathEd Baunton2018-07-261-1/+1
| | | | When the user provides a path for the filename parameter, provide a reason
* Add remote source pluginEd Baunton2018-07-2513-0/+179
| | | | | | | | Add a plugin that supports downloading files verbatim from a source with an optional overridable filename and destination directory. Bumps bst format version to 10. Fixes #163
* _stream.py: Added functionality for workspace open -fPhillip Smyth2018-07-251-0/+52
| | | | tests/frontend/workspace.py: Added tests
* tests/frontend/show.py: Add test case for maximum recursion depth being exceededPhil Dawson2018-07-251-2/+58
| | | | | | | Add test to ensure gracefull handling of exception thrown while loading a pipeline due the python's max recursion depth being exceeded. This is part of the work for issue #203
* Adding caching build treesPhillip Smyth2018-07-2325-25/+25
| | | | | buildstream/element.py: Adding build tree to cache buildstream/_versions.py: Bumping BST_CORE_ARTIFACT_VERSION
* Add support for creating a tarball on bst checkouttiagogomes/tarball_checkoutTiago Gomes2018-07-201-1/+108
| | | | | | | | One of the tests added is configured to be skipped for now, as dumping binary data is causing a bad descriptor exception when using the pytest capture module. Closes #263.
* tests/artifactcache/expiry.py: Add expiry testsTristan Maat2018-07-182-0/+278
|
* tests/frontend/buildcheckout.py: Added tests for "Add a `--deps` flag to ↵add_flag_to_checkoutPhillip Smyth2018-07-171-0/+36
| | | | `bst checkout`"
* Remove tar artifact cacheJürg Billeter2018-07-171-82/+0
| | | | No longer used.
* tests/integration/workspace.py: Test incremental build on all platformsJürg Billeter2018-07-171-1/+0
|
* tests/frontend/pull.py: Add pull test for missing blobs on the serverJürg Billeter2018-07-171-0/+42
|
* tests/frontend/push.py: Remove xfail mark from LRU cache testJürg Billeter2018-07-171-4/+0
| | | | The CAS server now supports LRU.
* tests: Test push/pull on all platformsJürg Billeter2018-07-173-13/+0
|
* tests/cachekey: Update expected cache keys after switch to CASJürg Billeter2018-07-1725-25/+25
|
* tests/testutils/artifactshare.py: Use CAS artifact serverJürg Billeter2018-07-171-28/+48
|
* _platform: Use CAS artifact cacheJürg Billeter2018-07-171-6/+1
|
* tests/frontend/push.py: Use ArtifactShare statvfs mockingJürg Billeter2018-07-171-29/+9
| | | | | This makes it unnecessary to update the free space in the mock object in the middle of tests.
* tests/testutils/artifactshare.py: Add support for statvfs mockingJürg Billeter2018-07-171-3/+28
|
* tests: Use context manager for ArtifactShareJürg Billeter2018-07-174-469/+487
|
* tests: Fix filter tests not checking whether files should be missing.Jonathan Maw2018-07-165-0/+72
| | | | | They weren't actually catching it if you checked-out the entire depended element, instead of just the specified split domains
* Move _list_dir_contents to __init__.pyMove-_list_dir_contents-to-__init__425-add-a-deps-flag-to-bst-checkoutPhillip Smyth2018-07-114-52/+36
|
* tests/frontend/push.py: Add missing skip annotation for non-Linux468-source-bundle-except-argument-is-ignoredJürg Billeter2018-07-091-0/+1
|
* tests: Remove unneeded ArtifactShare.update_summary() methodJürg Billeter2018-07-094-40/+0
| | | | The OSTree summary file is no longer used.
* Provide better error message on missing commandsTiago Gomes2018-07-023-0/+21
| | | | | | | Before running a command in the sandbox, check its existence and fail early if it does not. This fixes issue #289.
* Add error message when running commands on directoriesFrancisco Redondo Marchena2018-06-281-0/+12
| | | | Issue #446
* doc: Adding part 4 of the getting started tutorial: integration commandsTristan Van Berkom2018-06-251-0/+36
| | | | | This new section talks about how integration commands work and shows them at work.
* doc: Adding part 3 of the getting started tutorial: autotools elementTristan Van Berkom2018-06-182-0/+47
| | | | | | | | | This part of the tutorial uses a lot of the work from Phil Dawson and James Ennis, and uses their example submitted on merge request 499 as a basis to introduce the user to yaml composition and variable resolution. This is a part of issue #103
* doc: Adding part 2 of the getting started tutorialTristan Van Berkom2018-06-171-0/+36
| | | | | | | | | | | | | o doc/examples/running-commands: New example project of a `manual` build element o doc/sessions/running-commands.run: New session file to capture bst output o doc/source/sessions-stored: Added new generated sessions o doc/source/tutorial/running-commands.rst: New tutorial entry describing how commands are run in the sandbox o tests/examples/running-commands.py: Test case validating the tutorial's assertions
* doc: Adding part 1 of the getting started tutorialTristan Van Berkom2018-06-161-0/+29
| | | | | | | | | | | | | | | | | | | | | o doc/Makefile: Added new directory to collect rst files from o doc/examples/first-project: Added the "first-project" example project. o doc/source/sessions/first-project-*.html: Added the generated snippets o doc/source/using_tutorial.rst: Added the new main tutorial page o doc/source/tutorial/first-project.rst: Added part 1 of the tutorial here o tests/examples/first-project.py: Added test for the example project This is largely based on an example by Javier Jardón, which was submitted at https://gitlab.com/BuildStream/buildstream/merge_requests/323 Fixes #103
* Allow tracking dependencies within sub-projects.Valentin David2018-06-082-0/+199
| | | | | | | --track-cross-junctions now concerns crossing junctions rather than forbidding elements in sub-project to be tracked. Part of #359.
* Handle cross junction elements in workspaces.Valentin David2018-06-081-0/+117
| | | | | | | | | | | Workspaces are now index by colon separated junction path. This now allows to create workspaces for elements in external projects. Workspaces are owned by context instead of root project. However it is initialized once top-level project is registered as we need to resolve paths relatively to this top-level project. Part of #359.
* Interpret names as colon separated junction path in loader.Valentin David2018-06-086-4/+199
| | | | | | 'a.bst:b.bst' gets interpreted as 'b.bst' from junction 'a.bst'. Part of #359.
* pushreceive.py: Ensure huge artifacts are not pushedJames Ennis2018-06-071-1/+0
|
* push.py: Add tests to test remote cache expiryJames Ennis2018-06-071-1/+184
| | | | | | | | The tests include a new environment variable: BST_CACHE_QUOTA. This variable is used in receive_main() in pushreceive.py. Test names: test_artifact_expires, test_large_artifact_is_not_cached_remotely test_recently_pulled_artifact_does_not_expire: marked as xfail until we implement LRU expiry in remote share
* element_generators.py: Add a utility function to create arbitrary size elementsJames Ennis2018-06-072-0/+41
| | | | | | New file consisting of functions that allow us to generate elements on the fly __init__.py now includes create_element_size()
* tests/completions: Added test case for custom `bst help` completionsTristan Van Berkom2018-06-071-0/+13
|
* Implement bst helpEd Baunton2018-06-071-0/+1
|
* _frontend/cli.py: Try to autocomplete element paths when running from a ↵Chandan Singh2018-06-061-4/+7
| | | | | | | | subdirectory The previous commit added support for running bst commands form subdirectories of the project root. Make autocomplete also work in a similar way.
* _project.py: Allow running bst commands from subdirectories of project rootChandan Singh2018-06-064-0/+21
| | | | | | | | When initializing the project, BuildStream will continue searching for project.conf in parent directories in case it is not found in the current directory. Fixes #368.
* Add a kind for MakeEd Baunton2018-06-063-0/+57
|
* Add test to verify cleanup behaviour after bwrapGökçen Nurlu2018-06-054-0/+51
| | | | | | This adds `sandbox-bwrap/test-cleanup.bst` to test the cleanup behaviour in `sandbox/_sandboxbwrap.py`: There already exists a non-empty `/tmp` folder and BuildStream should not try to remove it after a command is executed with bwrap.
* tests/context/context.py: Test setting XDG_CACHE_HOMETristan Maat2018-06-051-0/+17
|