summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* yarns: Add regression test for cache-key clashRichard Maw2014-01-221-0/+18
|
* yarns: Move system artifact inclusion implementationRichard Maw2014-01-221-1/+28
| | | | | | This moves the GIVEN system $system uses $artifacts from $source to the generic implements section, and the Python implementation into the edit-morph helper script.
* tests: Run style check before slower testsRichard Maw2013-11-211-0/+63
| | | | | | | | | | It turns out that only the check-copyright-year script was exiting properly, but it was not doing the deferred exit that other tests were doing. Other tests would set errors=1, then later check the result and exit if it's non-zero, however the errors variable was set in a sub-shell, since it was on the right-hand side of a pipe.
* Merge remote-tracking branch 'origin/danielfirth/RT189'Lars Wirzenius2013-10-081-2/+0
|\ | | | | | | Changed the error (exception) to list all obsolete fields.
| * Dropped support for 'system-kind' from system morphology filesDan Firth2013-09-271-1/+0
| |
| * Dropped support for 'disk-size' from system morphology files'Dan Firth2013-09-271-1/+0
| |
* | Move helper script to scripts for use in cmdtestsRichard Maw2013-09-261-0/+18
|/
* Merge branch 'liw/b-and-m-yarns'Lars Wirzenius2013-07-311-0/+74
|\ | | | | | | | | Briefly reviewed by Jonathan Maw and Tiago Gomes, but all responsibility is mine.
| * Remove commented out debug statementsLars Wirzenius2013-07-311-2/+0
| | | | | | | | Reported-by: Jonathan Maw
| * Add scenario (yarn) tests for most of branching and mergingLars Wirzenius2013-07-301-0/+76
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | These scenarios test the basics of most of the subcommands the branch and merge plugin provides. They don't purport to be complete, but give some indication that things work, and form a basis upon which further things can be built. Yarn also isn't included in a Baserock release yet, so we need to keep the cmdtests until Baserock 10 has been released. The existing cmdtest tests are not modified by this: they are left intact, until they can analysed in detail for things to be added to the scenarios. After that, the cmdtest tests will start to go away. Merging is not covered by these tests: it is not clear how merge should work, and the current code is known to do the wrong thing in many cases. Scenarios for merge will be added later. Building is also not covered. Testing builds well needs some additional, careful thinking, and that isn't ready for this patch series. It will be added later.
* | Fix copyright yearLars Wirzenius2013-07-311-1/+1
| |
* | Add a script to check every .gitmodules file in a system branchJonathan Maw2013-07-251-0/+121
|/
* Fix scripts/test-morph to pass min space options alwaysLars Wirzenius2013-06-171-0/+1
| | | | | It was misisng one case, making the test suite fail on computers with suitable amounts of free space in the right filesystem.
* tests: disable the cache and tempdir space checksRichard Maw2013-06-051-1/+2
| | | | | | | | The size checks are irrelevant for most tests, since they tend to produce tiny systems. This still leaves the size checks themselves untested, however doing so is arguably a system-wide test.
* Fix tests to use rootfs-tarball system-kinds, instead of disksLars Wirzenius2013-04-231-1/+1
|
* Replace spaces with tabsLars Wirzenius2013-03-201-2/+2
|
* Merge remote-tracking branch 'origin/jonathan/copy-artifacts-plugin'Lars Wirzenius2013-03-201-67/+0
|\
| * Remove obsolete scriptJonathan Maw2013-03-141-67/+0
| |
* | check now uses git config file in morph/scriptsRic Holland2013-03-201-0/+3
| | | | | | | | | | To remove need of configuring git to check new system .gitconfig file added to morph/scripts and check set to use this file.
* | Add 'build-mode' field for chunks in a stratumSam Thursfield2013-03-131-1/+2
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | 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 old bootstrap mechanismsSam Thursfield2013-03-132-614/+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.
* Remove TAB character (and break line better)Lars Wirzenius2013-03-111-2/+2
|
* Merge branch 'jonathan/update-find-artifacts' of ↵Richard Maw2013-03-081-76/+20
|\ | | | | | | | | | | | | ssh://trove.baserock.org/baserock/baserock/morph into staging This included a fixup for the copyright years and the call to call_in_artifact_directory being a shade too long.
| * Update find-artifacts script to use call_in_artifact_directoryJonathan Maw2013-03-081-75/+18
| |
* | Fix scripts/edit-morph to work correctlySam Thursfield2013-03-051-12/+10
|/
* Merge branch 'samthursfield/edit-morph' of ↵Richard Maw2013-02-211-0/+205
|\ | | | | | | | | | | | | git://git.baserock.org/baserock/baserock/morph This merge includes modifying edit-morph to use self.output.write instead of print for output.
| * scripts/edit-morph: Add to-yaml and to-json commandsSam Thursfield2013-02-181-0/+42
| |
| * Add scripts/edit-morph.pySam Thursfield2013-02-181-0/+163
|/ | | | | This allows programmatic edits of certain kinds to morphologies, to minimise the need for manual editing.
* scripts/bootstrap: Fix eglibc2 buildSam Thursfield2013-01-291-1/+1
|
* Merge branch 'jjardon/yaml-v2'Sam Thursfield2013-01-281-4/+1
|\
| * Remove unneded json module importsJavier Jardón2013-01-281-4/+1
| |
* | Merge remote-tracking branch 'origin/samthursfield/build-essential'Lars Wirzenius2013-01-281-0/+555
|\ \ | |/ |/| | | Fixed long lines in scripts/bootstrap while merging.
| * Add script to manually create a build-essential staging fillerSam Thursfield2013-01-241-0/+553
|/ | | | | | | | | | | | | This functionality, of building a build-essential staging filler using host tools rather than a staging chroot, will eventually be done by Morph (and best of all, it will be done automatically when changes are made to the build-essential stratum). The script doesn't handle fetching source, so to use the script, you require a base directory which must contain a 'gits' subdirectory with a checkout of each chunk. Beyond this the build process is handled by the script, except for installing fhs-dirs (which requires root priviliges and must be done manually).
* Remove scripts/clean-git-cacheSam Thursfield2013-01-221-240/+0
| | | | | | | This script has not worked for some time, and is not particularly useful ('rm -r' can do pretty much the same thing). Reviewed-By: Richard Maw <richard.maw@codethink.co.u>
* Revert "Remove unneded scripts/python-check script"Richard Maw2013-01-221-0/+36
| | | | | | | This reverts commit 053c0993bb62dd5e1a73d3367ea04c70874f3bd1. It is needed, since tar.add(..., filter=func) is not available in python2.7, so tarball system kind tests need to be disabled.
* Remove unneded scripts/python-check scriptJavier Jardón2013-01-181-36/+0
|
* Add find-artifacts scriptJonathan Maw2012-12-101-0/+123
| | | | | This script reads a built baserock system and finds all the chunks used to build it in the artifact cache
* Fix line longer than 79 charsSam Thursfield2012-11-261-1/+1
|
* Fix another baserock: URLLars Wirzenius2012-11-211-1/+1
|
* Consolidate checks for python versionRichard Maw2012-11-131-0/+36
| | | | | | | | Most of the bespoke logic for the version check is unnecessary, since the output to display can be easily inferred from the filename. This fixes some test failures where the version check would cat a file to fake the output, but fail because the file was removed.
* tests: Use test: URL prefix instead of baserock: throughoutSam Thursfield2012-11-071-10/+10
| | | | | | | | | | Some tests already used test: and in order to be able to share the scripts/setup-3rd-party-strata script they need to all use the same prefix. Using baserock: implies that we are using real code from Baserock, so I picked test: because the tests only ever use mock morphologies and no real code.
* Merge remote-tracking branch ↵Lars Wirzenius2012-10-311-0/+6
|\ | | | | | | | | | | 'remotes/origin/baserock/richardmaw/allow-smaller-tmpdir' Signed-off-by: Lars Wirzenius <lars.wirzenius@codethink.co.uk>
| * Add and use sparse-gunzip in loopback-rootfsRichard Maw2012-10-261-0/+6
| | | | | | | | | | | | This reduces the space required from the full size of the compressed disk image, which meant that tests could not be run on systems where TMPDIR is a smallish tmpfs.
* | Split merge tests out from the other branching testsSam Thursfield2012-10-291-0/+136
|/ | | | Merge is by far the most complex of the branching and merging commands.
* Write metadata for the rootfs itself into the rootfsSam Thursfield2012-10-261-3/+21
| | | | | | | | This makes it easier to identify what version of a system we are running. Tests are updated to check inside the contents of the rootfs we created, and the code to mount the rootfs as a loopback device was extracted out into tests.as-root/lib
* Use tarballs instead of bundlesDaniel Silverstone2012-09-252-1/+2
| | | | | | | This makes a non-backward-compatible change to morph which switches it to using tarballs instead of bundles when initialising cached git repositories. This is faster because it doesn't require index-pack --fix-thin operations on the machine running morph.
* Script for converting git cache.Daniel Silverstone2012-09-141-0/+51
| | | | | | This script converts a git cache from the current format to the new bare format. It need only stay around for a while (perhaps until after the next Baserock release) and then it can be removed.
* Fix whitespace errorSam Thursfield2012-09-131-3/+3
|
* tests: Always use fixed git committer infoSam Thursfield2012-09-131-0/+25
| | | | | | Move this into a script which can be sourced by the 'setup' scripts and the actual tests (this is needed as the environment in 'setup' is not passed on to the tests).
* Strata contain "chunks", not "sources"Sam Thursfield2012-08-291-2/+2
| | | | Rename "sources" field of stratum morphologies to "chunks".