summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* build-system: python-distutils, correct outputRichard Maw2012-04-231-2/+2
|
* build-system: distutils test, fix outputRichard Maw2012-04-231-0/+1
| | | | | | | Debian systems install python packages into dist-packages, default python behaviour is to install into site-packages. To reconcile this difference, treat any foo-packages component as just being packages.
* build-system-cpan.script: fix whitespaceRichard Maw2012-04-231-1/+2
|
* cpan test: fix confusion over archnameRichard Maw2012-04-231-4/+1
| | | | | archname may be in the version information twice if perl's configure script was passed -Darchname, so exclude that result
* build-system-cpan test: remove redundant manglingRichard Maw2012-04-231-3/+1
|
* tests: cpan use prefix for simpler outputRichard Maw2012-04-232-16/+10
|
* tests: add test for build-system: cpanRichard Maw2012-04-232-0/+92
| | | | | | This does some horrible output mangling because where you install perl modules depends on how your perl was compiled and its version. This will still probably fail on some machines
* Normalize test output for build-system.python-distutils testLars Wirzenius2012-04-232-5/+8
| | | | | The output otherwise differs between various Linux distros, with differnet distutils settings and Python versions.
* tests: add test for python distutilsRichard Maw2012-04-232-0/+72
|
* tests: add test for build-system: autotoolsRichard Maw2012-04-232-0/+65
|
* morphless chunks test: fix outputRichard Maw2012-04-202-1/+11
| | | | | The test needs to check whether the chunk has the expected contents. It used to mistakenly check if there were any chunks in the git cache.
* Add test case for morphless chunksLars Wirzenius2012-04-191-0/+61
|
* Fix expected output for test caseLars Wirzenius2012-04-181-1/+1
| | | | The code has changed the error message.
* Add _create_source_pool() method and update show-dependencies.Jannis Pohlmann2012-04-171-2/+2
| | | | | | The Morph#_create_source_pool method takes a repo cache and a repo, ref, filename triplet and resolves all the sources involved in a potential build of this triplet.
* Re-implement show-dependencies using ArtifactResolver and BuildOrder.Jannis Pohlmann2012-04-161-123/+123
|
* show-dependencies test: correct the stdoutRichard Maw2012-04-111-122/+122
| | | | | | The old form is more verbose, fully qualifying the repository and branch names. This is unnecessary as they should never be ambigous and the new form is much nicer to read.
* tests: add tests for update-gitsRichard Maw2012-04-102-0/+66
|
* Refactor tests/*.script to use scripts/test-morph instead of tests/morphLars Wirzenius2012-03-2710-46/+16
|
* Add rudimentary branch+merge supportLars Wirzenius2012-03-263-125/+125
|\
| * Normalize output of show-dependencies testLars Wirzenius2012-03-232-124/+124
| |
| * Fix expected output to match current test outputLars Wirzenius2012-03-231-1/+1
| |
* | Separate tests that need to be run as root in their own directoryLars Wirzenius2012-03-263-105/+0
| |
* | Add test output of the make-patch test.Jannis Pohlmann2012-03-232-0/+19
| |
* | make-patch test: fix path to hello binaryRichard Maw2012-03-231-1/+1
| |
* | make-patch test: dummy stratum has dummy boot infoRichard Maw2012-03-231-1/+34
| |
* | fix morph wrapper to not falsely report successRichard Maw2012-03-231-1/+6
| |
* | tests: add test for patch buildingRichard Maw2012-03-231-0/+53
|/
* use "set -eu" in scriptsLars Wirzenius2012-03-229-9/+9
| | | | Except in the missing-ref script, since that one breaks with -e.
* Remove unused variableLars Wirzenius2012-03-221-1/+0
|
* Simplify by removing unnecessary variablesLars Wirzenius2012-03-221-4/+1
|
* Simplify how morph gets called by using config fileLars Wirzenius2012-03-221-4/+2
| | | | | Cant' use tests/morph here, because we don't want logging for this test.
* Simply calls to morph by using tests/morph wrapperLars Wirzenius2012-03-227-64/+13
|
* Add helper script to be used from tests to run morphLars Wirzenius2012-03-222-0/+35
| | | | | The helper script makes it easier for the test scripts to invoke morph.
* Empty and initialize the test data dir anew for each testLars Wirzenius2012-03-229-20/+23
| | | | | | | | | | | | | This avoids accidentally having tests that depend on each other. It would be bad to have tests/bar.script do something and then tests/foo.script only work because of that something: if tests/bar.script later changes, then the later test starts breaking. Keeping tests independent is good practice. We don't seem to have had such dependencies yet, so this is a pre-emptive defensive move. Also, this means we can use simpler names in $DATADIR, instead of embedding the test name in everything. This further simplifies the act of creating new tests.
* tar: add -h option to extractionRichard Maw2012-03-161-1/+1
| | | | | | This should stop tar from replacing symbolic links with directories and instead follow the symbolic links, extracting the files into the linked directories
* tests: name clash better description and no trapRichard Maw2012-03-121-3/+6
| | | | | | | | | | Add a description for what the script is testing, namely whether two chunks in the same repository and branch can be confused for each other. Also unpack in DATADIR so no trap trickery is needed. traps aren't stacked and they aren't fully portable, so avoiding using them has its advantages
* give the test script a better nameRichard Maw2012-03-081-0/+0
|
* fix test permissionsRichard Maw2012-03-081-0/+0
|
* tests: add test script for morph name hackRichard Maw2012-03-081-0/+66
| | | | | If two morphs have the same "name" field then one could be built from the command line, which would occupy the same cache space
* Make ./check check for long lines (with excptions); fix long linesLars Wirzenius2012-02-272-3/+7
|
* Add missing copyright years to files missing itLars Wirzenius2012-02-271-1/+1
|
* Fix overriding of build system commandsLars Wirzenius2012-02-151-0/+1
| | | | | This time, with testing. For a five line method, this was surprisingly tricky to get right. Should sleep properly at night...
* Verify distributed-build with local workers works the same as "build".Jannis Pohlmann2012-01-254-0/+85
| | | | | | | This commit adds black box tests for building a single chunk and a stratum with a chunk using as many local workers as morph thinks make sense. The expected stdout of these tests is supposed to be the same as for the build-{chunk,stratum}.script tests.
* Port everything to using Treeish objects instead of (repo, ref).Jannis Pohlmann2012-01-202-123/+123
| | | | | | | | | | | This affects pretty much every part of morph, so this might not be fully working and stable yet. This commit also introduces the "update-gits" command that can be used to update all cached repositories from the list of base URLs. The tree walk when resolving the Treeish objects in Builder.get_cache_id() is a bit similar to what we do in BuildDependencyGraph, maybe we can merge that one day.
* Actually make show-dependencies.setup create an invariant historyRob Taylor2012-01-191-2/+2
| | | | | tests/show-dependencies.setup was actually creating different histories on machines with different timezones.
* Comment tests/show-dependencies.setupRob Taylor2012-01-191-0/+3
| | | | | | Adds commentary that tests/show-dependencies.setup will now always produce a repository with commit sha1s that are always the same
* Make show-dependencies.setup always produce an identical git treeRob Taylor2012-01-191-1/+12
| | | | | Make sure author, comitter and dates are always the same so sha1s will always be consistent.
* Fix coding style, update copyrights, drop unused imports.Jannis Pohlmann2012-01-191-1/+1
|
* Add support for system images in BuildDependencyGraph and new builder.Jannis Pohlmann2012-01-191-0/+1
|
* Initial work on integrate the build order work into builder.Jannis Pohlmann2012-01-191-121/+121
|