--- /dev/null
+#!/bin/bash
+
+cd $(dirname "$0")
+
+for dir in *
+do
+ if test -d $dir
+ then
+ echo -n "Test $dir... "
+ if $dir/run.sh >$dir/last-run.log 2>&1
+ then echo "ok."
+ else echo "failed!."
+ fi
+ fi
+done
+
--- /dev/null
+unreleased:
+ * Some change
+
+version 0.1:
+ * Initial Version
--- /dev/null
+diff -u -r old/changes new/changes
+--- old/changes ignored date
++++ new/changes ignored date
+@@ -1,5 +1,6 @@
+ unreleased:
+ * Some change
++ * Adding feature A
+
+ version 0.1:
+ * Initial Version
+diff -u -r old/src/code new/src/code
+--- old/src/code ignored date
++++ new/src/code ignored date
+@@ -1,3 +1,3 @@
+ This is the code.
+-It has some lines.
++It has some lines that we change to implement feature A.
+ That we want to edit.
--- /dev/null
+diff -u -r old/changes new/changes
+--- old/changes ignored date
++++ new/changes ignored date
+@@ -1,6 +1,7 @@
+ unreleased:
+ * Some change
+ * Adding feature A
++ * Adding feature B
+
+ version 0.1:
+ * Initial Version
+diff -u -r old/src/code new/src/code
+--- old/src/code ignored date
++++ new/src/code ignored date
+@@ -1,3 +1,4 @@
+ This is the code.
+ It has some lines that we change to implement feature A.
+ That we want to edit.
++Here we add a line to implement feature B
--- /dev/null
+Index: test/changes
+===================================================================
+--- test.orig/changes 2010-08-03 16:42:39.000000000 +0200
++++ test/changes 2010-08-03 18:41:31.000000000 +0200
+@@ -1,5 +1,7 @@
+ unreleased:
+ * Some change
++ * Adding feature A
++ * Adding feature B
+
+ version 0.1:
+ * Initial Version
+Index: test/src/code
+===================================================================
+--- test.orig/src/code 2010-08-03 16:42:39.000000000 +0200
++++ test/src/code 2010-08-03 18:41:51.000000000 +0200
+@@ -1,3 +1,4 @@
+ This is the code.
+-It has some lines.
++It has some lines that we change to implement feature A.
+ That we want to edit.
++Here we add a line to implement feature B
--- /dev/null
+This is the code.
+It has some lines.
+That we want to edit.
--- /dev/null
+unreleased:
+ * Some change
+
+version 0.1:
+ * Initial Version
--- /dev/null
+Index: test/changes
+===================================================================
+--- test.orig/changes 2010-08-03 16:42:39.000000000 +0200
++++ test/changes 2010-08-03 18:41:31.000000000 +0200
+@@ -1,5 +1,7 @@
+ unreleased:
+ * Some change
++ * Adding feature A
++ * Adding feature B
+
+ version 0.1:
+ * Initial Version
+Index: test/src/code
+===================================================================
+--- test.orig/src/code 2010-08-03 16:42:39.000000000 +0200
++++ test/src/code 2010-08-03 18:41:51.000000000 +0200
+@@ -1,3 +1,4 @@
+ This is the code.
+-It has some lines.
++It has some lines that we change to implement feature A.
+ That we want to edit.
++Here we add a line to implement feature B
--- /dev/null
+This is the code.
+It has some lines.
+That we want to edit.
--- /dev/null
+#!/bin/bash
+
+ed $1 <<__END__
+11t9
+wq
+__END__
--- /dev/null
+#!/bin/bash
+
+set -e
+
+cd $(dirname $0)
+
+if test -x ../../dist/build/ipatch/ipatch
+then IPATCH=$PWD/../../dist/build/ipatch/ipatch
+else IPATCH=ipatch
+fi
+export EDITOR="$PWD/edithunk.sh"
+
+rm -rf tmp
+
+cp -r before/ tmp
+cd tmp
+export PATH="..:$PATH"
+#$IPATCH split patches/testpatch
+( echo eynynpatches/featureA.patch
+ echo yypatches/featureB.patch
+)| $IPATCH split patches/testpatch
+
+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
+cd ..
+diff -r tmp after
+rm -rf tmp
+echo "Test done"
+