summaryrefslogtreecommitdiff
path: root/tests/loader/basics.py
Commit message (Collapse)AuthorAgeFilesLines
* Adjust tests to new APITristan Maat2017-11-041-11/+11
|
* Updated test cases for internal API changes stemming from project optionsTristan Van Berkom2017-10-101-6/+7
|
* Updating test cases to construct the project/loader properly again.Tristan Van Berkom2017-10-081-6/+6
| | | | | This had changed when we added project variants and had to split up the loading steps a bit, now all is back to normal without variants.
* Add element node validationsTristan Maat2017-09-141-0/+12
|
* Test Cases: Updated for new Project / Loader API changesTristan Van Berkom2017-07-171-5/+5
|
* Add --host-arch and --target-arch, and 'host-arches' conditionalSam Thursfield2017-07-061-5/+5
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
* pep8 fixes in loader basics test caseTristan Van Berkom2016-12-101-0/+5
|
* Added a ton of tests to test the LoaderTristan Van Berkom2016-11-281-0/+69
o Tests for basic file loading o Tests for include directive functionality o Tests for resolution of arch conditionals o Tests for dependency resolution and detecting circular dependencies o Tests for variants, ensures that we have the correct variant conflict errors and that the correct variants are chosen in the correct cases o Tests for stacks, test that stacks with embedded elements unwrap properly into the concrete dependency tree, test for internal stack circular dependencies, test that arch conditionals and variant conditionals work inside stacks including with embedded elements Lots of tests