summaryrefslogtreecommitdiff
path: root/tests.as-root
Commit message (Collapse)AuthorAgeFilesLines
* cmdtests: Use YAML not JSON to represent morphologiesAdam Coldrick2014-08-146-165/+96
|
* cmdtests: Change the error messages to be detectedAdam Coldrick2014-08-142-2/+2
|
* Remove petrify and unpetrify commandsRichard Maw2014-08-121-45/+0
| | | | | | | We don't use this any more, and instead prefer to always keep definitions.git petrified, and update the refs ourselves. branch-from-image still uses some of the remaining petrify code.
* Fix tests for new `morph edit` syntaxPaul Sherwood2014-06-091-1/+0
|
* Allow run-in-artifact cmdtest to pass on x86_32Richard Maw2014-03-142-2/+1
| | | | | | | | This hard-coded the expected artifact key, which is dependent on architecture. Since we don't care about the output, so much as it failing, let's just discard it.
* Use morph print-architecture to generate morphologiesRichard Maw2014-03-146-7/+7
| | | | | uname tends to only give us a valid morph architecture on x86_64, this makes it work on other architectures.
* Revert "tests: Allow running ./check on 32-bit x86"Richard Maw2014-03-147-8/+8
| | | | | | | | | This reverts commit f366960273b026322f7e7cc3c1eb0cd632ebc73e. These changes break building on x86_64, which is our main development platform. Better patches will be forthcoming later.
* tests: Allow running ./check on 32-bit x86Richard Maw2014-03-147-9/+9
| | | | | | | | uname will return the same string morph expects as an architecture on x86_64, but the canonical x86_32 architecture names match i?86 instead. To make it work on 32-bit, we replace calls to uname with morph print-architecture, which does the translation for us.
* Fix paths for chunk directories in cmdtestsLars Wirzenius2014-03-069-30/+30
|
* Don't create a blank /etc/fstabSam Thursfield2014-03-041-1/+0
| | | | | | | | This messes up the baserock-system-config-sync tool. Systemd does not require /etc/fstab to exist in any case. I have bumped the 'system-compatibility-version' field in this commit to trigger rebuilding all system artifacts.
* Don't use repo or ref in test suiteRichard Maw2014-02-135-35/+5
|
* cache-key: Fix obscure cache key collisionRichard Maw2014-01-221-1/+1
| | | | | | | | | | | | | | | | | | | | If two systems with the same name (e.g. different repo/ref) depend on the same strata, then it will collide with systems which depend on different artifacts from that stratum, but the same number of artifacts. For example, if you checkout an existing branch and change the artifacts used by one of its strata, then your local changes won't be built. This is because the 'kids' field lists artifacts it depends on by their cache-key, which is now no longer sufficient to uniquely identify artifacts. The same number of artifacts issue is from it listing cache keys multiple times. The fix for this is to include the artifact name, so the 'kids' field is now a list of dicts, with artifact name and cache key. This is a dict rather than a tuple so that the generated /baserock metadata is more readable.
* cmdtests: Take into account new constructed artifactsRichard Maw2014-01-167-25/+61
|
* CacheKeyComputer: Include split rules in computationRichard Maw2014-01-161-1/+1
| | | | | | | | | | | | Chunk artifacts need the [(artifact_name, [regular_expression])] so that if the default split rules change, or the blending rule changes, then an extra version field doesn't need to be added to the cache key computer. This is for future plans to allow the split rules to be configurable and allow us to more easily change them. System and Stratum artifact computations don't need this, since those splitting rules are already expressed in the dependencies information.
* Merge remote-tracking branch 'origin/danielfirth/RT189'Lars Wirzenius2013-10-087-14/+1
|\ | | | | | | Changed the error (exception) to list all obsolete fields.
| * Dropped support for 'system-kind' from system morphology filesDan Firth2013-09-276-9/+0
| |
| * Dropped support for 'disk-size' from system morphology files'Dan Firth2013-09-273-5/+1
| |
* | B&M: refactor branch-from-imageRichard Maw2013-09-251-2/+1
|/ | | | | | | | | | | | This changes the interface of branch-from-image to only take 1 parameter, the name of the new system branch, as the root repository is loaded from the metadata. This was also what the previous version of branch-from-image did, but that silently ignored the parameter. Given there are not many users of branch-from-image, I felt it was a reasonable change.
* Revert "Merge branch 'liw/restore-old-cmds'"Richard Maw2013-08-292-2/+2
| | | | | | | | | | | | | | | This reverts commit 2dc382a2a9ae977b1158002cd2631ec5593959c1, reversing changes made to 89a019af088ff62459699a6efdadf8ac8fe35dd9. We decided to restore the old commands for the release, as we weren't confident the new implementations were correct yet. To gain that confidence we need to use them, so the old versions are no longer available, and the new edit code is used when the edit subcommand is invoked. Doing so also requires the test suite to use the edit command instead of new-edit.
* Use new edit instead of old one in testsLars Wirzenius2013-08-192-2/+2
| | | | | | | The test suite got adapted so it requires the new edit instead of the old one. So use the new edit instead of the old one in the test. This is a kluge, and needs to be reverted after the BR10 release.
* Disable tests broken by "morph edit"Lars Wirzenius2013-08-149-1/+54
| | | | | | | | | | | | | | To the best of my ability to understand the old "morph build" code, these tests fail with this error: Conflicting versions of stratum 'hello-stratum' appear in the build. because of how the old "morph build" code creates temporary build refs, and gets them wrong. I believe the new "morph edit" is correct, but have not been able to find out what the root problem in "morph build" is, because the code is beyond my ability to understand it within two hours. Since I have a deadline for "morph edit", I reluctantly disable these tests, temporarily, rather than back out of all "morph edit" changes.
* Fix test suite to patch YAML instead of JSONLars Wirzenius2013-08-141-14/+14
| | | | | | | | | | | | | I shouldn't be doing this in the middle of refactoring, but trying to get the new code to emit exactly the right kind of JSON is too much pain, and these tests need to be rewritten to use YAML in the near future anyway (we'll drop JSON support eventually), so I don't want to spend more time on this than necessary. The changes in this commit convert morphologies in JSON to YAML, and fix test code that modifies the morphologies to work with the YAML. There is probably more JSON lurking about.
* Remove "morph make-patch" since it doesn't workLars Wirzenius2013-07-052-98/+0
| | | | | | In addition, when we start using tbdiff for upgrades, all of this will need to be re-designed and re-implemented anyway. The current plugin is dead code. Note that the test suite had already been disabled.
* Add pushing to placate new petrify codeLars Wirzenius2013-07-031-0/+2
| | | | | The petrify code needs the branches to be on the git server for it to work, so we push things.
* Update tests in line with changes to os-releaseJonathan Maw2013-07-022-2/+6
|
* Fix the expected hash key value in the ↵Richard Dale2013-05-281-1/+1
| | | | run-in-artifact-with-different-artifacts test
* Fix run-in-artifact testLars Wirzenius2013-04-231-1/+1
| | | | | Previously, we were building a disk image, and that had a factory sub-volume, but now we're building a rootfs tarball instead, and that doesn't have a factory.
* Disable make-patch test, since make-patch is brokenLars Wirzenius2013-04-232-7/+6
| | | | | | make-patch needs to be changed to work with rootfs-tarball systems, instead of disk images. This is not happening any time soon, so disable the test for now.
* Fix tests to use rootfs-tarball system-kinds, instead of disksLars Wirzenius2013-04-232-3/+3
|
* Fix long linesSam Thursfield2013-03-181-1/+2
|
* Merge branch ↵Jonathan Maw2013-03-151-1/+1
|\ | | | | | | | | | | 'baserock/richardholland/add-metadata-dir-setting-to-branch-from-image' Reviewed-by: Jonathan Maw <jonathan.maw@codethink.co.uk>
| * Changed test script to agree with changes made to branch-from-imageRic Holland2013-03-141-1/+1
| |
* | Merge branch 'samthursfield/arch'Sam Thursfield2013-03-151-1/+1
|\ \ | | | | | | | | | Reviewed-By: concensus
| * | Change hardcoded cache key in testSam Thursfield2013-03-151-1/+1
| | |
* | | Merge branch 'samthursfield/build-essential-2-rebase'Sam Thursfield2013-03-154-2/+10
|\ \ \ | |/ / | | | | | | | | | | | | | | | Conflicts: morphlib/bins_tests.py Reviewed-By: consensus
| * | Add 'build-mode' field for chunks in a stratumSam Thursfield2013-03-134-1/+10
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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.
| * | Remove features used by old bootstrap methodSam Thursfield2013-03-131-1/+0
| | | | | | | | | | | | | | | | | | That means that bootstrapping Baserock is currently not possible with this branch of Morph, but there's no reason it cannot be bootstrapped using an older version of Morph instead.
| * | Change test to also verify that artifact is not compressedLars Wirzenius2013-03-132-0/+8
| | |
* | | Merge branch 'liw/simplify-system-kind'Sam Thursfield2013-03-1310-287/+0
|\ \ \ | |_|/ |/| |
| * | Remove tests for non-rootfs-tarball system-kindsLars Wirzenius2013-03-1210-287/+0
| |/ | | | | | | This will speed up the test suite a little bit.
* | Change test to also verify that artifact is not compressedLars Wirzenius2013-03-112-0/+8
|/
* Add image inspection pluginJannis Pohlmann2013-02-216-0/+99
| | | | | | | | | | | | This adds a `run-in-artifact` command which allows another command to be run in a system. There is also a `content-manifest` command which gives a manifest of the artifacts, which commits they were built from, and if possible, a version. This adds a morphlib.bins.call_in_artifact_directory() method to run a command inside an artifact and to generate a manifest.
* Merge branch 'baserock/richardmaw/fix-edit-build-depends'Sam Thursfield2013-02-135-3/+51
|\
| * Amend tests to trigger failure to recursively update strataRichard Maw2013-02-135-3/+51
| |
* | Add a black-box test for branch-from-imageRichard Maw2013-02-113-0/+59
| | | | | | | | | | | | | | The test builds a system, makes a commit to mainline, then branches from the system and checks whether it is petrified to the exact commits that the system was built from by checking the morphology contents and rebuilding the system.
* | Add a regression test for metadata including repo aliasRichard Maw2013-02-112-0/+97
|/
* Merge branch 'jjardon/yaml-v2'Sam Thursfield2013-01-285-96/+64
|\
| * Change build tests to use YAML morphologiesJavier Jardón2013-01-285-96/+64
| |
* | Merge remote-tracking branch 'origin/baserock/richardmaw/morph-version'Lars Wirzenius2013-01-282-0/+100
|\ \
| * | Add regression test for metadata including versionRichard Maw2013-01-282-0/+100
| |/