summaryrefslogtreecommitdiff
path: root/morphlib/source_tests.py
Commit message (Collapse)AuthorAgeFilesLines
* FIXUP: Fix up unit tests from change allowing multiple sourcesRichard Maw2014-09-191-6/+5
| | | | | This is logically part of the previous patch, but has been split out to ease reviewing.
* unittests: Make the unittests use morphloaderAdam Coldrick2014-08-141-6/+5
| | | | | This commit removes all use of morph2 from the unittests, replacing it with morphloader/morph3. It also converts the test morphologies to YAML.
* Resolve tree SHA1 along with commit SHA1 when resolving refsJannis Pohlmann2012-09-051-4/+5
| | | | Adjust all other parts and the tests to work with this.
* python scripts: pep8ize codebaseRichard Maw2012-08-011-14/+13
| | | | | | | | | 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 dead code (dependencies in Source objects)Lars Wirzenius2012-06-181-22/+0
|
* Add a repo_name to Source, use that instead of repo in most places.Jannis Pohlmann2012-04-181-9/+12
| | | | | | | | | | This is because we will need to integrate a RemoteRepoCache and we don't always want to create a CachedRepo object (in fact, we only want that for the sources of artifacts we actually need to build). So we'll use either the local or the remote repo cache to resolve refs and morphology texts and then later, when actually caching a repo, we'll set the source.repo member to a CachedRepo object that we can then use to unpack the sources.
* Add original_ref member to Source. Default to None for build-depends.Jannis Pohlmann2012-04-111-4/+10
| | | | | | | | | We will almost always want to look up sources based on the data we find in morphologies (e.g. chunk sources found in a stratum or strata found in a system). For that we need to remember the original_ref in addition to the resolved SHA1 and look up sources using this original ref. The original ref is therefore also used as part of the hash key in SourcePool now.
* Add SourcePool class and make Source store its morphology filenameLars Wirzenius2012-04-101-2/+6
|
* Add a Source classLars Wirzenius2012-04-101-0/+70
This will eventually replace the Blob class we are currently using. It is somewhat simpler, because the envisioned usage of Source will be different from Blob: we'll be rewriting the build ordering class, and the builder classes, in ways that simplify things, and thus a simpler Source class will hopefully suffice.