X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Ftest.sh;h=6f1084b263486c2e1082e10e10bab56e97764ed5;hb=HEAD;hp=a76726643727970867e517364c27fb42c3098ce4;hpb=33cb2dd3546e3dd86fe914453f5ee354bce42678;p=config%2Fdotfiles.git diff --git a/t/test.sh b/t/test.sh deleted file mode 100755 index a767266..0000000 --- a/t/test.sh +++ /dev/null @@ -1,111 +0,0 @@ -#!/bin/sh - -# Small test file to check different --word-diff-regex settings in Git. - -# Copyright (C) 2012 Simon Ruderich -# -# This program is free software: you can redistribute it and/or modify -# it under the terms of the GNU General Public License as published by -# the Free Software Foundation, either version 3 of the License, or -# (at your option) any later version. -# -# This program is distributed in the hope that it will be useful, -# but WITHOUT ANY WARRANTY; without even the implied warranty of -# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -# GNU General Public License for more details. -# -# You should have received a copy of the GNU General Public License -# along with this program. If not, see . - - -set -e - -git_diff() { - git diff --color=never --word-diff=plain --word-diff-regex="$1" \ - | grep -v '^index ' >"result-$2.txt" - diff -u "../expected-$2.txt" "result-$2.txt" -} - - -# Setup test directory/files. -mkdir test -cd test - -git init > /dev/null -cat > test.txt < /dev/null - -cat > test.txt <