X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ianmdlvl/git?p=dgit.git;a=blobdiff_plain;f=tests%2Flib-core;h=4550b9ec9d091b3b8d798c24b62576da521745ef;hp=c3a04cbaed1b215cfd62c33b7455976f7a2c4a73;hb=31a068bcb82e051b0bf31cf2ab4310e0ee2880d6;hpb=bc5f555f9853dabf9bcd13ca425b4728b1037ea9 diff --git a/tests/lib-core b/tests/lib-core index c3a04cba..4550b9ec 100644 --- a/tests/lib-core +++ b/tests/lib-core @@ -13,8 +13,10 @@ t-set-intree () { : ${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}" } @@ -23,8 +25,9 @@ t-set-using-tmp () { export DGIT_TEST_DUMMY_DIR=$tmp export DGIT_TEST_TMP=$tmp export GNUPGHOME=$tmp/nonexistent + export DEBFULLNAME='dgit test git user' git config --global user.email 'dgit-test@debian.example.net' - git config --global user.name 'dgit test git user' + git config --global user.name "$DEBFULLNAME" git config --global protocol.ext.allow always } @@ -38,3 +41,7 @@ t-filter-out-git-hyphen-dir () { path="${path%:}" PATH="$path" } + +t-sort () { + LC_COLLATE=C sort "$@" +}