Skip to content

Commit

Permalink
Add results for the debtransform test
Browse files Browse the repository at this point in the history
  • Loading branch information
Martin Koegler committed Oct 5, 2012
1 parent 11ef556 commit 9c34f11
Show file tree
Hide file tree
Showing 7 changed files with 43 additions and 4 deletions.
Binary file not shown.
12 changes: 12 additions & 0 deletions test-debtransform/1-out/grandorgue_0.3.0.6.1026.dsc
Original file line number Diff line number Diff line change
@@ -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

Binary file not shown.
Binary file not shown.
12 changes: 12 additions & 0 deletions test-debtransform/2-out/grandorgue_0.3.0.6.1026.dsc
Original file line number Diff line number Diff line change
@@ -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

Binary file not shown.
23 changes: 19 additions & 4 deletions test-debtransform/run.sh
Original file line number Diff line number Diff line change
@@ -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 9c34f11

Please sign in to comment.