summaryrefslogtreecommitdiff
path: root/scripts
Commit message (Collapse)AuthorAgeFilesLines
* 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".
* Break long lineLars Wirzenius2012-08-281-1/+2
|
* Expand TAB charactersLars Wirzenius2012-08-281-41/+41
|
* scripts/clean-git-cache: Fix 2 small issuesSam Thursfield2012-08-231-2/+4
| | | | | 1) print message if no unused gits were found 2) avoid eating baserock:morphs repository every time
* Add scripts/clean-git-cacheSam Thursfield2012-08-221-0/+238
| | | | | | | This removes local repository clones that are not referenced by anything in the baserock:morphs repository. It would be useful for Morph to do this itself in the long term.
* Add scripts/clean-artifact-cacheSam Thursfield2012-08-221-0/+94
| | | | | | | | | | | | This removes all but the latest build of a chunk from the cache, which can free up a significant amount of disk space for large chunks. Ideally Morph should handle cleaning up the artifact cache itself, there are some ideas floating around including using git to store the artifacts; either way, reference counting items in the cache and only requiring the user to manually delete the final system images when they are no longer required is probably the best way.
* python scripts: pep8ize codebaseRichard Maw2012-08-013-13/+14
| | | | | | | | | 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.
* fix tabs and line widths so ./check passesRichard Maw2012-06-142-11/+11
|
* tests: fix missing baserock meta filesRichard Maw2012-06-141-0/+5
| | | | | This adds the ability to do this to the script, and fixes use of the script to add the new parameter.
* tests: fix some that expected tarball strataRichard Maw2012-06-141-0/+53
| | | | | | | This required functionality to create a tarball from a json file. This should probably be rewritten as a morph plugin and refactor it to consolidate the creation logic, so e.g. the stratum metadata is kept.
* tests: verify overlaps are written to the cacheRichard Maw2012-06-141-0/+44
| | | | | | | This adds a new script called list-overlaps, which when given a json dump of the overlap can be used to query what is overlapping The tests use this script to check that the overlaps are detected
* scripts/list-tree: work with busybox findRichard Maw2012-05-141-1/+21
| | | | | | busybox's find doesn't support -printf, so build that string in shell to keep compatibility with old scripts, convert the type to the expected short form
* Refactor tests/*.script to use scripts/test-morph instead of tests/morphLars Wirzenius2012-03-271-0/+4
|
* Add helper script for cleaning up test outputLars Wirzenius2012-03-233-14/+43
| | | | | | This refactors what scripts/test-morph did into its own helper script, so that we can use it elsehwere. Then use it for scripts/run-git-in too.
* Create dummy git repositories for morphs, helloLars Wirzenius2012-03-221-0/+25
|
* Filter out $DESTDIR from morph outputLars Wirzenius2012-03-221-2/+20
|
* Fix tree listing to include path for each nameLars Wirzenius2012-03-221-1/+1
|
* Add testing helper for listing contents of directory treesLars Wirzenius2012-03-221-0/+25
|
* Add helper script for cmdtest scripts to run morph withLars Wirzenius2012-03-221-0/+21
| | | | | | This is like tests/morph, but not in the tests directory, so that it's easier to use from multiple tests directories. We're about to get another one, at least temporarily.
* Fix copyright year checking in ./check to not fail with uncommitted filesLars Wirzenius2012-03-221-0/+8
|
* formatting: fix overly wide codeRichard Maw2012-03-191-1/+2
|
* check: fix copyright script for merge commitsRichard Maw2012-03-191-5/+3
| | | | | | | | | | The last commit of a file can be a merge Merge commits have their date on a different line because it displays information about which branches merged Instead of relying on this fragile 'porcelain' format, specify that we only want the last commit's committer date and split the year from that output
* Add script to check years in copyright statements against git commit datesLars Wirzenius2012-02-271-0/+86