summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* 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: enumerate-tests: include deps of t-import-*Ian Jackson2019-06-30
| | | | | | No change to the resulting output. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: enumerate-tests: Drop duplicate dependenciesIan Jackson2019-06-30
| | | | | | | No change to the output, other than to drop a second mention of `devscripts' from one stanza in debian/tests/control. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: enumerate-tests: Break out allsedderiesIan Jackson2019-06-30
| | | | | | No functional change. 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: lib-baredebian: Provide `origbase'Ian Jackson2019-06-30
| | | | | | | | Was just a local variable `orig'. Make it available. No functional change. 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: lib-baredebian: Machinery for multiple origsIan Jackson2019-06-30
| | | | | | No functional change with existing caller. 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: lib-baredebian: Tolerate uvtag not being setIan Jackson2019-06-30
| | | | | | No functional change with the existing test. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: lib-baredebian: Break out $uvtagIan Jackson2019-06-30
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: lib-baredebian: Break out $uv everywhereIan Jackson2019-06-30
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: lib-baredebian: Split up big functionIan Jackson2019-06-30
| | | | | | No functional change. 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: lib: Add missing dependencies for git-deborigIan Jackson2019-06-30
| | | | | | | I seem to have overlooked the 2nd line of the relevant part of the devscripts package description. 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: t-setup-done: Arrange to save all DGIT_TEST_REAL_*Ian Jackson2019-06-30
| | | | | | | | Otherwise the importer may end up with our stunt versions on their PATH, but without the necessary DGIT_TEST_REAL_* variables which stop infinite recursion. 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: Add DEBORIG pseudo-dependencyIan Jackson2019-06-29
| | | | 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: break out t-splitbrain-rm-1-patchIan Jackson2019-06-28
| | | | | | | | We are going to call this from one of the force split tests. No functional change. 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>
* test suite: Test --clean-git[-ff],alwaysIan Jackson2019-01-06
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: clean: Do check the tree even when building in playtreeIan Jackson2019-01-06
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | If we might be doing quilt fixup, then the quilt fixup's attempt to merge back into master might fail if there are uncommitted debian/patches. So it is sometimes wrong to just not clean at all. We don't want the behaviour to depend on the source package format, and ideally not on the clean mode. Also, the user may have forgotten to `git add', in which case they will thank us for spotting their mistake. In the original design table in https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=910705#56 says this for this case /: disregarded would be fine to delete but ** better to trip ? ** ** want opt to disregard ** but this was not implemented at the time. So implement that now. I think I have concluded that with -wg and -wgf the right way to turn these new failures into successes is to have a way to have the clean actually done. If that is not wanted, one can say -wn instead. This is particularly true given that ignoring the problem can produce confusing failure, as seen in #914317. So there will be a new --clean=git[-ff],always shortly. Closes: #914317 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: exmaplegit: Do not leave the tree dirtyIan Jackson2019-01-06
| | | | | | | | This test setup facility passed a dirty working tree to all of its consumers. That was not really intended or useful, and is about to start causing trouble. 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: pretend-pbuilder: Reject unknown optionsIan Jackson2019-01-05
| | | | | | The failure to do this was simply a bug. 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>