summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* cmdtests: Use YAML not JSON to represent morphologiesAdam Coldrick2014-08-142-310/+202
|
* show-dependencies: Use sanitise_morphology_path instead of stripping `.morph`Adam Coldrick2014-08-141-1/+1
|
* Remove update-gits commandRichard Maw2014-07-224-138/+0
| | | | | | | | | This hasn't been used in a long time to my knowledge, its API completely misses the point, and its implementation relies on old APIs that need to change. Until we discover we need it, and work out what it should look like, I think the best thing to do is get rid of it.
* Use exact filenames to refer to morphology filesRichard Maw2014-07-101-1679/+1679
| | | | | | | | | | | | | | | | | | | Rather than repeatedly stripping and appending an optional .morph extension morphology names, instead always use the file path of the morphology relative to the definitions repository. This is an inversion of the previous logic, which would strip the .morph extension and use the "name" internally. The exception to this rule of always using the filename, is that `morph edit CHUNK` uses the name of the morphology as-defined in the stratum. This is based off Adam Coldrick's inital patch, but this version will allow the old style of providing the "name" by converting it into a path if it does not have either a / or a . in it. An unfortunate consequence of this change is that the show-dependencies command's output changed, so the test needed updating.
* Use morph print-architecture to generate morphologiesRichard Maw2014-03-141-1/+1
| | | | | uname tends to only give us a valid morph architecture on x86_64, this makes it work on other architectures.
* Don't use repo or ref in test suiteRichard Maw2014-02-131-5/+1
|
* cmdtests: Take into account new constructed artifactsRichard Maw2014-01-161-98/+1678
|
* Dropped support for 'system-kind' from system morphology filesDan Firth2013-09-272-2/+0
|
* Dropped support for 'disk-size' from system morphology files'Dan Firth2013-09-271-1/+0
|
* black-box-tests: Set build-mode: test in strataRichard Maw2013-08-072-0/+25
| | | | | | This is already needed elsewhere for tests that perform builds, however in future, validation will be more strict, so now these dummy strata need to be marked as tests as well.
* Fix copyright yearsLars Wirzenius2013-07-183-3/+3
|
* Use 127.0.0.1 instead of localhostLars Wirzenius2013-07-183-3/+3
| | | | | | | We do not currently install an /etc/hosts in Baserock, and thus the name localhost is not guaranteed to resolve as expected. This patch changes the tests to use 127.0.0.1 instead, since that is the IP address we want localhost to resolve to.
* Merge remote-tracking branch 'origin/baserock/richarddale/metadata_contents'Lars Wirzenius2013-05-281-1/+1
|\ | | | | | | | | | | | | | | Conflicts: morphlib/app.py Also fixed copyright year in tests/trove-id.script, which was not from Richard's patch, but from an earlier commit, and all my own fault.
| * rename trove-prefix and trove_prefix to trove_idPaul Sherwood2013-05-281-5/+5
| |
* | Merge branch 'ps/to-trove-id'Lars Wirzenius2013-05-271-5/+5
|\ \ | |/ |/| | | Changed Paul's patch so that --trove-prefix still works as an alias.
| * rename trove-prefix and trove_prefix to trove_idPaul Sherwood2013-04-131-5/+5
| |
* | Fix tests to use rootfs-tarball system-kinds, instead of disksLars Wirzenius2013-04-231-1/+1
|/
* Remove features used by old bootstrap methodSam Thursfield2013-03-131-2/+1
| | | | | | 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.
* tests.build: Don't build individual chunks or strataSam Thursfield2013-02-203-4/+24
| | | | | We can't rely on this being possible any more. It was mostly only used for testing in any case.
* Separate out build tests from general Morph testsSam Thursfield2013-02-2032-913/+0
|
* Rewrite show-dependencies to work without BuildOrderLars Wirzenius2013-02-191-94/+59
|
* Remove test for name mismatchesSam Thursfield2013-02-081-66/+0
| | | | No longer possible for this to happen.
* Add a test to catch any future use of git show-refSam Thursfield2012-12-131-0/+32
|
* Always use `git rev-parse --verify` to resolve refsSam Thursfield2012-12-131-2/+2
| | | | | | | | | | | | | Previously some code used `git show-ref`, which is wrong -- given two refs named 'alpha/master' and 'master', `git show-ref master` will return both, sorted alphabetically. This can lead to build failures, etc. due to refs resolving to the wrong SHAs. We should also use `git rev-parse --verify` to verify SHA1s, which we previously did with `git rev-list`. Finally, `git rev-parse --verify` is more than twice as fast as `git show-ref`.
* Tidy up command testsSam Thursfield2012-11-1421-113/+131
| | | | Be consistent about placement of test description, blank lines, etc.
* Use git://localhost URL's instead of file:// in update-gits testsSam Thursfield2012-11-123-22/+48
| | | | This requires running git-daemon manually in the tests.
* Rework the blackbox tests for bare caches.Daniel Silverstone2012-09-142-2/+2
| | | | | | This reworks the blackbox tests to work with the bare repository caches. For the most part it's slight changes to error messages and tweaks to ignore the repository caches during file listing.
* tests: Always use fixed git committer infoSam Thursfield2012-09-131-13/+1
| | | | | | 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).
* Merge branch 'samthursfield/S4556-triplet-consistency' of ↵Richard Maw2012-09-1321-153/+147
|\ | | | | | | git://roadtrain.codethink.co.uk/baserock/morph
| * Don't use .morph extension when printing name of tripletsSam Thursfield2012-09-121-124/+124
| | | | | | | | | | We should now be fully consistent regarding the form of triplets (ie. the last component is always a morphology name rather than a filename)
| * Don't require .morph in triplet argumentsSam Thursfield2012-09-1220-29/+23
| | | | | | | | | | | | | | | | | | This gives us consistency with morphologies, where the triplets are repo|ref|morphology, not repo|ref|filename Anyone who runs 'morph build baserock:morphs master system.morph' will now see an error ending with 'was looking for system.morph.morph', which should make it clear where they have gone wrong.
* | Test the trove-* support.Daniel Silverstone2012-09-121-0/+99
|/ | | | | | | | | This adds a way to cause the processed configuration to be dumped out. We do this in the overridden process_args method so that the configuration dumped has had all the processing done on it which is necessary. The test then uses this functionality to ensure that the repo-alias setting has been correctly updated with the Trove-hosted prefixes.
* Rename 'morph build' command to 'morph build-morphology'Jannis Pohlmann2012-09-0716-24/+33
| | | | | | | | | | This is needed because we are replacing the current build command by a new one that builds from a local system branch. Since that will be the more common scenario, we want the new implementaiton to go by the name 'morph build'. This commit therefore renames 'morph build' and updates all the tests to use 'morph build-morphology' instead.
* Remove unused files in test/Sam Thursfield2012-08-302-10/+0
|
* Strata should be referred to with full repo/ref/morph tripletsSam Thursfield2012-08-302-2/+10
| | | | | | | | This removes the requirement that all strata must be in the same repo as the system morphology. Both the system "strata" field and the stratum "build-depends" field are affected.
* Strata contain "chunks", not "sources"Sam Thursfield2012-08-296-7/+7
| | | | Rename "sources" field of stratum morphologies to "chunks".
* Refactor system building to use syskind specific classLars Wirzenius2012-07-261-1/+1
|
* Require system-kind on system morphologiesLars Wirzenius2012-07-191-0/+1
|
* tests: make build-chunk-writes-log simplerRichard Maw2012-07-061-6/+7
| | | | | | | | Process substitution is a little funky and bash variable substitution's suffix stripping is hard to remember. Instead write the list of sources to a temporary file and redirect that to the while loop.
* tests: build-system-autotools-fails ignores stdoutRichard Maw2012-07-061-1/+1
| | | | | The test expects it to just exit non-zero, so prevent output changing that.
* tests: add test for chunk failure dumping logsRichard Maw2012-07-063-0/+49
|
* tests: add check for log being writtenRichard Maw2012-07-061-0/+35
|
* Add workaround for test caseLars Wirzenius2012-07-021-0/+2
|
* Add check for missing build depends in strataLars Wirzenius2012-06-284-7/+14
| | | | | | | This will make a build fail if the morphology is missing explicit build dependencies. Also fix test causes so that ./check passes.
* Fix test suite to deal with morph output changesLars Wirzenius2012-06-263-2/+4
| | | | | | | | Also, some bug fixes. Also, when handling a BaseException, log the exception (with traceback) that we're handling, in case there is an error while handling it, because the second error will otherwise mask the first one.
* remove testsRichard Maw2012-06-144-70/+0
| | | | | They fail on squeeze and should be tested either at system assembly or in a unit test.
* tests: fix missing baserock meta filesRichard Maw2012-06-145-5/+5
| | | | | This adds the ability to do this to the script, and fixes use of the script to add the new parameter.
* tests: amend to not consider stratum metadataRichard Maw2012-06-144-5/+5
| | | | | These tests were failing because the stratum metadata was added to the cache.
* tests: fix some that expected tarball strataRichard Maw2012-06-145-7/+18
| | | | | | | 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-143-0/+39
| | | | | | | 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