[SCM] exiv2 packaging branch, master, updated. debian/0.25-3.1-3734-gdcbc29a

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:43:31 UTC 2017


Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=4dd396c

The following commit has been merged in the master branch:
commit 4dd396c27837e7ea4cd629af2ea4c37d976efa62
Author: Robin Mills <robin at clanmills.com>
Date:   Mon Nov 5 02:54:09 2012 +0000

    Cygwin changes.
---
 test/functions.source | 16 ++++++++++++----
 test/testMSVC.sh      |  7 +++++++
 2 files changed, 19 insertions(+), 4 deletions(-)

diff --git a/test/functions.source b/test/functions.source
index 9de060a..d05537f 100644
--- a/test/functions.source
+++ b/test/functions.source
@@ -1,10 +1,11 @@
 #!/bin/bash
 
-#locale setting
+##
+# locale setting
+export LC_ALL=C
 
 ##
 # initialize globals
-export LC_ALL=C
 
 this=$(basename $0 .sh)
 here=$PWD
@@ -16,7 +17,7 @@ else
 fi
 
 exe=$(uname)
-if [ $exe==cygwin -o $exe==mingw ]; then
+if [ "${os:0:4}" == "CYGW" -o $exe==mingw ]; then
     exe=.exe
 else
     unset exe
@@ -107,7 +108,11 @@ reportTest()
         fi
     fi
 
-    diff -q $diffargs $lhs $rhs
+    if [ "$PLATFORM" == "cygwin" ]; then
+    	diff -q $diffargs $(cygpath -aw $lhs) $(cygpath -aw $rhs)
+    else
+    	diff -q $diffargs $lhs $rhs
+    fi
     rc=$?
     if [ $rc -eq 0 ] ; then
         echo "all testcases passed."
@@ -242,6 +247,9 @@ prepareTest()
 	os=$(uname)
 	if [ "${os:0:4}" == "CYGW" ]; then
 		export "PATH=$PWD/../msvc:$PATH"
+		export PLATFORM=cygwin
+	else
+		export PLATFORM=$os
 	fi
 
     tmpfile=$here/tmp/$this
diff --git a/test/testMSVC.sh b/test/testMSVC.sh
index 5934be0..445cc20 100755
--- a/test/testMSVC.sh
+++ b/test/testMSVC.sh
@@ -9,6 +9,13 @@ if [ -z $msvc ]; then
 	exit
 fi
 
+if [ ! -d "$msvc" ]; then
+	echo directory "$msvc" does not exist
+	exit
+else
+	msvc=$(readlink -f "$msvc")
+fi
+
 if [ -z $test ]; then
 	test=tests
 fi

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list