summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
...
* tests/artifactcache: Add pull unit-testsjmac/remote_execution_clientMartin Blanchard2018-09-071-0/+320
| | | | https://gitlab.com/BuildStream/buildstream/issues/454
* tests/artifactcache: Add push unit-testsMartin Blanchard2018-09-072-0/+330
| | | | https://gitlab.com/BuildStream/buildstream/issues/454
* tests/artifactcache: Add a simple test projectMartin Blanchard2018-09-077-0/+48
| | | | https://gitlab.com/BuildStream/buildstream/issues/454
* tests/sources/git.py: Add tests for REF_NOT_IN_TRACKtpollard/483Tom Pollard2018-09-031-0/+68
| | | | | Add tests that cover assert_ref_in_track & the configurable CoreWarnings REF_NOT_IN_TRACK warnings token.
* source.py: Added `primary` argument to URL marking APIsTristan Van Berkom2018-09-021-3/+15
| | | | | | | | | | | | | The Source must now mention whether the marked or translated URL is "primary" or not. Even when a Source may have multiple URLs, the auxilliary URLs are derived from the primary one, not only is this true for git, but it is mandated by our tracking API which assumes there is a primary URL. This adjusts the `git` source and the test `fetch_source.py` source to behave properly and advertize it's primary URL properly. This is a part of #620
* tests: Modify tests to ensure retry FAILUREJosh Smith2018-08-313-3/+3
|
* Replacing string 'bzr' with value from host toolsbzr_fixknownexus2018-08-301-5/+7
|
* Report processing errors from trackingValentin David2018-08-301-0/+34
| | | | | | Failures to write files when tracking were not reported. Fixes #533.
* tests/frontend/mirror.py: Reenable test_mirror_fetch_upstream_absent[ostree]tristan/538-reenable-ostree-testTristan Van Berkom2018-08-301-4/+0
| | | | | This test was skipped because of issue #538, but #538 was fixed and the test was still not reenabled.
* tests/plugins/filter.py: Don't run redundant testsTristan Van Berkom2018-08-301-15/+10
| | | | | | | | | There is no reason that the filter element codepaths can behave differently depending on the Source implementation used in the test, as the Source implementation does not have any filter specific virtual methods. Removing the redundant tests and just performing these tests with the git source.
* Add tests for cyclic variables checkJosh Smith2018-08-294-2/+40
| | | | | Note: This modifies the docker containers used for testing to supply the pytest-timeout package.
* Add tests that not-found objects in cache are shown as SKIPPEDbschubert/log-missed-cacheBenjamin Schubert2018-08-291-0/+19
|
* Fix E305 warningsJavier Jardón2018-08-283-0/+3
|
* tests/frontend/workspaces.py: Removing some redundant testsTristan Van Berkom2018-08-281-4/+4
| | | | | Removed redundant tests from recently merged !740, this new test does not need to run for every different source kind.
* tests/frontend/workspace.py: Add test for workspaced dependenciesValentin David2018-08-281-0/+70
| | | | This adds a regression test for #461.
* tar.py: Add test for a tarball containing a read-only dirjmac/tempfile-extraction-bugJames Ennis2018-08-241-0/+45
|
* tar tests: Add tarball which contains a read-only dirJames Ennis2018-08-242-0/+6
|
* tests/integration/project: Use the same alias for the alpine tarballTristan Van Berkom2018-08-242-2/+2
| | | | | | | | This makes the integration tests use the same 'alpine' alias for the tests as we use in the examples, this avoids a redundant download of an extra alpine tarball in integration tests. This is a part of #603
* tests/integration/source-determinism.py: Use cli_integration.valentindavid/cli_integration_source_determinismValentin David2018-08-242-7/+14
|
* Remove artifact extracts when artifact expires in cacheValentin David2018-08-231-0/+35
| | | | Fixes #561
* Improve error message for deleted open workspacesValentin David2018-08-231-0/+13
| | | | Fixes #576.
* Don't strip pathname from debug symbol filesSam Thursfield2018-08-229-14/+30
| | | | | | | | | | | | | When GDB looks for debug symbols it looks for the full path of the file inside the configured debug-file-directory. For example, if the debug-file-directory is set to a default of /usr/lib/debug, and you are debugging /usr/bin/python3, GDB will look for its debug symbols at this location: /usr/lib/debug/usr/bin/python3. BuildStream has been putting all debug files inside /usr/lib/debug under their $(basename), so in the above example GDB would fail to find any debug symbols for /usr/bin/python3 because they would be in the incorrect locatoin of /usr/lib/debug/python3.
* Add tests that cache size worksJonathan Maw2018-08-201-0/+62
|
* Fix get_cache_size to store it in the ArtifactCache, not the contextJonathan Maw2018-08-201-1/+2
|
* Add Error to git and ostree sources configureWilliam Salmon2018-08-174-17/+83
| | | | | | | | | Raise a error at configure time if the track and ref properties are not present in the sources. This is to address https://gitlab.com/BuildStream/buildstream/issues/471 that documented unhelpful behaviour when tracking git sources. However the issue was also identified in ostree.
* Trying to mitigate a mtime granularity braking the cache testswillsalmon/CacheExpiryTestWilliam Salmon2018-08-165-3/+133
| | | | | This patch mitigates the granularity of the mtimes used on the default gitlab runners, Allowing the test suite to pass on these runners.
* Fix ostree repository mirroringValentin David2018-08-161-4/+0
| | | | | | | | | | | Ostree mirrors were not sharing the same local repository, so it was impossible the request refs from the right local repository when data was fetched from a mirror rather than upstream. Instead of having several repository with one remote each, we now have one repository with several remotes. This fixes #538.
* Add pip source pluginChandan Singh2018-08-1518-1/+211
| | | | | | | | | | | `pip` source plugin can stage python packages that are either specified directly in the element definition or picked up from `requirements.txt` from previous sources. In order to support the latter use-case (which is also the primary motivation for this plugin), this plugin requires access to previous sources and hence is an example of a Source Transform source. Also, bump `BST_FORMAT_VERSION` as this patch adds a new core plugin.
* Allow source plugins to access previous sourcesChandan Singh2018-08-155-0/+151
| | | | | | | | | | | | | Source plugin implementations can now specify that they need access to previously staged sources by specifying `BST_REQUIRES_PREVIOUS_SOURCES_TRACK` and/or `BST_REQUIRES_PREVIOUS_SOURCES_FETCH`, corresponding to access at `track` and `fetch` times respectively. Fixes #381. Replaces !505. For relevant discussion, see this discussion: https://gitlab.com/BuildStream/buildstream/merge_requests/505#note_83780747
* Add basic storage test 'storage-test.py'jmac/cas_virtual_directoryJim MacArthur2018-08-154-0/+60
|
* tests: Add tests for configurable warningsJosh Smith2018-08-159-2/+201
| | | | | | | | This adds multiple tests for custom plugin warnings and core warnings, providing checks for both cases which should cause warnings and errors when configured as fatal. Also adds tests for cache key calculations.
* _project.py: Add fatal-warnings configuration itemJosh Smith2018-08-1528-37/+44
| | | | | | | | | | | | | | | | | | | | This allows for users to configure fatal-warnings to be either a list of warnings. This commit deprecates the use of fail-on-overlap within project.conf, this will now use the fatal-warnings configuration item. element.py: Cache key calculation now takes into account all of the fatal-warnings tests: This modifys the tests/frontend/overlaps.py tests to support the new fatal-warnings configuration. Backwards compatibility is also tested for `fail-on-overlap` _versions.py: BST_FORMAT_VERSION bumped to 15 for fatal-warnings BST_CORE_ARTIFACT_VERSION bumpted to 5 for fatal-warnings Fixes: #526
* Test we can discovered submodules on fallback mirrored git repositoriesValentin David2018-08-141-0/+96
|
* Test git mirroring fallback on submodules when main repo is not mirrored.Valentin David2018-08-141-0/+97
|
* tests: Add a test of the git source with submodulesJonathan Maw2018-08-143-0/+80
|
* tests: Test that fetching passes when upstream is absentJonathan Maw2018-08-141-0/+61
|
* tests/frontend/mirror.py: Re-enable a test for gitValentin David2018-08-141-4/+0
|
* tests: Add tests for loading builddeps and runtime depsJonathan Maw2018-08-148-4/+78
|
* Fix tracking of junctions used in project.conf.Valentin David2018-08-131-0/+22
| | | | | | | | | | | | | | Stream._load() now returns early without resolving build pipeline when only tracking. Resolving track pipelines does not require to fully load project configurations when when elements to track are only junctions. However build pipelines require to fully load project configurations. This might not be possible in the case a project configuration includes a file from a junction that yet needs to be tracked. Fixes #565.
* remote source: Add cachekey testChandan Singh2018-08-136-1/+18
| | | | | Add cachekey tests for the recently added `remote` source plugin to ensure that future changes do not break API compatibility.
* Bump BST_CORE_ARTIFACT_VERSION for deterministic source pluginsValentin David2018-08-1225-25/+25
|
* Add some integration tests for source plugin determinism.Valentin David2018-08-121-0/+155
|
* Implementing relative workspacesrelative_workspacesPhillip Smyth2018-08-101-11/+52
| | | | | | | This fixes #191 A note has been added to NEWS explaining backwards compatibility issues
* Add warning to git track if track and ref are not presentWilliam Salmon2018-08-071-0/+42
| | | | | This is to address https://gitlab.com/BuildStream/buildstream/issues/471 that documented unhelpfull behavour when tracking git sources.
* remote.py: Add support for marking downloaded files executableEd Baunton2018-08-072-2/+43
| | | | | | | | | | Add an optional flag to make files executable after having downloaded them. Instead of leaving the permissioning of downloaded file in remote.py up to the user's umask; expressly set permissions to 0644 or 0755 if executable. Bump format version to 13.
* Add support for include '(@)' in project.conf and .bst filesValentin David2018-08-0251-3/+878
| | | | Fixes #331.
* Refactor plugin factory creationValentin David2018-08-022-18/+20
|
* Make Project owner of Loader.Valentin David2018-08-021-1/+1
|
* Pass targets to Loader.load() instead of its constructor.Valentin David2018-08-023-35/+36
| | | | | This is required to be able to build a Loader before the list of targets is known.
* Move tests.frontend.generate_junction to test.testutilsValentin David2018-08-0210-48/+49
|