summaryrefslogtreecommitdiff
path: root/tests/sources/tar.py
Commit message (Collapse)AuthorAgeFilesLines
* Expose basic api for testing external plugins.phil/plugin-testing-apiPhil Dawson2019-02-081-1/+1
| | | | | | | | | | | | | | | | | | We want external plugins to be able to make use of the core testing utils. This commit exposes the basic utilities which are currently in use in bst-external plugins. If necessary, more utilities could be exposed in the future. Moves the following files from tests/testutils/ to buildstream/plugintestingutils/: o runcli.py o integration.py As part of this, this commit makes the following changes to runcli.py and integration.py: o runcli.py: Fix linting errors o runcli.py: Add user facing documentation o Integration.py: Add user facing documentation
* Mark 'old' checkout command as obsoleteJames Ennis2019-01-221-6/+6
| | | | | | | | | | | This commit marks 'bst checkout' as a 'hidden' command. If used, the user will be prompted to use the new 'bst artifact checkout' command. All tests which used 'bst checkout' have been modified to use the new artifact sub-command. This partially solves #822.
* tests/sources/tar.py: Test that we don't crash when HOME is unsetTristan Van Berkom2018-12-261-0/+16
| | | | | This happens when the netrc module is searching for a ~/.netrc file and it doesnt find any HOME set.
* Introduce new "source" command groupChandan Singh2018-12-141-18/+18
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | Following the message thread https://mail.gnome.org/archives/buildstream-list/2018-November/msg00106.html, implement a new command group called `source`. Move existing `track`, `fetch`, and the recently added `source-checkout` commands under this group. For `track` and `fetch`, this is a BREAKING change, as the old commands have been marked as obsolete. Using them will result in an error message that refers people to use the new versions, like `bst source fetch` instead of old `bst fetch`. `source-checkout` will now become `source checkout` (the dash has turned into a space), and is not a breaking change as it was added in the current development cycle. Note that the functionality to hide commands from help output was added only recently in Click, so the minimum version of Click that we now require is 7.0. Summary of changes: * _frontend/cli.py: Add `source` command group, mark previous versions as obsolete and hide them from the help output. * _frontend/complete.py: Fix completion for hidden commands. * setup.py: Bump Click minimum version to 7.0. * tests: Update to cope with the new command names. Fixes #814.
* Add support for .netrc in remote/tar/zip pluginsValentin David2018-11-291-0/+86
| | | | Fixes #723.
* tests: Modify tests to ensure retry FAILUREJosh Smith2018-08-311-1/+1
|
* tar.py: Add test for a tarball containing a read-only dirjmac/tempfile-extraction-bugJames Ennis2018-08-241-0/+45
|
* tests/sources: deb, tar and zip all test for retry behaviourJosh Smith2018-07-271-1/+2
| | | | | | This is following 5d6418a06a3a0262df5f6b9e6e1a36578515fd4a where DownloadableFileSource was modified to raise 'temporary' errors when relating to file downloading.
* Move _list_dir_contents to __init__.pyMove-_list_dir_contents-to-__init__425-add-a-deps-flag-to-bst-checkoutPhillip Smyth2018-07-111-20/+11
|
* _stream.py: Add StreamError exceptionTristan Van Berkom2018-05-081-2/+2
| | | | Use Stream error for Stream errors.
* tests/sources: Use new error checking tools for source testsTristan Van Berkom2018-01-011-28/+26
| | | | | | Also added a test case for the `patch` plugin which checks for graceful failure when the specified patch file is not a regular file (but a block device or a named pipe instead).
* Adapting test cases to expect logs in stderrTristan Van Berkom2017-12-131-1/+1
| | | | And also adapted them to remove any occurrences of HAVE_ROOT.
* Remove unused imports in test filesGökçen Nurlu2017-12-071-1/+1
|
* Add a test for tar lzipValentin David2017-11-301-0/+46
|
* tests/sources/tar.py: Test for tarballs containing linksTristan Van Berkom2017-11-171-0/+36
| | | | This reproduces issue #155
* tests/sources/tar.py: Converted tar test to use the CLI and enhancedTristan Van Berkom2017-11-031-98/+122
| | | | | | Now test to also ensure that base-dir expressions always behave the same way regardless of whether the tarball was created with a leading '.' or not.
* 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.
* Added/fixed tar source tests.Tristan Van Berkom2017-05-141-2/+24
| | | | | | | | | Fixed original staging test to expect the content of the first encountered subdirectory to be extracted/staged. Added additional test to override the base-dir configuration with an empty string and instead extract the root of the tarball directly.
* Add tests for the tar sourceJonathan Maw2017-04-131-0/+140