summaryrefslogtreecommitdiff
path: root/tests/sandboxes
Commit message (Collapse)AuthorAgeFilesLines
* Store Platform reference in Context instance variableJürg Billeter2019-07-172-10/+0
| | | | | This allows us to remove the platform reset helpers in tests/conftest.py.
* tests: Change all calls to _yaml.dump to _yaml.rountrip_dumpBenjamin Schubert2019-07-154-8/+8
| | | | | Now that both are equivalent, we can skip the sanitization part before the yaml call.
* test for BST_FORCE_SANDBOX and BST_FORCE_BACKENDwillsalmon/platformRefactorWilliam Salmon2019-07-127-0/+231
|
* Refactor of Platform and SandboxWilliam Salmon2019-07-121-2/+6
|
* test:utils/site: Consolidate IS_LINUX/WSL/Windows in a single siteBenjamin Schubert2019-06-061-1/+1
| | | | | | | | We currently have two sites file containing redundant information. - tests/testutils/site.py: Remove IS_{LINUX,WSL,WINDOWS} - rest: Change imports to import those from buildstream/tests/_utils/site.py
* tests/sandboxes: Enable pylint and fix problemsBenjamin Schubert2019-06-054-6/+15
| | | | | tests/sandboxes was missing an __init__.py, which meant pylint was never run there.
* plugintestutils: Rename 'plugintestutils' package to 'testing'phil/rename-plugintestutilsPhil Dawson2019-04-163-3/+3
| | | | | | | | | - Rename plugintestutils to testing. - Don't run the tests from bst-plugins-template. This imports buildstream.plugintestutils so will have to be disabled to get through CI. This can be re nabled once bst-plugins-template has been patched.
* tests: str(datafiles) instead of a longer thingAngelos Evripiotis2019-03-212-3/+3
| | | | | | | | | | | | | | | | | | | Replace some popular copypasta. This important-looking invocation: os.path.join(datafiles.dirname, datafiles.basename) is equivalent to this shorter invocation: project = str(datafiles) It seems like it's very popular copypasta, replace it with the shorter one thus: # Use 'gsed' or 'sed' etc. as appropriate for your system. git config --global alias.sub '!f() { git grep --name-only --null "$1" | gxargs --null gsed --in-place --expression "s/$1/$2/g" ; }; f' git sub 'os.path.join(datafiles.dirname, datafiles.basename)' 'str(datafiles)'
* tests: Remove unused importsremove-dead-codeBenjamin Schubert2019-03-011-1/+0
|
* tests: Remove unused parameters in functionsBenjamin Schubert2019-03-011-1/+1
| | | | | For parameters that are required as part of an API, prefix them by "_" to make it clear they are unused
* tests: Remove unused variablesBenjamin Schubert2019-03-011-1/+1
|
* Expose basic api for testing external plugins.phil/plugin-testing-apiPhil Dawson2019-02-083-3/+3
| | | | | | | | | | | | | | | | | | 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
* Move push and pull to the new artifact subcommand groupJames Ennis2019-01-221-2/+2
| | | | | This commit also ensures that if we try to use the 'old' commands, BuildStream will fail and instruct the user to use the new command.
* tests: Migrate storage test to the internals directoryTristan Van Berkom2019-01-164-59/+0
|
* _cas: Rename artifactcache folder and move that to a root moduleRaoul Hidalgo Charman2019-01-161-1/+1
| | | | | | | | | Other components will start to reply on cas modules, and not the artifact cache modules so it should be organized to reflect this. All relevant imports have been changed. Part #802
* tests/sandboxes/remote-exec-config.py: New test.Jim MacArthur2018-11-274-0/+102
| | | | | Tests that we get a sensible error message when we specify incomplete or wrong information in the configuration for remote execution.
* CasBasedDirectory: Change constructor to take a CASCache instead of a ContextRichard Maw2018-11-191-4/+3
| | | | | The Context was only used to obtain a reference to the CASCache and set the unused cas_directory field.
* Test that helpful messages are raised when missing dependenciesBenjamin Schubert2018-11-084-0/+95
| | | | | This adds a `reason` to the SandboxEror thrown in sandboxdummy to be able to understand where the error comes from
* Add basic storage test 'storage-test.py'jmac/cas_virtual_directoryJim MacArthur2018-08-154-0/+60
|
* 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.
* tests/sandboxes/mounting/mount_simple.py: Changed to test new Mounter objectsandbox-mounts-refactorTristan Van Berkom2017-11-061-3/+3
|
* mount_simple.py: Add mount testsTristan Maat2017-09-281-0/+52