summaryrefslogtreecommitdiff
path: root/tests/tests
Commit message (Collapse)AuthorAge
...
* 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-native: New testIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Break out t-tagupl-*Ian Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Drop a now-irrelevant chunk of commented codeIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: tagupl: Use git-debpushIan Jackson2019-07-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* git-debpush: new binary packageSean Whitton2019-07-07
| | | | Signed-off-by: Sean Whitton <spwhitton@spwhitton.name>
* test suite: tagupl: New test case for new dgit-repos-server modeIan Jackson2019-07-06
| | | | | | Currently we hand-synthesise a suitable tag. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: debpolicy-taintrm: Drop some xxx'sIan Jackson2019-07-01
| | | | | | | | Testing without t-policy-periodic is probably more rigorous (and we have other tests that do run it). We don't want to duplicate this test, as its value is probably not that great compared to its runtime. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: debpolicy-taintrm: New testIan Jackson2019-07-01
| | | | | Closes: #929249 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-plusgit: New test for baredebian+gitIan Jackson2019-06-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: Break out baredebian-test-minimumIan Jackson2019-06-30
| | | | | | | | Update all callers. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-*: Drop explicit list of implied depsIan Jackson2019-06-30
| | | | | | | | These are now handled by the scanning of t-import-*. Change to the output is simply to move quilt earlier in the list. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-multitar: Check tarball import structureIan Jackson2019-06-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-multitar: New testIan Jackson2019-06-30
| | | | | | | | We should exercise all that tarball import machinery. The test doesn't yet really examine the results. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: Break out baredebian-tarball-modeIan Jackson2019-06-30
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-tarball: New testIan Jackson2019-06-30
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: move setting of $quiltmode to libIan Jackson2019-06-30
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: lib-baredebian: Introduce $quiltmodeIan Jackson2019-06-30
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: break out lib-baredebian, baredebian-testIan Jackson2019-06-30
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian: Add missing dependency quilIan Jackson2019-06-30
| | | | | | This was simply missing and causes the formal adt run to fail. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-push: Add missing dependency DEBORIGIan Jackson2019-06-30
| | | | | | | Our enumeration system does not capture dependencies from t-setup-import. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-push: Test rejection of -wgfIan Jackson2019-06-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-push: Check that history is roughly rightIan Jackson2019-06-29
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian-push: Actually test --quilt=baredebianIan Jackson2019-06-29
| | | | | | This is all quite awful really. I think that is inherent. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: baredebian setup, and a skeleton to run itIan Jackson2019-06-29
| | | | | | The baredebian-push test will be fleshed out in a moment. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: new test forcesplit-linearIan Jackson2019-06-28
| | | | | | Test split view with non-splitting quilt mode. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: forcesplit-overwrite: Test with bare --overwriteIan Jackson2019-06-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: forcesplit-overwrite: Test without --overwriteIan Jackson2019-06-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: forcesplit-overwrite: Break out "try"Ian Jackson2019-06-28
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: forcesplit-overwrite: Check -pushed-goodIan Jackson2019-06-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite; New test forcesplit-overwriteIan Jackson2019-06-28
| | | | | | | | Still needs: * checking that we didn't move HEAD * checking HEAD tree is equal Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* infra: Drop support for old tag name on server sideIan Jackson2019-06-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Drop all testing of old tag formats, and compatibilityIan Jackson2019-06-28
| | | | | | | | | | | This is quite old now. We are dropping support for it. The new tags came in in dgit 2.0 in October 2016. No version of dgit without them was in any Debian release. We don't expect there are any sites using old servers which do not support the new format, or anyone using a dgit client older than 2.x who cannot upgrade. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-{unapplied,dpm}-pushed-good: set $suiteIan Jackson2019-06-28
| | | | | | | | t-pushed-good-core wants suite to be set. Rather than having it implicit, make it an argument. Fix the two call sites where suite was not trivially `sid'. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: rpush-quilt: New test to check rpush with splittingIan Jackson2019-06-28
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: import-dsc: New test for abs/rel dsc component linksIan Jackson2019-03-01
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: import-dsc: Handle relative symlinks correctlyIan Jackson2019-03-01
| | | | | | | | | The logic here was correct only with bpd = `..'. Closes: #913259 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk> squash!! dgit: import-dsc: Handle relative symlinks correctly
* test suite: Test that we can copy an orig from bpdIan Jackson2019-01-06
| | | | | | | Manually move just the .orig from the bpd to `..'. Then check that when we are done they are (links to) the same file. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: Pass --no-source-only-changes to pbuilder and cowbuilderIan Jackson2019-01-05
| | | | | | | | | | | This will break with older versions of pbuilder and cowbuilder, unfortunately. That breakage can be worked around by passing dgit one or both of the new options: --pbuilder!:--no-source-only-changes --cowbuilder!:--no-source-only-changes Closes: #904862. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: manpages-format: pass --warningsIan Jackson2018-11-08
| | | | | Suggested-by: Colin Watson <cjwatson@chiark.greenend.org.uk> Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: push-source-with-changes: Make it test -wddaIan Jackson2018-10-13
| | | | | | | | | | We have plenty of other places where we used -wddn or ,no-check. Here we have an opportunity to test -wdda: create a ~ file (which would be ignored), clean everything else, and check that -wdda fails but the default (-wdd) succeds. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: push-source*: Drop --dpkg-buildpackage:-dIan Jackson2018-10-13
| | | | | | | | | These have been here since these test was created. I think this must have been done by copying the example of some other tests - but those other tests didn't use the `example' test package and actually needed it. `example' does not. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: dgit: Test that -wd catches the uncommitted changesIan Jackson2018-10-13
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: --clean=dpkg-source: Check for untracked unignored filesIan Jackson2018-10-13
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | We would like to spot if the user forgot to `git add' a file. This can be done by calling clean_tree_check_git, after rules clean (if applicable). We need to make this configurable. We do so via the clean mode, with a comma-separated checking control suffix (and short aliases) like we did for --clean=git,ignores. The default should be cautious, ie to do this check, but often the user will want to disable it because the source package has a buggy clean target or no or insufficient .gitignore. Existing users should probably get the new check until they choose otherwise (which we have made easier for them with the .clean-mode-newer config option). So we change the meanings of -wd and -wdd to include the new check, and provide new build modes ...,no-check aka -wdn / -wddn to disable it. To implement this we introduce a new clean_tree_check_git_wd function to do the actual work, particularly because both during cleaning and cleanliness checking, we want to print some hints to the user if the check fails. We can't do the new check if we applied patches dirtily to run the rules target, because it will trip over the result of patch application. This way of working is just too poor to support this new check. The test suite generally tests the default versions, not the no-check versions. We must teach the test to expect the new check. This is most easily done with a separate case for the check side of the -wd clean modes. And we need to support the no-check variant too, because: The push-source-with-changes test does in fact work with a built tree and needs to test the no-check variant. The gbp tests sometimes involve patch application. Rather than trying to predict which of them do (in which cases there would be no clean check), we force them all to ,no-check. The oldnewtagalt test can use -wgf. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gdr-makepatches7: Test dgit with missing git-debrebaseIan Jackson2018-10-04
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: gdr-makepatches7: Fix test for broken git-debrebaseIan Jackson2018-10-04
| | | | | | | | | | | dgit should treat git-debrebase not existing the same way as it exiting 7 (which in fact, is the same way it treats it succeeding). We are going to fix that. But first we need to make this test case not expect dgit to break in this situation. To test dgit with an actually *broken* git-debrebase, we specify `false' instead. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* i18n: po4a: Add a test that po4a.cfg is up to dateIan Jackson2018-10-04
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>