summaryrefslogtreecommitdiff
path: root/yarns/implementations.yarn
Commit message (Collapse)AuthorAgeFilesLines
* Make `morph list-artifacts` work from definitions checkoutPedro Alvarez2016-05-171-2/+4
| | | | Change-Id: I711953b829c786911c46e413d2b7af3427b7ba26
* Make `morph cross-bootstrap` work from definitions checkoutPedro Alvarez2016-05-171-2/+2
| | | | Change-Id: I9ae5a846e20c0d32047a3d4fd5892e2f632f0cbe
* Add support for definitions version 8Pedro Alvarez2016-03-291-1/+55
| | | | | | | | | This code is a rework from changes done by: - Tiago Gomes <tiago.gomes@codethink.co.uk> https://storyboard.baserock.org/#!/story/86 Change-Id: I3475c2bcb648a272fee33bc878a521f79d4e6581
* Adapt integration test to definitions version 7Tiago Gomes2016-03-251-0/+4
| | | | | | | | With version 7, less dependencies are shown as the DEFAULTS file used for testing has a reduced set of artifact splitting rules, compared with the built-in split rules. Change-Id: I1e9d5390126bad007d39729faabf83cfb60a5092
* Fix some test failuresSam Thursfield2016-03-031-1/+1
| | | | | | These seem to have been introduced by commit fb6dd955cbc7081f47dc4391. Change-Id: I2fb0be5f8829722264f3509f4db9473d19ea2939
* Warning when different names in strata/chunksPedro Alvarez2016-02-251-1/+1
| | | | | | | | | Now is an warning when the name of a chunk in a stratum is different from the name of the chunk in the chunk file. Example of the warning message: WARNING: Name 'binutils' doesn't match 'binutils-foo' in morphology: strata/build-essential/binutils.morph Change-Id: I38f0ccff57fc25db12c572fdc8a01dbd6434f01c
* Convert last cmdtests to yarnsTiago Gomes2015-12-021-10/+139
| | | | | | | The conversion was made so that the build command was used instead of the build-morphology command. Change-Id: I67c43d765ed603ecdd806bc649815526243b7b87
* Fix displaying the help for extensionsTiago Gomes2015-11-261-1/+1
| | | | | | Also, add integration tests to prevent regressions. Change-Id: I80421112382168a71ca69e4bafe3c3a174e7f9ef
* Tests: rename git repositoryTiago Gomes2015-11-251-52/+52
| | | | | | | Rename the git repository where the morphologies used for testing are kept, from morphs to definitions. Change-Id: Icd5fa6609ddec3993dd4c772cd916359843ef500
* Rename an IMPLEMENTS that mentions system branchTiago Gomes2015-11-251-1/+1
| | | | Change-Id: I185377090ba837805b492f8dd1b31360843e9548
* Remove unused IMPLEMENTSTiago Gomes2015-11-251-95/+0
| | | | Change-Id: I853d5c3f7be920835694f390838870634b16b147
* yarns: remove unused morph status implementationsRichard Ipsum2015-11-221-43/+0
| | | | Change-Id: Ie190d444346448f928a1bb6aaf0863f2fd4521b8
* yarns: drop use of workspaceRichard Ipsum2015-11-221-117/+93
| | | | | | | This should help clear the way for the eventual removal of deprecated workspace code and related commands: morph checkout etc Change-Id: I66298c4f9f790848962bd70ab434bef96cf96cb9
* yarns: Remove unused edit implementationsRichard Ipsum2015-11-211-28/+0
| | | | | | These must have been missed when we removed the edit command. Change-Id: Ia0eca7eab50dec34f2e02193d3ff676b0e78b33c
* Add support for Baserock definitions version 7Sam Thursfield2015-10-141-2/+32
| | | | | | | | | | | | | | | | | | | | | | 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 some unused Yarn IMPLEMENTS linesSam Thursfield2015-10-071-55/+0
| | | | | | | | Some tests were removed in commit f4d3cbaf1d6e5c3bdbb1b2e2 but it seems there are still code remnants that we don't need any more. There may be more -- I haven't done a thorough job of this. Change-Id: I0d7151402365f9e6f23a93a1d30df0198de9ef02
* Make anchor yarn use defsrepo instead of workspaceRichard Ipsum2015-09-171-0/+14
| | | | Change-Id: Icec7e948c60decefe5a8bab6141bc89603c265b7
* Force test suite to observe morph.conf tempdirMike Williams2015-09-171-2/+2
| | | | | | | | | 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
* Add support for Baserock definitions version 6Sam Thursfield2015-07-291-1/+2
| | | | Change-Id: I891d1b13ed0581b293fe6b09b3cc73af8fd81d67
* Remove support for Baserock definitions format versions 0, 1 and 2Sam Thursfield2015-07-231-0/+2
| | | | | | | | | | | 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
* yarns: Fix typo in cross-bootstrap yarnAdam Coldrick2015-05-201-2/+2
| | | | Change-Id: I8e5726cd1c16b7ef3c614e647f3ccfe50bf80ffe
* yarns: Add a test for `morph list-artifacts`Adam Coldrick2015-05-201-0/+6
| | | | Change-Id: I7c993aee22f8438c28566acce01c524d9b315951
* yarns: Add a test for `morph certify`Adam Coldrick2015-05-201-0/+6
| | | | Change-Id: Iee611887c54f8b8b67504ae2ba0cd78be703e455
* yarns: Add a test for `morph generate-manifest-csv`Adam Coldrick2015-05-201-1/+10
| | | | Change-Id: I54d1a03ba37f7589783f41c02482c0ac1821508d
* yarns: Add the ability to tag chunks and commit updates to definitionsRichard Maw2015-05-111-0/+18
| | | | Change-Id: Ia644ddfaa5138f0ad459099cf26f51b545a9f9ca
* yarns: Fix incorrect chunk name in test suiteAdam Coldrick2015-05-111-1/+1
| | | | Change-Id: I60e808d7f42890dac2e1470a994e1a31a92401e7
* yarns: Fix typo in system branch creation yarnRichard Maw2015-04-291-1/+1
| | | | Change-Id: I1df58c33987597d4aa5a8eb241b4de4ac72fe250
* yarns: Have non-bogus trove configRichard Maw2015-04-291-7/+9
| | | | Change-Id: I5dec13df6c28eeb4e8c83ec41fb4bd119e2eebb1
* Add a test for partial deploymentAdam Coldrick2015-04-301-1/+32
| | | | Change-Id: Iaab620f3d9ebc037fe024db933b03e8f40ca40a4
* Add a CSV manifest generator.Adam Coldrick2015-04-301-1/+1
| | | | | | | | | | | | | | | | This adds a `morph generate-manifest-csv` command which creates a CSV manifest for a system containing license information, upstream URL and a guess at the version of each component in a system. The existing `morph generate-manifest` is also renamed to `morph generate-manifest-genivi` to improve the distinction between the two commands which generate a manifest. The basis of this commit was done by Michael Drake <michael.drake@codethink.co.uk>. Change-Id: I712de11eaa6e1564c5bae5f5f396e5e77484972f
* Add a test for `morph get-repo`Adam Coldrick2015-04-271-0/+37
| | | | Change-Id: Ie0ac708946c3b1d65d2022638c02d6a2d288ad9d
* Add a test for partial buildsAdam Coldrick2015-04-021-0/+6
| | | | Change-Id: Ibc95fe1d78c8d68dd20a4d2187f93f363369dfec
* yarns: Remove test for `morph foreach`Sam Thursfield2015-03-111-10/+0
| | | | | | | | | | This test fails with latest Busybox. Since we plan on removing workspaces anyway, I don't see a reason to fix it. The `morph foreach` command does actually still work as expected. Morph's ./check test suite now passes again in a 'build' reference system built from commit 88eface4c72dab689bc409c77e209833a0acd038 or newer.
* Convert the empty-stratum test into a yarnAdam Coldrick2015-02-181-0/+26
| | | | | | | We will use MorphologyLoader.load_from_file() to load morphologies from a temporary file, so the output will be unpredictable. That will break this test, so we may as well convert it into a yarn to fix it.
* Quote variables and use = instead of ==Richard Ipsum2015-01-231-3/+3
|
* Add yarns to test deploying with relative pathsRichard Ipsum2015-01-231-6/+31
|
* Add yarns to test building with relative pathsRichard Ipsum2015-01-231-0/+8
|
* Update tests to work with modified build commandsRichard Ipsum2015-01-231-6/+6
| | | | | | | Existing tests generally request something like morph build systems/foo-system.morph, now that the system arg is treated relative to the working directory we must change into the directory that contains the morphs to run morph build systems/foo-system.morph
* yarns: Report stderr on morph failureRichard Maw2014-11-121-1/+2
|
* yarns: Add yarns for system-integrationsRichard Maw2014-10-241-0/+8
| | | | | These were previously completely untested, so their unsafe mounting wasn't noticed, but now both are fixed.
* Allow distbuilds to choose where to put logsRichard Maw2014-10-081-0/+2
|
* Only attempt to run distbuild yarns if possibleRichard Maw2014-10-081-0/+3
| | | | | | | | | You need both bottle and flup for this to work, and it would wait forever for a cache-server that is never going to start unless you have bottle and flup. So we now check whether the cache server is functional before attempting distbuild tests.
* Test that morph can handle binary garbage output in buildsRichard Maw2014-10-081-1/+11
|
* Add distbuilding yarnRichard Maw2014-10-021-7/+139
| | | | Deploying after distbuild currently broken
* Move architecture existing test to yarnRichard Maw2014-10-011-0/+19
|
* Move the branch-from-image test to a yarnRichard Maw2014-10-011-0/+4
|
* Modify yarns to use test-shell instead of build-mode: testRichard Maw2014-10-011-146/+155
| | | | | When all the tests that use build-mode: test are gone, the build mode can be removed.
* Add `morph upgrade` command, deprecate `morph deploy --upgrade`Sam Thursfield2014-09-011-1/+1
| | | | | | The arguments to `morph deploy` can get quite long, any way we can make it shorter and clearer is useful. We can also avoid having the strange --no-upgrade flag in future.
* yarns: Use a more realistic simulation of a git serverbaserock/richardmaw/yarn-git-daemonRichard Maw2014-08-281-1/+23
| | | | | | | | | | | Previously we would use file: URIs to point to the git repositories. This was fast and simple, but had the drawback that it bypassed all the git cache logic, so changes to the git cache weren't adequately covered by the test suite. Now we spool up a simulated git server per scenario, and shut it down at the end.
* yarns: Use run_morph for pushing branchesRichard Maw2014-08-281-1/+2
| | | | We're using the wrong morph if we don't use run_morph