summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* Test suite: inarchivecopy: Test a suite containing only inarchive copiesIan Jackson2016-10-30
| | | | | | Tests the fix for #842621. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: inarchivecopy: Do a "git init" and "git fetch" test tooIan Jackson2016-10-30
| | | | | | | This checks that we receive all the needed objects even if we don't do git clone. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: inarchivecopy: Prepare for another destination suiteIan Jackson2016-10-30
| | | | | | Replace several hardcoded `stable'. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Change t-has-parent to t-has-parent-or-isIan Jackson2016-10-30
| | | | | | | | | This is only used by the inarchivecopy test. And that ought not to fail if there is no into-suite pseudomerge: that is, when the suite branch contains the intended commit, rather than something merging the intended commit into the suite branch. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: examplegit setup: Provide "testing" suite tooIan Jackson2016-10-30
| | | | | | One of the tests is going to want this. We ourselves leave it empty. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: gbp-orig: New test (for #841094)Ian Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-splitbrain-pushed-good--unpack: Handle new .origsIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Test --dgit-view-save everywhereIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Make t-ref-same* errors better by tracking and printing namesIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Make t-refs-same* not wrongly ignore some nonexistent refsIan Jackson2016-10-30
| | | | | | | | | | Previously, t_ref_val="" was meant to mean "no refs specified yet" but could also arise from "ref was specified but did not exist". Distinguish these two cases, by using t_ref_val="" to mean only the latter. "No refs specified yet" is represented as t_ref_val unset. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: inarchivecopy: Fix tag-vs-remote checkingIan Jackson2016-10-30
| | | | | | | | | | This was entirely broken, and only works because (a) $vtag^1 does not exist, and (b) this is erroneously not spotted by t-ref-same-*. Instead check that the suite branch has the tag (of the package which has been moved into that suite) as a direct ancestor. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Provide t-has-parentIan Jackson2016-10-30
| | | | | | No callers yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Document args to t-has-ancestorIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Explicitly configure user.name and user.emailIan Jackson2016-10-30
| | | | | | | | | So that tests work when environment doesn't have defaults. Closes:#842279 (I hope). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: import-dsc: Test --require-valid-signatureIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: import-dsc: New testIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: orig-include-exclude: Test orig tarball hash mismatchIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: orig-include-exclude-chkquery: New testIan Jackson2016-10-30
| | | | | | Check that we make the right file_in_archive ftpmaster API queries. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: lib-orig-include-exclude: Prepare for more reuseIan Jackson2016-10-30
| | | | | | | | | Support a suite argument to test-push-1 and dgit argument arguments to test-push-2. cd back to $tmp at the end. No overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: orig-include-exclude: Move bulk into a lib-*Ian Jackson2016-10-30
| | | | | | | | | We're going to want to re-use it as-is. Well, modulo the introduction of $test_push_2_hook. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: orig-include-exclude: Refactor: introduce test-push-[12]Ian Jackson2016-10-30
| | | | | | No functional change (diffed two test logs to check). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: orig-include-exclude: Tests orig auto-inclusion/exclusionIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-archive-process-incoming: Process everythingIan Jackson2016-10-30
| | | | | | | | | | | The previous rune wouldn't process any new .origs. And in fact there is no good reason to restrict this. certainly not right now, because right now we are going to want to process whatever is in incoming so that the orig-include-exclude test can easily see what dgit push uploaded. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Test --new in split brain modeIan Jackson2016-10-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: build-mode-*: Check that right .changes comes out.Ian Jackson2016-10-25
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: bm-*: turn bm-report-source into bm-report-testIan Jackson2016-10-25
| | | | | | No overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Provide absurd-gitapply testIan Jackson2016-10-24
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* default config: Switch to new archive/ tag formatIan Jackson2016-10-22
| | | | | | | Even in non-split-brain mode. Also change the test suite to expect this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: overwrite junk: Use $tagpfx where applicableIan Jackson2016-10-22
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Introduce setup/gnupgIan Jackson2016-10-22
| | | | | | | To work around #841143 and improve performance by amortising gnupg migration cost. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Propagate tmpbase into nested (setup) runsIan Jackson2016-10-22
| | | | | | | This stops t-setup-import wrongly deciding we are in ADT non-shared mode. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: setup import: Cope with nested and multiple importsIan Jackson2016-10-22
| | | | | | | | | | Name the IMPORT file after the setup name. This is important when running under autopkgtest, where all the setups share the tmp directory with each other and with the main test. The setups need distinct IMPORTS. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: overwrite-splitbrains: New testIan Jackson2016-10-18
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: t-gbp-example-prep-no-ff: break out from t-gbp-example-prepIan Jackson2016-10-18
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: ovewrite-junk: New testIan Jackson2016-10-18
| | | | | | Check that we can overwrite things even if the tags are broken. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: ovewrite-version: Add missing "echo ok."Ian Jackson2016-10-18
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Add test that #840989 is fixedIan Jackson2016-10-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Filter out .../git-core from PATH so that we catch git-fooIan Jackson2016-10-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git- prefixes: Test suite: fix tests/tests/quiltIan Jackson2016-10-16
| | | | | | | Broken since 20ee7135bcbb "Test suite: quilt: Test that our patch makes it through dgit and gbp pq". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git- prefixes: Test suite: Fix t-gbp-example-prepIan Jackson2016-10-16
| | | | | | Broken ever since it was introduced. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Do not fail when git requires --allow-unrelated-histories.Ian Jackson2016-10-16
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: stunt parsechangelog: Some commented-out debuggingIan Jackson2016-10-15
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: tstunt-parsechangelog: Produce Timestamp fieldIan Jackson2016-10-15
| | | | | | Like official one does, nowadays. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: unset empty redacted pathsIan Jackson2016-10-15
| | | | | | Some programs might treat that as a path of implicitly ".". Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: Fix entirely-broken tstunt PERLLIB arrangementsIan Jackson2016-10-15
| | | | | | | | | | | | Specifically: * Properly dereference the variable when looking for the stunt dir to be there already * Do not add "." to the path if the path starts out empty. * Crash _with the right message_ in dpkg-parsechangelog if PERLLIB is unset. (PERLLIB mustn't be unset because we're trying to strip our own value from it.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: tstunt/dpkg-parsechangelog: Do not complain if PERLLIB is empty.Ian Jackson2016-10-15
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: quilt-gbp: Check that we do not update user's HEADIan Jackson2016-10-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: quilt-splitbrains: Check that we do not update user's HEADIan Jackson2016-10-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Copyright: Add notices to some more of the (larger) filesIan Jackson2016-10-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Test suite: mismatches-contents: New testIan Jackson2016-10-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>