summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* 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
* stratum-overlap-warns: make test more looseRichard Maw2012-06-142-6/+11
| | | | | the exact format of the logging may change, so just check that the artifact, the chunks and the files are mentioned
* morph: remove dead code and replace Execute with app.runcmdRichard Maw2012-05-301-1/+2
|
* Add test for using --tempdirRichard Maw2012-05-301-0/+26
|
* Merge branch 'master' of gitorious.org:baserock/morphLars Wirzenius2012-05-157-0/+212
|\
| * tests: stratum overlap tests files insteadRichard Maw2012-05-154-6/+12
| | | | | | | | | | | | Rather than parse the output of tar -tvf, extract the tarballs and test the files. This should hopefully be more stable than the output of tar
| * tests: update to produce less useless outputRichard Maw2012-05-146-29/+9
| | | | | | | | | | | | output is properly sorted, and redundant data is removed also the stratum in stratum-overlap-*.setup are unpacked in a different order, so there is a symlink to stomp first
| * tests: add checks for link behaviourRichard Maw2012-05-148-1/+84
| |
| * tests: rename stratum-overlap to *-warnsRichard Maw2012-05-143-8/+30
| | | | | | | | | | The test is purely that the warnings are logged, whether it handles overlapping correctly is another issue
| * builder: log to warnings when artifacts overlapRichard Maw2012-05-142-0/+121
| | | | | | | | | | It may be better to print it to the console, but that requires getting self.msg set
* | Add test case for autotools buildsystem handling autogen.sh failingLars Wirzenius2012-05-152-0/+39
|/
* Remove debug helper log file specLars Wirzenius2012-05-041-1/+1
|
* Add explicit repo prefixes to test scriptsLars Wirzenius2012-05-0415-44/+51
|
* Fix repo-alias value to use right syntaxLars Wirzenius2012-05-041-1/+1
|
* Make cmdtests set up repo-aliases and use prefixed reponamesLars Wirzenius2012-05-041-2/+2
|
* Use dedicated <cachedir>/artficats directory for local artifact cache.Jannis Pohlmann2012-05-039-9/+11
| | | | | | Make sure that this directory is actually created before trying to save artifacts to it. Also adjust all tests to use this new directory for looking up artifacts.
* Get rid of the old internal morph APIsLars Wirzenius2012-05-024-68/+0
|
* Build items as late as possible in the build order.Jannis Pohlmann2012-05-011-8/+8
| | | | | | | | At the moment this is done by creating a reverse topological sorting starting with the artifacts that depend on nothing else. Artifacts are then added to build groups as late as possible. Fix show-dependencies test output for the new build order generation.
* build-system-cpan test: only check file in tarRichard Maw2012-04-302-11/+1
| | | | | | It is possible that a bunch of stuff will be put in the tarball. What matters is if the binary is in the tarball, so only print that line of output