X-Git-Url: https://ruderich.org/simon/gitweb/?a=blobdiff_plain;f=t%2Ftest.sh;h=6f1084b263486c2e1082e10e10bab56e97764ed5;hb=HEAD;hp=aedbff09d350623626a03b886ae09d34321aaec8;hpb=c9007797b11ff8347ea47e3e2e71b7a1f6d7e278;p=config%2Fdotfiles.git diff --git a/t/test.sh b/t/test.sh deleted file mode 100755 index aedbff0..0000000 --- a/t/test.sh +++ /dev/null @@ -1,103 +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 <