Testsuite with testdata
authorJoachim Breitner <joachim.breitner@itomig.de>
Fri, 12 Jun 2009 10:24:47 +0000 (10:24 +0000)
committerJoachim Breitner <joachim.breitner@itomig.de>
Fri, 12 Jun 2009 10:24:47 +0000 (10:24 +0000)
testdata/7z465.exe [new file with mode: 0755]
testsuite.sh

diff --git a/testdata/7z465.exe b/testdata/7z465.exe
new file mode 100755 (executable)
index 0000000..a47c89f
Binary files /dev/null and b/testdata/7z465.exe differ
index 35a40a6..ce44edf 100755 (executable)
@@ -13,7 +13,7 @@ fi
 set -e
 set -x
 
-sourcedir="$(dirname "$PWD/$0")"
+sourcedir="$(dirname "`pwd`/$0")"
 tmpdir=$(mktemp -t -d wine-app-packager-test.XXXXXXXX)
 trap "rm -rf \"$tmpdir\"" EXIT
 cd $tmpdir
@@ -47,18 +47,20 @@ then
        exit 1
 fi
 
-$WAP run $sourcedir/testdata/7z465.exe /S
+cp $sourcedir/testdata/7z465.exe ../
+$WAP run ../7z465.exe /S
+sleep 1
 
 $WAP commit
 
 echo This should fail:
-! dpkg-buildpackage -uc -us 
+! debuild -uc -us 
 
 echo Setting .exe name in script
 sed -i -e 's/EXE=.*/EXE='\''c:\\Programme\\7-Zip\\7zFM.exe'\''/' 7z
 
 echo And now this should work:
-dpkg-buildpackage -uc -us 
+debuild -uc -us 
 
 if ! debc | grep -q ./opt/wineapps/wine-7z/drive_c/Programme/7-Zip/7zFM.exe
 then