Permalink
Browse files

Merge pull request #28 from e9925248/master

Improve debtransform test
  • Loading branch information...
2 parents 9bbb3cc + 9c34f11 commit 17de8ce5d3816facc6739326925e38feeeab815b @adrianschroeter adrianschroeter committed Oct 8, 2012
View
BIN test-debtransform/1-out/grandorgue_0.3.0.6.1026.diff.gz
Binary file not shown.
View
12 test-debtransform/1-out/grandorgue_0.3.0.6.1026.dsc
@@ -0,0 +1,12 @@
+Format: 1.0
+Source: grandorgue
+Binary: grandorgue
+Architecture: any
+Version: 0.3.0.6.1026
+Maintainer: Martin Koegler <martin.koegler@chello.at>
+Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 7), cdbs, cmake, gettext, po4a, libjack-jackd2-dev, libasound2-dev, libwxgtk2.8-dev, docbook-xsl, xsltproc, zip, devscripts
+Files:
+ 7e72e6c31c2af52c227ce4c4c6ee3952 655 grandorgue_0.3.0.6.1026.orig.tar.gz
+ 6d0b166ecd6f5863a5bba1fd576f57a8 756 grandorgue_0.3.0.6.1026.diff.gz
+
View
BIN test-debtransform/1-out/grandorgue_0.3.0.6.1026.orig.tar.gz
Binary file not shown.
View
BIN test-debtransform/2-out/grandorgue_0.3.0.6.1026.diff.gz
Binary file not shown.
View
12 test-debtransform/2-out/grandorgue_0.3.0.6.1026.dsc
@@ -0,0 +1,12 @@
+Format: 1.0
+Source: grandorgue
+Binary: grandorgue
+Architecture: any
+Version: 0.3.0.6.1026
+Maintainer: Martin Koegler <martin.koegler@chello.at>
+Standards-Version: 3.9.1
+Build-Depends: debhelper (>= 7), cdbs, cmake, gettext, po4a, libjack-jackd2-dev, libasound2-dev, libwxgtk2.8-dev, docbook-xsl, xsltproc, zip, devscripts
+Files:
+ 7ab43adb27b5ce885dccd5526745a5a1 655 grandorgue_0.3.0.6.1026.orig.tar.gz
+ aee05a68c294747ab67965c8675f9821 756 grandorgue_0.3.0.6.1026.diff.gz
+
View
BIN test-debtransform/2-out/grandorgue_0.3.0.6.1026.orig.tar.gz
Binary file not shown.
View
23 test-debtransform/run.sh
@@ -1,17 +1,32 @@
#!/bin/bash
+function fail
+{
+ echo "$1: FAIL"
+ exit 1
+}
function run
{
rm -rf out
mkdir out
ERROR=0
PATH=..:$PATH ../debtransform $1 $1/$2 out || ERROR=1
if [ "$ERROR" != "$3" ]; then
- echo "$1: FAIL"
- exit 1
+ fail $1
fi
echo "$1: OK"
+ if [ "$ERROR" = 0 ]; then
+ for a in out/*
+ do
+ NAME="`basename "$a"`"
+ case $NAME in
+ *.dsc)
+ debdiff $4/$NAME out/$NAME
+ ;;
+ esac
+ done
+ fi
}
-run 1 grandorgue.dsc 0
-run 2 grandorgue.dsc 0
+run 1 grandorgue.dsc 0 1-out
+run 2 grandorgue.dsc 0 2-out

0 comments on commit 17de8ce

Please sign in to comment.