summaryrefslogtreecommitdiff
path: root/tests/context
Commit message (Collapse)AuthorAgeFilesLines
* Refactor: Move context.py -> _context.pyTristan Van Berkom2017-11-081-1/+1
| | | | | | | | | | Consequently: o Changed Plugin.get_context() to a private Plugin._get_context() accessor. o Updated anything which imports Context to do so from private _context module o Updated docs to exclude the now private Context
* Refactoring: Move exceptions module to be privateTristan Van Berkom2017-11-061-1/+1
| | | | Hide all of buildstream's internal exceptions from the API surface.
* Updating all test cases for the removal of architecture conditionals and optionsTristan Van Berkom2017-11-061-2/+1
|
* Updated test cases for internal API changes stemming from project optionsTristan Van Berkom2017-10-101-1/+1
|
* Fix tests for other platformsTristan Maat2017-09-281-0/+4
|
* Add --host-arch and --target-arch, and 'host-arches' conditionalSam Thursfield2017-07-061-1/+1
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | This command adds initial cross-compilation support to BuildStream. It has been tested against a converted version of the Baserock compiler bootstrap and used to cross build sysroots for armv8l64 and ppc64l from an x86_64 host. For example, to build a sysroot for ARM v8 64-bit you can do this: bst build --target-arch=armv8b64 gnu-toolchain/stage2.bst This would cause the adapted Baserock definitions to produce a stage1 simple cross compiler that runs on the native architecture and produces armv8b64 binaries, and then cross build a stage2 sysroot that executes on armv8b64. Currently the --host-arch option does nothing of use. It will one day enable host-incompatible builds using a QEMU-powered cross sandbox. The `--arch=` option is now shorthand for `--host-arch= --target-arch=`. Elements have 2 new variables available, %{bst-host-arch} and %{bst-target-arch}. The 'arches' conditional now follows %{bst-target-arch}, while the new 'host-arches' conditional follows %{bst-host-arch}. All of --arch, --host-arch and --target-arch default to the output of `uname -a`. There's no magic here that would make all BuildStream elements suddenly able to cross compile. It is up to an individual element to support this by honouring %{bst-target-arch} in whatever way makes sense.
* tests/context/context.py: Ignore real config filesSam Thursfield2017-06-221-1/+1
| | | | | | | | For the test to work on all systems, we need to make sure that the user's real config file in ~/.cache/buildstream.conf is ignored. I was seeing test failures here because I have overridden the default cache locations in my buildstream.conf file.
* Fixed test cases for xdg dependency removalTristan Van Berkom2017-03-211-8/+15
|
* Adapted test cases to new Context changesTristan Van Berkom2017-03-201-9/+8
|
* context.py: expand ~ in pathsJürg Billeter2016-12-151-10/+10
|
* context test case: Fixed misleading comment in test caseTristan Van Berkom2016-12-131-2/+1
|
* pep8 fixes in context test caseTristan Van Berkom2016-12-101-2/+9
|
* Updating context tests now that we've changed to use the _yaml moduleTristan Van Berkom2016-11-283-1/+25
|
* Updated context test case to expect LoadErrorTristan Van Berkom2016-11-151-4/+4
|
* Rename InvocationContext -> ContextTristan Van Berkom2016-11-141-8/+8
| | | | | It's a bit big and wordy, looks like it makes sense to just call it "Context".
* Added context test for bad yaml contentTristan Van Berkom2016-11-142-0/+13
| | | | | Not malformed yaml, but if the yaml returns something that is not a dict then we can't use it.
* InvocationContext test: Test failure mode with malformed yamlTristan Van Berkom2016-11-142-0/+16
|
* Added InvocationContext test, test failure mode of missing config fileTristan Van Berkom2016-11-141-0/+17
|
* Added test that user config file values override builtin defaultsTristan Van Berkom2016-11-142-0/+21
|
* Added test case for InvocationContextTristan Van Berkom2016-11-141-0/+39
Test that it works