summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* git-debpush: Check that patches are (un)applicableSean Whitton2019-07-22
| | | | | | Closes: #932477 Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* test suite: Rename debian/3-1 tag to test-dummy/ in a test gitIan Jackson2019-07-22
| | | | | | | | | | Our distro is test-dummy. We are going to stop randomly fetching tags from the dgit git server, so the debian/ one would be omitted. Replace the tag with a fresh equivalent one and change the one use site. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-playtree-setup: Rename from git-playtree-createIan Jackson2019-07-21
| | | | | | | The name is from when I thought it would actually mkdir. But it doesn't. No overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-playtree-create: Fix with tests/using-intreeIan Jackson2019-07-21
| | | | | Reported-by: Sean Whitton <spwhitton@spwhitton.name> Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: Check upstream source is identical in the upstream tagSean Whitton2019-07-20
| | | | | | Closes: #932476 Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> Acked-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: Support forcing individual checksSean Whitton2019-07-20
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | While using git-debpush interactively, if the user sees that checks have failed which they know to be safe to override, they typically just use --force or -f. However, it is useful for scripts to be able to skip single checks, and if the user knows that a check will fail in advance of running git-debpush, it is convenient to be able to specify that but still see whether other checks fail, where those failures were unexpected. This can avoid the user having to run git-debpush more than once. The list of any checks which failed but were overridden is not stored in the generated tag. git-debpush's checks are for the convenience of the local user only, and the list of failed but overridden checks is not considered to be metadata for the upload. Not recording failed but overridden checks in the git tag keeps git-debpush's checking independent of its wrapping of git-tag and git-push, which makes git-debpush simpler and easier to understand. The complexity is on the server side, in tag2upload. git-debpush(1): We want the list of checks that can be overridden to be at the bottom of the list of options because most users will not need to look at it. We also want the description of --force|-f to be adjacent to the description of --force=<check>. So move the description of --force|-f to the end of the list of options. Signed-off-by: Sean Whitton <spwhitton@spwhitton.name> Closes: #932459
* test suite: tag-to-upload tests: Tolerate a changed git messageIan Jackson2019-07-19
| | | | | | | | | | | git changed Couldn't find remote ref to couldn't find remote ref and this broke our test case. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> Closes: #932475
* test suite: tag-to-upload tests: Make message checks regexpsIan Jackson2019-07-19
| | | | | | | No functional change yet. All the existing message strings are already equivalently valid when interpreted by egrep. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tag-to-upload tests: Set LC_MESSAGES in with-mangledIan Jackson2019-07-19
| | | | | | | | | t-expect-fail would do this but we aren't using it here, so we need to do it explicitly. This will avoid the tests failing in some locales. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl-gbp: New testIan Jackson2019-07-18
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-debpolicy: mkdir -p the git repoIan Jackson2019-07-18
| | | | | | | This makes t-debpolicy compatible with (eg) setup imports that already made a $tmp/git. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: splitbrain: "bad b/p" prints more infoIan Jackson2019-07-18
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: setup/gbp: Make the result the master branchIan Jackson2019-07-18
| | | | | | | | This means we can drop --git-ignore-branch from gbp-orig. No overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: break out tests/setup/gbpIan Jackson2019-07-18
| | | | | | | | This creates a fairly usual set of gbp style git branches/tags. No overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-gbp-example-prep: Drop t-tstunt-parsechangelogIan Jackson2019-07-18
| | | | | | | And hoist it into all callers. In fact there is only one caller that doesn't have it already. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: check that upstream tag is ancestor of $branchSean Whitton2019-07-17
| | | | | | Closes: #932096 Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* test suite: tagupl-baredebian: New testIan Jackson2019-07-17
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: Break up baredebian-test-coreIan Jackson2019-07-17
| | | | | | | For a baredebian tag-to-upload test, we're going to want to replace the push. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: Move the quilt fixup forwardIan Jackson2019-07-17
| | | | | | | | | We are going to split this function up so that our caller can do the push via tag-to-upload. No overall functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl-*: Move t-pushed-good out of t-tagupl-testIan Jackson2019-07-17
| | | | | | | | We are going to want to do this separately in some cases. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: unset CDPATHIan Jackson2019-07-07
| | | | | | This can cause tests to pass which should fail (!) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test git-debpush --upstream=Ian Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Drop an unused variableIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-tagupl-test: Check that salsa master was pushedIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl-native: Drop obsolete todo commentIan Jackson2019-07-07
| | | | | | We do now test all these, in tests/tests/tagupl. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-tagupl-test: Use "salsa" as the sourceIan Jackson2019-07-07
| | | | | | This checks that push pushed the tag(s) there. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-tagupl-run-drs: New source parameterIan Jackson2019-07-07
| | | | | | Change all callers. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl*: Drop use of --no-pushIan Jackson2019-07-07
| | | | | | Now we do actually push. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-tagupl-setting: Provide a "salsa" remoteIan Jackson2019-07-07
| | | | | | This will give git-debpush somewhere to push to. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl*: Run t-tagupl-settings in $pIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Check Source mismatchIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test changelog versionIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Update version when neededIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test lack of signatureIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test signature verification fail.Ian Jackson2019-07-07
| | | | | | This test case is broken because it doesn't call t-tagupl-run-drs Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: raw-mangled: Use 1.0-2 tagname in raw-mangledIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: raw-mangled: Fix mangled tagger testIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: raw-mangled: Break outIan Jackson2019-07-07
| | | | | | | | No functional change. This test case is broken because it doesn't call t-tagupl-run-drs Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: A few more error case testsIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: A few more error case testsIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test an email: version mismatchIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Use a different strategy to avoid fsck failIan Jackson2019-07-07
| | | | | | This leaves us with a $p directory which is often convenient Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test a really broken tagIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Break out and soup up log movingIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Test some wrong tag namesIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Break out next-mangleIan Jackson2019-07-07
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: test one bad tagIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl-*: Break out t-tagupl-run-drsIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl-native: New testIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: Numerous improvementsSean Whitton2019-07-07
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>