summaryrefslogtreecommitdiff
path: root/morphlib/morphology_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Rename morph3 to morphologyAdam Coldrick2014-08-141-0/+48
| | | | | | Instead of leaving morph3 with a potentially confusing name, rename it to `morphology` since it is now the only implementation of the Morphology class.
* Get rid of the old internal morph APIsLars Wirzenius2012-05-021-206/+0
|
* Replace morphology defaults to None test with defaults to manual.Jannis Pohlmann2012-04-021-2/+2
|
* Fix test case for morphology disk-size fieldLars Wirzenius2012-03-151-1/+1
| | | | | We now expect the disk size to be an integer (in bytes), since aren't just passing on to qemu-img (we don't use qemu-img anymore).
* Properly unpack dependencies into the staging area in build-single.Jannis Pohlmann2012-01-311-0/+32
| | | | | | | | | | | | This requires build-single to take a dependency context tuple when building chunks of a stratum. This context tuple is the surrounding stratum which is used to construct the dependency graph in the worker and then do a breadth-first search to collect all dependencies that need to be added to the staging area. Implementing this required a few hash/eq changes in Blob, Morphology and Treeish as well as a few adjustments in the corresponding unit tests.
* Bump copyright years, get rid of long lines and unused imports.Jannis Pohlmann2012-01-231-1/+1
|
* Port everything to using Treeish objects instead of (repo, ref).Jannis Pohlmann2012-01-201-50/+32
| | | | | | | | | | | This affects pretty much every part of morph, so this might not be fully working and stable yet. This commit also introduces the "update-gits" command that can be used to update all cached repositories from the list of base URLs. The tree walk when resolving the Treeish objects in Builder.get_cache_id() is a bit similar to what we do in BuildDependencyGraph, maybe we can merge that one day.
* add test for malformed morphsRichard Maw2012-01-181-0/+10
|
* Introduce the "show-dependencies" command and BuildDependencyGraph.Jannis Pohlmann2012-01-161-0/+10
| | | | | | | | The "show-dependencies" command takes a series of build tuples and dumps the resulting dependency graph (including strata and chunks at the moment) to the standard output. It also dumps the resulting build order which is a list of groups. These groups indicate which chunks and strata can be built in parallel and are not dependent on each other.
* add test_stories attribute to MorphologyLars Wirzenius2011-12-121-0/+5
|
* make --git-base-url add a slash to the end, if missingLars Wirzenius2011-12-011-2/+7
|
* Make sources in strata be a list of dicts, not a dict of dictsLars Wirzenius2011-11-041-11/+13
|
* Add chunks to chunk morphsLars Wirzenius2011-11-031-1/+17
|
* Add build-depends to chunk morphsLars Wirzenius2011-11-031-0/+4
|
* Add a way to specify build systemLars Wirzenius2011-11-011-0/+22
| | | | | This is a short-cut for providing the configure, build, test, and install commands explicitly.
* Make 'repo' in strata sources lists default to name of chunkLars Wirzenius2011-11-011-1/+0
| | | | | | | | | | | | | | | | | | In other words, consider the follow bit of stratum morphology: { "name": "foo", "kind": "stratum", "sources": { "bar": { "repo": "bar", "ref": "baserock" } } } The "repo" field duplicates the name of the key in "sources". This is unnecessary now, so the "repo" field can be removed.
* Fix GPL version sentence grammar.Lars Wirzenius2011-10-061-1/+1
|
* Add disk_size attribute to morphologies.Lars Wirzenius2011-10-051-0/+2
|
* Add description field to morphologies and binary metadata.Lars Wirzenius2011-10-051-0/+2
|
* Remove morphology validation.Lars Wirzenius2011-10-041-316/+12
| | | | | | | The implementation was painful to write, more painful to maintain, and that clashed badly with the need to be able to make changes easily during an exploratory, experimental phase of development. Validation should come back later, when things stabilize.
* Add preliminary support for system morphologies.Lars Wirzenius2011-10-031-0/+14
| | | | | No validation at this time. The current approach to implementing validation is too much work.
* Remove "source" field from chunk morphologies.Lars Wirzenius2011-09-291-53/+0
|
* Initial import.Lars Wirzenius2011-09-291-0/+458