summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* tests: i18n-messages: Explicitly set "default" LCIan Jackson2023-10-29
| | | | | | Otherwise this test might go wrong if there were a different locale. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: i18n-messages: Add missing "locales" to dependenciesIan Jackson2023-10-29
| | | | | | Without this the test can fail. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: import-r1clog: test malformed address in changelogIan Jackson2023-10-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: import-r1clog: test garbage in changelogIan Jackson2023-10-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: import-r1clog: test missing date lineIan Jackson2023-10-29
| | | | | | Repro for #1054630. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: import-r1clog: new testIan Jackson2023-10-29
| | | | | | | | This lets us test various corner cases for imports. Right now it just checks that the synthetic commits importing -1 orig tarballs have the right date and author. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Prevent pushing old versions (test)Ian Jackson2023-09-02
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Prevent pushing old versions (prep)Ian Jackson2023-09-02
| | | | | | | | | Allow (but ignore) the --force option we're going to use. Apply it to two tests which play a bit fast and loose, (ie, which omit calls to dch to update the changelog version.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: manpages-format: Remove now-unneeded suppressionIan Jackson2023-07-20
| | | | | | | | Now there are no suppressions. But keep the machinery in case we need it later. See also https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1041317#22 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/tagupl: Cope with git 2.40 restrictionIan Jackson2023-06-14
| | | | | | Again, skip the test if we can't repro this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/tagupl: Rework raw-mangled to have proper error handlingIan Jackson2023-06-14
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/drs-push-rejects: Cope with t-make-badcommit failingIan Jackson2023-06-14
| | | | | | | | | git 2.40 rejects these. This means we don't any logner test that our push receiver also rejects them. That's OK, since we don't expect this to regress in our push receiver code before the server gets upgraded. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/drs-push-rejects: Cope with changed error message from gitIan Jackson2023-06-14
| | | | | | | git 2.40 prints a different message for trying to git-hash-object a tag without a valid `tag` line. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* Abolish dgit-badcommit-fixupIan Jackson2023-06-14
| | | | | | | | | | | | | | | git 2.40 rejects the bad commits. This means we can no longer conveniently test this script. And it also means it is not likely that such a bug would be reintroduced. So: * Delete the script. * Delete its test case and remove it from debian/tests/control. * No longer install it. * Remove the lintian suppression for its lack of manpage. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: absurd-gitapply: Introduce filtered junk into series fileIan Jackson2023-02-04
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Bail on commits tagged "[dgit ... INTERNAL ...]"Ian Jackson2023-02-04
| | | | | | | | | | | | | | | | | | | | We are about to generate some of these. I have tested ad-hoc that this does in fact trigger, as follows: * Start with the tip of my wip branch with the absurd git apply series filtering work completed. * Ad-hoc disable the git rebase in the absurd git apply cleanup, so that the series filtering commit ends up in the output: - if ($use_absurd) { + if (0 and $use_absurd) { * Revert the change to the test case absurd example; this leaves a test case which forces use of absurd git apply, but where the series filtering doesn't in fact alter the series file, so dgit is happy that the trees match. In this situation, the new test *did* complain about the INTERNAL commit. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: tests: Enhance debpolicy-newreject moreIan Jackson2022-12-29
| | | | | | | Test that the previously-rewound-from tainted object is found early, and can be overridden permanently. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: tests: Insist that test-dummy supports itIan Jackson2022-12-29
| | | | | | This will ensure that the direct command fallback is tested, I think. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects: tests: Fix and improve debpolicy-newrejectIan Jackson2022-12-28
| | | | | | | | | | | | Replace several t-expect-push-fail with t-expect-push-fail-tainted. Abolish the adhoc use of --force-push-tainted. Adjust the expected errors accordingly. Fix the expected errors to use anchored patterns (see the comment for t-expect-push-fail-tainted). Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: debpolicy-newreject: Fix a mistaken t-expect-push-failIan Jackson2022-12-28
| | | | | | | This is not anything to do with push. (Not sure why this isn't a call to t-git-objects-not-present.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Improve t-expect-push-fail-taintedIan Jackson2022-12-28
| | | | | | | Make it take one string, and expect the same message both locally and when printed by the remote. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Use common message generator in dgitIan Jackson2022-12-28
| | | | | | The messages now come out the same. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects (cleanup): Move t-expect-push-fail-tainted to libIan Jackson2022-12-28
| | | | | | And rename it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects tests: Test for --d-n-f-f when not sufficientIan Jackson2022-12-28
| | | | | | | Check that saying --deliberately-not-fast-forward when it's not actually reound, doesn't help. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tainted-objects tests: Check error messages are in right contextIan Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Test that tainted commits are retriableIan Jackson2022-12-28
| | | | | | And test that they still fail if forced. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Provide t-expect-push-fail-retriablyIan Jackson2022-12-28
| | | | | | Our new checks on tainted objects will use this. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Bodge debpolicy-newreject for forthcoming work (2)Ian Jackson2022-12-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Bodge debpolicy-newreject for forthcoming workIan Jackson2022-12-28
| | | | | | | | | | | The early detection is going to change quite a few some error messages, since they'll be generated from different information in a different way. For now, pass the force option that forces the previous behaviour, where the server rejects it. That retains the error message. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: debpolicy-taintrm: Add before-cut test tooIan Jackson2022-12-27
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: --quilt=try-linear: Convert the test caseIan Jackson2022-12-26
| | | | | | Testing only the new spelling is fine I think. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: --quilt=auto: Add a test caseIan Jackson2022-12-26
| | | | | | Apparently we don't have one of these! Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Scan for duplicated orig tarballs with different names (test)Ian Jackson2022-12-26
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: sbuild-gitish: Pass -v to sbuildIan Jackson2022-12-26
| | | | | | | | This doesn't appear in the default rune, but we want it for our testing. Hopefully adding it won't cause bad divergence between test case and reality. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* include-binaries: Silently tolerate mentions of debian/Ian Jackson2022-12-26
| | | | | Closes: #1026918 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: rpush: Add test cases for configurable aliasIan Jackson2022-12-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: rpush: Break out t-dgit-rpushIan Jackson2022-12-11
| | | | | | | | | We're going to want to call this several times. Use the config override here. This is going to become the test case for all that. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Make rpush be a configurable alias like pushIan Jackson2022-12-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: test rpush-sourceIan Jackson2022-12-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: rpush: Remove some commented out codeIan Jackson2022-12-11
| | | | | | This doesn't seem relevant any more, if it ever was. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: tests: include-binaries: Test forbidden stuff (2)Ian Jackson2022-12-11
| | | | | | | | | | | | Check that we get the expected warnings, and that dpkg-source hates a named pipe. (In practice if I nobble the code in dgit which checks all this, we get a different quilt fixup error, but not after dgit caused tar to read files it shouldn't and make unreferenced git objects out of them, which is still bad.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: tests: include-binaries: Test forbidden stuff (1)Ian Jackson2022-12-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: tests: include-binaries: Basic testIan Jackson2022-12-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Do not use gdr to make patches with unmarked breakwater startIan Jackson2022-12-10
| | | | | | | | | | | | | | We must also adjust the gdr-fresh test case: now its patches are made by dgit, not gdr. We now check that they are correct (that is, that dgit is now happy with things) but not what they look like). Several other test cases test the dgit gdr makepatches functionality, calling t-gdr-made-patches (via t-gdr-good, for example). (I have verified that changing the remaining "return 1" from branch_is_gdr to "return 0" does cause many test failures.) Closes: #1015779 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: quilt-splitbrains: Test that we gen cache if neededIan Jackson2022-11-11
| | | | | | Have tested that this fails before the previous fix. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: gdr-import-dgitview: Test conversion mismatchIan Jackson2022-11-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: gdr-import-dgitview: Make tree good before failing testIan Jackson2022-11-11
| | | | | | | Otherwise the check we're about to add spots the problem before the error we are checking for occurs. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit push: Add a test that we can make it mean push-sourceIan Jackson2022-09-04
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit push: Update testsIan Jackson2022-09-04
| | | | | | | | | | | | Change the global test git config to reject plain "git push". Update almost all tests to use "push-built". In some cases, change to using "push-source". In one case (chosen essentially arbitrarily), use the config override and continue using push to mean push-built. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: unrepresentable check: Restrict occurrence of LATE:Ian Jackson2022-09-03
| | | | | | | | | This represents a poor outcome which happily no longer occurs unless the user is using the deprecated-by-us "single-debian-patch" features. For more discussion see comments in quilt_fixup_dpkgsource_singlepatch. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>