chiark / gitweb /
po4a: pairwise-pocheck: Force it to be run sometimes
[dgit.git] / tests / lib-core
index 6cdffeb155a479288124a98d9e613016c04b4dcb..4550b9ec9d091b3b8d798c24b62576da521745ef 100644 (file)
@@ -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_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_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}"
 }
 
        export PERLLIB="$DGIT_TEST_INTREE${PERLLIB:+:}${PERLLIB}"
 }
 
@@ -22,8 +25,10 @@ t-set-using-tmp () {
        export DGIT_TEST_DUMMY_DIR=$tmp
        export DGIT_TEST_TMP=$tmp
        export GNUPGHOME=$tmp/nonexistent
        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.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
 }
 
 t-filter-out-git-hyphen-dir () {
 }
 
 t-filter-out-git-hyphen-dir () {
@@ -36,3 +41,7 @@ t-filter-out-git-hyphen-dir () {
        path="${path%:}"
        PATH="$path"
 }
        path="${path%:}"
        PATH="$path"
 }
+
+t-sort () {
+       LC_COLLATE=C sort "$@"
+}