X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-core;h=724c8acafbf3c21600f906c30b54fc58b5cc7a35;hp=cbfda462382fb303fb4f8ad7120c52d998df8b45;hb=4f0df1ece5587950332b2a6e3a4b54e4e7959bdd;hpb=254a2c58e582e4536ef7a8feada775139e7ca9d5 diff --git a/tests/lib-core b/tests/lib-core index cbfda462..724c8aca 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -12,8 +12,11 @@ t-set-intree () { : ${DGIT_REPOS_SERVER_TEST:=$DGIT_TEST_INTREE/infra/dgit-repos-server} : ${DGIT_SSH_DISPATCH_TEST:=$DGIT_TEST_INTREE/infra/dgit-ssh-dispatch} : ${DGIT_INFRA_PFX:=$DGIT_TEST_INTREE${DGIT_TEST_INTREE:+/infra/}} + : ${DGIT_GITDEBREBASE_TEST:=$DGIT_TEST_INTREE/git-debrebase} + : ${DGIT_MANPAGES_SOURCE_DIR:=$DGIT_TEST_INTREE} export DGIT_TEST DGIT_BADCOMMIT_FIXUP export DGIT_REPOS_SERVER_TEST DGIT_SSH_DISPATCH_TEST + export DGIT_MANPAGES_SOURCE_DIR export PERLLIB="$DGIT_TEST_INTREE${PERLLIB:+:}${PERLLIB}" } @@ -24,10 +27,11 @@ t-set-using-tmp () { export GNUPGHOME=$tmp/nonexistent git config --global user.email 'dgit-test@debian.example.net' git config --global user.name 'dgit test git user' + git config --global protocol.ext.allow always } t-filter-out-git-hyphen-dir () { - local pathent=$(type -p git-rev-parse ||:) + local pathent; pathent=$(type -p git-rev-parse ||:) case "$pathent" in '') return ;; esac pathent=${pathent%/*} local path=":$PATH:" @@ -36,3 +40,7 @@ t-filter-out-git-hyphen-dir () { path="${path%:}" PATH="$path" } + +t-sort () { + LC_COLLATE=C sort "$@" +}