summaryrefslogtreecommitdiff
path: root/tests.build/setup
Commit message (Collapse)AuthorAgeFilesLines
* Convert last cmdtests to yarnsTiago Gomes2015-12-021-138/+0
| | | | | | | The conversion was made so that the build command was used instead of the build-morphology command. Change-Id: I67c43d765ed603ecdd806bc649815526243b7b87
* Add support for Baserock definitions version 7Sam Thursfield2015-10-141-4/+21
| | | | | | | | | | | | | | | | | | | | | | This adds a new 'Defaults' class to represent definitions defaults The Python 'jsonschema' module is used to validate the contents of the Defaults file. This module is already included in Baserock 'build' and 'devel' reference systems by way of the 'openstack-common' stratum. This commit embeds a copy of the JSON-Schema schema for the DEFAULTS file. I think the canonical location of this schema should be in the reference definitions.git, for now. In future, the schemas should maybe have their own repos. Either way, Morph should embed a copy for the time being so that we are sure the schema matches how Morph expects to parse the file. Morph's automated tests are all updated to use definitions version 7. I removed most of the tests for built-in build systems, because the built-ins themselves are no longer part of Morph. Only the mechanism for defining them needs to be tested now. Change-Id: I65f8f1c967683ef605852bfae5c68518e53f9981
* Remove support for Baserock definitions format versions 3, 4 and 5Sam Thursfield2015-09-181-14/+14
| | | | Change-Id: Iad95af65bd5c528d2e72f5b2ffa80a01152f50ff
* Force test suite to observe morph.conf tempdirMike Williams2015-09-171-0/+1
| | | | | | | | | This change, suggested in story #16, causes the testing suite to use the user-defined tempdir in /etc/morph.conf if it exists or continue using /tmp if not. This will prevent the test suite from filling drives that are not intended to be used for development work. Change-Id: I94edabe4ea1eca7a55ece7424ece7bbd4b68c513
* Remove support for Baserock definitions format versions 0, 1 and 2Sam Thursfield2015-07-231-0/+3
| | | | | | | | | | | The previous release of the Baserock reference systems (baserock-15.25 tag) used Baserock definitions version 3, so this version of Morph can still build the last release of the Baserock reference systems. In the course of fixing up the cmdtest tests to use version 5 definitions, I removed a couple of bits of redundant code. Change-Id: If9d480aa966d2ea5939cf04351f3d488cccea67f
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-3/+2
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* cmdtests: Use YAML not JSON to represent morphologiesAdam Coldrick2014-08-141-36/+22
|
* Use morph print-architecture to generate morphologiesRichard Maw2014-03-141-1/+1
| | | | | uname tends to only give us a valid morph architecture on x86_64, this makes it work on other architectures.
* Don't use repo or ref in test suiteRichard Maw2014-02-131-3/+1
|
* Dropped support for 'system-kind' from system morphology filesDan Firth2013-09-271-1/+0
|
* Dropped support for 'disk-size' from system morphology files'Dan Firth2013-09-271-1/+0
|
* Add 'build-mode' field for chunks in a stratumSam Thursfield2013-03-131-0/+1
| | | | | | | | | | | | | | | | | | | | | | | | | Allowed values: staging: build with a staging chroot (default) test: build with the host's tools bootstrap: build with the host's tools, and do not include this chunk in the final stratum artifact In the past, 'normal mode' has been used to describe building a chunk with the host's tools. We don't want that mode to ever be used, because it is a huge hole in reproducability, but we need to keep it around to avoid making Morph's cmdtest suite depend on Baserock. Hopefully naming it 'test' should discourage potential abusers. It is unfortunate that the build tests now take a separate code path compared to real-world usage of Morph. However, this is necessary to avoid a circular dependency between Morph's test suite and the build-essential stratum in Baserock. We do whole-build testing of Baserock, too, so the 'staging' code path is still tested outside of Morph. However, testing a staging area requires populating it with at minimum a working shell, and this is a bit too complex to go in Morph's test suite.
* tests.build: Don't build individual chunks or strataSam Thursfield2013-02-201-1/+2
| | | | | We can't rely on this being possible any more. It was mostly only used for testing in any case.
* Separate out build tests from general Morph testsSam Thursfield2013-02-201-0/+134