The following commit has been merged in the master branch:
commit 3bafe6534687381fa473573a941eaf215e9b67df
Author: Jon Dowland <[email protected]>
Date:   Thu Dec 17 16:28:43 2009 +0000

    test_slipstream

diff --git a/tests/runtests b/tests/runtests
index ef2c6d3..29f194d 100755
--- a/tests/runtests
+++ b/tests/runtests
@@ -1,5 +1,7 @@
 #!/bin/sh
 
+. ./lib/game-data-packager-shared
+
 test_verify_file_yes() {
   ./tests/lib/verify_file "tests/runtests"
   assertEquals $? 0
@@ -31,6 +33,20 @@ test_die() {
   ./tests/lib/die "diestring" 42
   assertEquals $? 42
 }
+test_slipstream() {
+    debsrc="./tests/empty.deb"
+    wd=`mktemp -td game-data-packager.tests.XXXXXX`
+    deb="$wd/empty.deb"
+    file="`readlink -f tests/testfile`"
+
+    cp -p "$debsrc" "$deb"
+    WORKDIR="$wd"
+    slipstream "$deb" "foo/bar/baz" "$file"
+    dpkg-deb -c "$deb" | grep "/foo/bar/baz$" >/dev/null
+    assertEquals $? 0
 
+    rm "$deb"
+    rmdir "$wd"
+}
 
 . ./tests/shunit2/shunit2

-- 
Installer for game data files

_______________________________________________
Pkg-games-commits mailing list
[email protected]
http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/pkg-games-commits

Reply via email to