summaryrefslogtreecommitdiff
path: root/tests/lib
Commit message (Collapse)AuthorAge
* Test suite: Make t-archive-none idempotentIan Jackson2016-10-08
| | | | | | | No overall functional change just yet, but it means we can wipe our test archives. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Make t-newtag specify maint tooIan Jackson2016-09-26
| | | | | | | | Since actually several tests which use t-newtag are quilty split brain ones which technically require it, although nothing checks this right now. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Test --quilt=unapplied and --quilt=dpmIan Jackson2016-09-26
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-gbp-pushed-good: Refactor (nfc)Ian Jackson2016-09-26
| | | | | | | Provide various t-splitbrain-*. These will be needed for tests of --quilt=unapplied and --quilt=dpm. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Add t-tstunt-parsechangelog to a couple of testsIan Jackson2016-09-25
| | | | | | inarchivecopy and the quilt-gbp tests just use the `example' package. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Split brain: Test suite: quilt-gbp: Check that DEP-14 tag was pushedIan Jackson2016-09-25
| | | | | | Test that we pushed the maintainer view as well as the dgit view. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: quilt-gbp: Provide and use t-gbp-pushed-goodIan Jackson2016-09-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Break out t-incoming-dsc (nfc)Ian Jackson2016-09-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Break out t-pushed-good-core (nfc)Ian Jackson2016-09-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-output: support expecting empty filesIan Jackson2016-09-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Provide t-sametree-parentIan Jackson2016-09-06
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-commit: honour $majorv for major versionIan Jackson2016-09-05
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Honour t_dgit_xoptsIan Jackson2016-09-05
| | | | | | No callers. This may come in useful, though, at some point. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-setup-*: Fix lock pathIan Jackson2016-09-05
| | | | | | Needs to be not in a directory which may not exist yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Provide t-setup-* machineryIan Jackson2016-09-05
| | | | | | | | | | | | | | | | | | | | | Setups are, essentially, prefixes to test cases. We arrange to be able to reuse their state (as explicitly recorded in t-setup-done), so that manual runs of the test suite can be faster. We save the tmp base directory (the directory shared by tests), if there is one. That will be used for cacheing of setups. And we save the environment in form we can use xargs and env to restore. We use a conventional with-lock-ex and stamp file pattern for the cache. The IMPORT file (containing shell variables) doubles as the stamp. The setup execution rune is exciting. This mostly results from the fact that we want xargs to pass all the env vars to env, and that xargs cannot be persuaded to append fixed arguments to the arguments read from its input file. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-commit: Permit specification of the suite in $3Ian Jackson2016-09-05
| | | | | | | | | This also means that we need to default $2 with ${2:-} since callers want need to pass an empty value for the version, to get the default. No functional change since none of the call sites use this yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-pushed-good: Support other suitesIan Jackson2016-09-05
| | | | | | | | Honour $2 being the suite codename, defaulting to sid. No functional change, since no-one passes this argument right now. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-archive-none: Support multiple suitesIan Jackson2016-09-05
| | | | | | | | | | t-archive-none now honours `suitespecs', which defaults to just `sid:unstable'. No overall functional change since no-one sets suitespecs to a non-default value. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Split tags: Push the maintainer view tag, where supportedIan Jackson2016-09-05
| | | | | | | | | | | | | | | | | We introduce a new `maint' possibility in to the dgit-tag-format access cfg list, presence of which indicates that the receiver is content to receive DEP-14-style maintainer-view (ie, non-dgit0 tags. For now, we default this to true. However, repos handled by dgit-repos-server cannot currently cope with this, because: * dgit-repos-server currently tries to be compatible with old dgits which send DEP-14-named dgit tags; * dgit-repos-server doesn't currently permit the creation of `extraneous' (ie, non-dgit) tags and branches. So for Debian, we do not set this flag. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Canonicalise json output when generating aqIan Jackson2016-08-14
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Test pushing with forcing old and new tag formatIan Jackson2016-07-31
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Tag change: Test suite: Introduce $tagpfxIan Jackson2016-07-31
| | | | | | | | | | | | | | Currently this is `test-dummy' (the distro the tests work with). Have checked that after this commit find tests -type f | xargs perl -i~ -pe 's/\$tagpfx/test-dummy/g' puts everything back. (This does not prove I have changed the right set of occurrences, but it does suggest that each actual change is good.) No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Print better info on t-ref-same failureIan Jackson2016-07-31
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Print better info on failuresIan Jackson2016-07-31
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-gbp-example-prep: Arrange to be FF from the archiveIan Jackson2016-07-16
| | | | Otherwise pushes will necessarily (spuriously) fail.
* Test suite: unapplied-pq2qc: leave us on the qc/ branchIan Jackson2016-07-16
| | | | | The patch queue branch is not really very useful. Certainly, the build tests will require the patch queue branch.
* Test suite: Provide t-gbp-example-prep [FOLD INTO QUILT-GBP TEST?]Ian Jackson2016-07-16
| | | | | This function is useful for setting up a test case --quilt=gbp working tree and corresponding archive contents, ready for substantive tests.
* Test suite: unapplied-pq2qc: move into lib as a t- subroutineIan Jackson2016-07-16
|
* Test suite: lib t-untar of an edited tartree: do not hardlinkIan Jackson2016-07-03
| | | | | | Some of the tools we use, it turns out, do not update properly: they overwrite in place. This can cause inadvertant changes to a tartree opened for editing.
* Set GIT_COMMITTER_DATE and GIT_AUTHOR_DATEIan Jackson2016-07-01
| | | | | | | | | | | | | | This avoids most date dependencies: unless other measures are taken, the commits and tags are identical iff they are constructed identically. This makes the test suite more deterministic. In drs-push-rejects test, increment them explicitly, so as to make all of mktag's tags distinct objects. Otherwise it can generate identical tags (now, always; previously, only sometimes on fast computers), causing spurious variations in behaviour (eg, things not being rejected because they do not represent any change).
* Test suite: Honour DGIT_TEST_DEBUG=''.Ian Jackson2015-07-26
|
* Test suite: Support t-dependencies (for gencontrol, not for tests/run-all)Ian Jackson2015-07-25
|
* Test suite: Introduce tests/list-testsIan Jackson2015-07-25
|
* Test suite: Break out t-make-hook-link.Ian Jackson2015-07-19
|
* Mirroring: Tests: Break out various functions (nfc overall)Ian Jackson2015-07-11
|
* Test suite: Provide t-files-notexistIan Jackson2015-07-11
|
* Test suite: Make t-reporefs take optional repo argumentIan Jackson2015-07-11
|
* Test suite: Break out t-grep-mpat (nfc)Ian Jackson2015-07-11
|
* Test suite: Move setting of grepper in t-expect-fail (nfc)Ian Jackson2015-07-11
|
* Test suite: Replace open-coded $tmp/git/$p.gitIan Jackson2015-07-11
|
* Test suite: Replace assignments to p with t-select-packageIan Jackson2015-07-11
|
* Test suite: Use "dgit setup-mergechangelogs" and abolish t-prep-mergechangelogsIan Jackson2015-07-04
|
* Test suite: In drs tests, check that master gets updatedIan Jackson2015-07-04
|
* Test suite: Provide t-ref-same-exactIan Jackson2015-07-04
|
* Test suite: Call pwd in t-dgitIan Jackson2015-07-04
|
* For non-Debian distros, debiantag() uses distro name a la DEP-14.Ian Jackson2015-07-04
|
* Test suite: Fix t-refs-notexistIan Jackson2015-07-04
|
* Tests: Allow t-commit caller to specify whole versionIan Jackson2015-06-29
|
* Test suite: Introduce t-policy-nonexistIan Jackson2015-06-23
| | | | "t-policy false" did not work properly.
* Test suite: Make t-policy more robust, and work in installed-package modeIan Jackson2015-06-23
|