]> git.saurik.com Git - apt.git/commitdiff
test/integration/: remove a bunch of "local" statements from the shellscript, keep...
authorMichael Vogt <mvo@debian.org>
Tue, 15 Feb 2011 15:04:46 +0000 (16:04 +0100)
committerMichael Vogt <mvo@debian.org>
Tue, 15 Feb 2011 15:04:46 +0000 (16:04 +0100)
12 files changed:
test/integration/create-test-data
test/integration/run-tests
test/integration/test-bug-254770-segfault-if-cache-not-buildable
test/integration/test-bug-330162-encoded-tar-header
test/integration/test-bug-593360-modifiers-in-names
test/integration/test-bug-601961-install-info
test/integration/test-bug-604222-new-and-autoremove
test/integration/test-bug-604401-files-are-directories
test/integration/test-bug-605394-versioned-or-groups
test/integration/test-bug-612557-garbage-upgrade
test/integration/test-release-candidate-switching
test/integration/test-ubuntu-bug-365611-long-package-names

index 581b62910d01ac283287003c67e7a43fa1661a0a..effbe1ea35139f463b5aa5c3d7c023235c6b9a71 100755 (executable)
@@ -6,7 +6,7 @@ if [ -z "$1" -o -z "$2" ]; then
        exit 1
 fi
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 BUILDDIRECTORY="${TESTDIR}/../../build/bin"
 
index 7314e6b6113a120d8d2b820539c18cab4838d875..edac07dbfd0cd289bd441fb92ab1c7d0b58d0914 100755 (executable)
@@ -1,6 +1,7 @@
 #!/bin/sh
 set -e
 
+FAIL=0
 DIR=$(readlink -f $(dirname $0))
 if [ "$1" = "-q" ]; then
        export MSGLEVEL=2
@@ -13,8 +14,14 @@ for testcase in $(run-parts --list $DIR | grep '/test-'); do
        else
                echo "\033[1;32mRun Testcase \033[1;35m$(basename ${testcase})\033[0m"
        fi
-       ${testcase}
+       if ! ${testcase}; then
+                 FAIL=$((FAIL+1))
+                 echo "$(basename $testcase) ... FAIL"
+        fi
        if [ "$1" = "-q" ]; then
                echo
        fi
 done
+
+echo "failures: $FAIL"
+exit $FAIL
index 25c564daa6e3a6880efd5df89480d62b9f62a01a..b9f45b131c49c0fecbf64489e47e8cb34933e972 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index fa01e0379a064399a3ba83160ff63f6f22570d2f..b3fae6bac31f9821fe86233e2ff6a8eb4a51adaf 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index c12503b0da4b9dc3dda553d626dd7d0411e6fc83..83a3cfabfdc7699731c18c7f19a2eaeb4373808a 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index b91bf36155df7f0b50032c0efacf9be33ea54fc3..914910597e2a7a307575541a62137ee35cd6ef95 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index 9187dd1cdacaa416f644ed34dffb29c3bc22d613..2875d547adee4c9189868beec6ff905d08745e77 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index 917fb106fc5a7203b028c618ca0f148eae8ef8e9..aae717a19a1b84355e4cb08a0590a2acdfa61584 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index 0d7ad77f6b52997c16360d78a55b4fcda9681f2b..0f09d29279b0dbae9cb4282f22afa6edbc0a8a4d 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index e2ffe615f21af45094a08ae9b06162a095a0b11e..3112e618c4df10b04cd8f05962cf9df3933f54f8 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index 5736945ab080f2609b9d3dc9ddd91b18d3070ef2..b6dbe99db4b6193013755ecc33eebd2ec54680f5 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"
index 28b55df3b106406296f483be7fc2fe4d5b48bf0b..894c8dc97d0df8bbde74f70204d83640a41e70ef 100755 (executable)
@@ -1,7 +1,7 @@
 #!/bin/sh
 set -e
 
-local TESTDIR=$(readlink -f $(dirname $0))
+TESTDIR=$(readlink -f $(dirname $0))
 . $TESTDIR/framework
 setupenvironment
 configarchitecture "i386"