summaryrefslogtreecommitdiff
path: root/morphlib/artifact_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* Use the modern way of the GPL copyright header: URL instead real addressJavier Jardón2015-03-161-3/+2
| | | | Change-Id: I992dc0c1d40f563ade56a833162d409b02be90a0
* FIXUP: Fix unit tests after changing to per-source buildsRichard Maw2014-09-191-33/+0
|
* FIXUP: Fix up unit tests from change allowing multiple sourcesRichard Maw2014-09-191-6/+9
| | | | | This is logically part of the previous patch, but has been split out to ease reviewing.
* Be more lenient in Artifact dependency unit testsRichard Maw2014-09-171-4/+6
| | | | | We don't care if add_dependency causes there to be multiple dependents, just that our artifacts are properly included.
* unittests: Make the unittests use morphloaderAdam Coldrick2014-08-141-18/+16
| | | | | This commit removes all use of morph2 from the unittests, replacing it with morphloader/morph3. It also converts the test morphologies to YAML.
* unit tests: Fix invalid morphologiesRichard Maw2014-01-151-2/+2
| | | | | | | | | | | | | | | Later validation work causes the morphologies to be validated, when they weren't previously. This would cause the test suite to not pass, since the morphologies defined in the tests are malformed. One common problem was tests that, instead of a name field, had the name of the morpholgy in a field called "chunk". There were a few cases of new fields being needed, since the tests were written before they became mandatory. The most interesting failure was a Source being created, which instead of being passed a morphology object, was passed a string.
* Add 'prefix' property for chunks within strataSam Thursfield2013-03-131-1/+11
| | | | | | | | | Morph no longer supports setting the prefix using the --prefix argument / setting. This was only used in tests and during bootstrap. If a chunk build-depends on a chunk within a stratum which has a custom prefix, that prefix is appended to the PATH in the build environment.
* Resolve tree SHA1 along with commit SHA1 when resolving refsJannis Pohlmann2012-09-051-1/+1
| | | | Adjust all other parts and the tests to work with this.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-24/+23
| | | | | | | | | This was done with the aid of the pep8 script, available by running `easy_install pep8`. It may be worth making this part of ./check, but that will require putting pep8 into the development tools stratum. This should be easy, given pep8 has no external dependencies.
* Remove BuildGraph, compute cache keys based on Artifacts.Jannis Pohlmann2012-04-181-6/+5
| | | | | | | | | | | | With this commit, the ArtifactResolver no longer computes the cache keys when creating Artifact objects. This will have to happen as a post-resolving step (e.g. prior to building or checking whether a local or remote artifact cache has any of the resolved artifacts). The CacheKeyComputer now takes an Artifact object and computes the cache keys using its dependencies. BuildGraph is no longer needed for the CacheKeyComputer unit tests.
* Merge DependencyResolver into ArtifactResolver.Jannis Pohlmann2012-04-161-0/+25
|
* Add Artifact and LocalArtifactCache classes.Jannis Pohlmann2012-04-111-0/+57
An Artifact represents a thing that morph has built. An example would be eglibc-runtime which morph may have built from the eglibc chunk morphology. Another example would be a ready-to-use system image. The LocalArtifactCache allows to store build artifacts in a local directory. Users of this class can ask it whether it has a certain artifact. They can also optain an I/O handle to read the artifact data from. In addition to just abstracting the way artifacts are stored, LocalArtifactCache also allows to store and retrieve metadata for (a) artifacts and (b) sources (the latter requires a cache key to be provided to the LocalArtifactCache).