]> git.saurik.com Git - apt.git/blobdiff - test/libapt/run-tests.sh
* apt-pkg/deb/dpkgpm.cc:
[apt.git] / test / libapt / run-tests.sh
index 1fcfb686110480de330042ca9f6dacb18fcfd2dd..cb7769e4a03d52a55f374ac7f0f7a345227f336b 100755 (executable)
@@ -2,6 +2,7 @@
 set -e
 
 echo "Compiling the tests ..."
+test -d '../../build/obj/test/libapt/' || mkdir -p '../../build/obj/test/libapt/'
 make
 echo "Running all testcases ..."
 LDPATH=$(pwd)/../../build/bin
@@ -39,6 +40,13 @@ do
                        "${tmppath}/01invalĂ­d"
                ln -s "${tmppath}/anormalfile" "${tmppath}/linkedfile.list"
                ln -s "${tmppath}/non-existing-file" "${tmppath}/brokenlink.list"
+       elif [ $name = "getLanguages${EXT}" ]; then
+               echo "Prepare Testarea for \033[1;35m$name\033[0m ..."
+               tmppath=$(mktemp -d)
+               touch "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-tr" \
+                       "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-pt" \
+                       "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-se~" \
+                       "${tmppath}/ftp.de.debian.org_debian_dists_sid_main_i18n_Translation-st.bak"
        fi
 
        echo -n "Testing with \033[1;35m${name}\033[0m ... "