Nicer diff in test output
[darcs-mirror-ipatch.git] / tests / split1 / run.sh
1 #!/bin/bash
2
3 set -e
4
5 cd $(dirname $0)
6
7 if test -x ../../dist/build/ipatch/ipatch
8 then IPATCH=$PWD/../../dist/build/ipatch/ipatch
9 else IPATCH=ipatch
10 fi
11 export EDITOR="$PWD/edithunk.sh"
12
13 rm -rf tmp
14
15 cp -r before/ tmp
16 cd tmp
17 export PATH="..:$PATH"
18 #$IPATCH split patches/testpatch
19 ( echo eynynpatches/featureA.patch
20   echo yypatches/featureB.patch 
21 )| $IPATCH split patches/testpatch
22
23 perl -p -i -e 's/\d\d\d\d-\d\d-\d\d \d\d:\d\d:\d\d.\d+ .\d\d\d\d/ignored date/' patches/feature?.patch
24 cd ..
25 diff -ur after tmp
26 rm -rf tmp
27 echo "Test done"
28