test suite: Add --force-reusing-version to many tests 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: Introduce t-ok. No functional change. perl -i~ -pe 's/^echo ok\.$/t-ok/' tests/tests/*[^~] perl -i~ -pe 's/^echo ok\.$/t-ok/' tests/setup/*[^~] perl -i~ -pe 's/^echo done\.$/t-ok/' tests/tests/*[^~] perl -i~ -pe 's/^echo done\.$/t-ok/' tests/setup/*[^~] Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Tag change: Test suite: Introduce $tagpfx Currently this is `test-dummy' (the distro the tests work with). Have checked that after this commit find tests -type f | xargs perl -i~ -pe 's/\$tagpfx/test-dummy/g' puts everything back. (This does not prove I have changed the right set of occurrences, but it does suggest that each actual change is good.) No functional change. Signed-off-by: Ian Jackson <ijackson@chiark.greenend.org.uk>
Test dgit-repos-policy-debian with multiple (identical, as it happens) existing taints.
Test suite: Replace open-coded $tmp/git/$p.git
Test suite: Use "dgit setup-mergechangelogs" and abolish t-prep-mergechangelogs
For non-Debian distros, debiantag() uses distro name a la DEP-14.
Test suite: Test dgit-repos-policy-debian database retry
Test suite: Test that --deliberately-not-fast-forward only works duuring NEW phase
Test suite: Test that trying to reintroduce tainted history fails
Test suite: Provide t-prep-mergechangelogs and use it in debpolicy-newreject
Test suite: Test that taints get auto removed
Test suite: Wrap a line (nfc)
Test suite: t-expect-push-fail checks HEAD object did not arrive
Test suite: test forbidden objects not present
Test suite: Use t-expect-push-fail everywhere
Test suite: Make t-expect-fail flexible wrt which grep to run Change the default to fgrep, and override it in the places where this is needed. Also use shell substitution to quote .s in tag name in debpolicy-newreject.
Test suite: add some replay prevention tests
Infra: Add dgit-repos-policy-trusting Also add the --deliberately-fresh-repo deliberately, both to the manpage and to dgit's idea of non-fast-forward-ness. Rename the dgit test only deliberatelies to start with TEST-dgit-only- rather than having the -dgit-only at the end.
Test suite: move t-commit and break out t-policy (nfc)