summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAge
* tests: Update all using tests/update-db-compatIan Jackson2022-01-02
| | | | | | Closes: #1002927. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Call git gcIan Jackson2022-01-02
| | | | | | | We want to pack everything down, as we're going to commit this stuff as tarballs into dgit's permanent history ! Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Adjust worktrees too.Ian Jackson2022-01-02
| | | | | | Now all the tests pass even with the debhelper that doesn't support 5. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Strip all git-filter-branch original/ refsIan Jackson2022-01-02
| | | | | | | Apparently some of our trees have these already. This stops g-f-b from working. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Some more refactoringIan Jackson2022-01-02
| | | | | | Break out git_filter_strip_origs. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Add a reassuring message.Ian Jackson2022-01-02
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Add filtering of git-srcsIan Jackson2022-01-02
| | | | | | Empirically, this fixes a few more tests, as expected. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: Some refactoringIan Jackson2022-01-02
| | | | | | | | | We want the tree adjustment to be first-class program so we can run it. Setting its name as a variable makes this easier, too. Also, now we keep $toplevel, we can use it in a couple of plaxes. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests/update-db-compat: initial script to address dh compatIan Jackson2022-01-02
| | | | | | This fixes some tests already, if I run it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Use t-debchange in some places instead of dchIan Jackson2022-01-02
| | | | | | | | | | | | | Raw dch can hang reading stdin for confirmation because we forgot to set DEBEMAIL. Empirically it works some of the time. Maybe the parallel test ordering connects only some of the tests' stdin to the terminal, or something. Anyway, we have t-debchange and so we should be using it. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Set FILTER_BRANCH_SQUELCH_WARNING=1Ian Jackson2022-01-02
| | | | | | This gets rid of some pointless sleeps. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: test case for if user has diff.noprefix setIan Jackson2021-09-08
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Run even more parallelIan Jackson2021-09-08
| | | | | | Some tests block on each other or on locks. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* dgit: tolerate making quilt patches creating +x filesIan Jackson2021-09-08
| | | | | | | | | | | We allow files with mode 00755 too. This works now This seems to have been an accidental extension to the source formaat, resulting from an extension to GNU `diff` and `patch`, I think it is fair to allow it now. Closes: #949675 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Test creation of new symlink is treated as unrepresentableIan Jackson2021-09-08
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Add init.defaultBranch to two test casesIan Jackson2021-09-07
| | | | | | Our test suite is full of "master". So for now, just do these two tests. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Introduce t-debchange and set DEBEMAILIan Jackson2021-09-07
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: Print pwd in failure trapIan Jackson2020-06-22
| | | | | | This will help debugging. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Provide navigation banner when exiting nonzeroIan Jackson2020-06-22
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: manpages-format: Cope with buster & eatmydataIan Jackson2020-06-22
| | | | | | | | | | | | | | When man-db runs under eatmydata on buster, it (at least sometimes) prints this message ERROR: ld.so: object 'libeatmydata.so' from LD_PRELOAD cannot be preloaded (cannot open shared object file): ignored. (This is #963508 which I have just filed against glibc.) Obviously it would be better if this just worked, but for now we can definitely ignore this as it doesn't represent a bug in src:dgit's manpages. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: manpages-format: Provision for always-expected msgsIan Jackson2020-06-22
| | | | | | Currently there are none, so no functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* tests: import-dsc: Test corrupted ENV (#950446)Ian Jackson2020-02-02
| | | | | Closes: #950326 Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Add missing dependency on liburl-perlIan Jackson2019-09-13
| | | | | | | | | | | This is only a Recommends in dgit.deb so we need to pull it in explicitly for the tests that need it. We add the dependency unconditionally to the test suite tests that depend on dgit, since that avoids having to track exactly when it's needed. (This module has an Installed-Size of 228.) Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Test dgit-mirror-ssh-wrapIan Jackson2019-09-13
| | | | | | | This script will break if rsync changes the way it passes arguments to the peer. We need to catch that. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Check that archive skew machinery reports warningIan Jackson2019-09-06
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Check that archive skew machinery succeedsIan Jackson2019-09-06
| | | | | | | | This is actually the point of this test case. perling $tmp/aq/package... is a bit of a bodge, but fine. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: clone-skew: Test for accessing mirror via httpIan Jackson2019-09-06
| | | | | | | | | | This test is misnamed right now, but really we are going to make it do something interesting. Right now it just sets everything up to access the mirror via http rather than file://. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: t-archive: Honour t_archive_ln_sIan Jackson2019-09-06
| | | | | | | | This will let us arrange to use cp instead. No functional change for existing callers. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Test already-tagged checkIan Jackson2019-09-05
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Add --force-reusing-version to many testsIan Jackson2019-09-05
| | | | | | | This is going to be needed in a moment. Unknown --force options are harmless and just generate warnings, so we do this in advance. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: alternating-dgit: New testIan Jackson2019-08-11
| | | | | | | | | | This tests alternating dgit and non-dgit uploads. These were broken by the bug #934126 (check_for_git always returns false), in the http rework, and not detected by the test suite (!) This test *does* break if check_for_git always returns false. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Use http git check for three existing testsIan Jackson2019-08-11
| | | | | | | | | | | | | | At the very least we want at least one test which fails when check_for_git is nobbled ad-hoc [1] to return 1. "clone-nogit" fits that bill (verified experimentally). Pick two other tests to enable this for, roughly arbitrarily. (Two tests which chain to clone-nogit are affected too.) Of course we also want a test which fails when check_for_git falsely returns 0. We don't have one right now. Coming up... Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: examplegit: Call t-select-packageIan Jackson2019-08-11
| | | | | | | | | | This can save our importers from havig to t-select-package themselves. Drop the now-redundant call from the one importer that had it. Various of the importers call t-archive-* or t-git-* that also call t-select-package, but this is not a problem. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Break out t-non-dgit-uploadIan Jackson2019-08-11
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: http-git-check: New provisionIan Jackson2019-08-11
| | | | | | | | | Importing this makes us use a local http server for the git check. It's a setup so that it can imply the http-git-check dependency. Right now nothing imports this so no functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Honour new DGIT_TEST_KEEP_MUSTCLEANIan Jackson2019-08-11
| | | | | | | | | | | FTR, using this typically results in runes like DGIT_TEST_KEEP_MUSTCLEAN=y tests/using-intree tests/tests/ftpmasterapi-http 2>&1 | tee tests/tmp/log hanging instead of exiting, because the http server is still running and its stderr is still going to tee. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: Rename http-static-server from ftpmasterapi-Ian Jackson2019-08-11
| | | | | | | | We are going to use this for other things too. No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* http[s] tests: Add http test caseIan Jackson2019-08-11
| | | | | | Maybe we will turn this into a TLS test case in due course. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* http[s] tests: Fix stdout handling in ftpmaster test serverIan Jackson2019-08-11
| | | | Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* http[s] tests: More-or-less functional ftpmaster http serverIan Jackson2019-08-11
| | | | | | Not used anywhere yet. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* http[s] tests: Import and slightly hack example scriptIan Jackson2019-08-11
| | | | | | | | | | This is basically a copy of some of the example code from the HTTP::Server::Simple docs, hacked up with my own (so far) nonsense. Add copyright info to file and d/copyright. Upstream licence is Artistic or GPL-1+. We choose GPL-1+ and upgrade to GPL-3+. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: lib: Provide $tmp/must-clean directory to testsIan Jackson2019-08-11
| | | | | | | This is a directory for things which should be removed on exit. Currently there are none. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: enumerate-tests: Spot t-alt-testIan Jackson2019-08-10
| | | | | | | | And find the dependencies of the referred-to test. No functional change since currently no chained-to test has any nonstandard dependencies. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: enumerate-tests: gencontrol-add-things: restrictionsIan Jackson2019-08-10
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: enumerate-tests: gencontrol-add-things: delim featureIan Jackson2019-08-10
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* test suite: enumerate-tests: Break out gencontrol-add-thingsIan Jackson2019-08-10
| | | | | | No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
* 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>