[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:39 UTC 2017
Gitweb-URL: http://git.debian.org/?p=pkg-kde/kde-extras/exiv2.git;a=commitdiff;h=06534b6
The following commit has been merged in the master branch:
commit 06534b62ef0fe5856ba7358ec4e968d018e82e95
Author: Robin Mills <robin at clanmills.com>
Date: Tue Apr 2 04:35:38 2013 +0000
testsuite: samples/Makefile reports pkg-config unavailable. test/Makefile reports samples not built. functions.source augmented appropriately.
---
samples/Makefile | 4 ++++
test/Makefile | 5 ++++-
test/functions.source | 47 +++++++++++++++++++++++++++++++++++++++++++++++
3 files changed, 55 insertions(+), 1 deletion(-)
diff --git a/samples/Makefile b/samples/Makefile
index 8242706..3b07e33 100644
--- a/samples/Makefile
+++ b/samples/Makefile
@@ -83,6 +83,9 @@ BINSRC = addmoddel.cpp \
# Initialisations
SHELL = /bin/sh
+PKGCONFIG=pkg-config
+BAR='****************************************'
+
.SUFFIXES:
.SUFFIXES: .c .cpp .o .so
@@ -105,6 +108,7 @@ endif
samples: $(BINARY) $(OTHER)
$(BINOBJ): %.o: %.cpp
+ @if [ -z `which $(PKGCONFIG)` ]; then echo $(BAR) $'\n***' utility $(PKGCONFIG) not available $'***
'$(BAR) ; exit 42 ; fi
$(COMPILE.cc) -I../src -o $@ $<
@$(MAKEDEPEND)
@$(POSTDEPEND)
diff --git a/test/Makefile b/test/Makefile
index 5607f0d..2126abb 100644
--- a/test/Makefile
+++ b/test/Makefile
@@ -90,7 +90,10 @@ tests:
test:
@list='$(TESTS)'; for p in $$list; do \
echo Running $$p ...; \
- ./$$p; \
+ ./$$p; \
+ rc=$$?; \
+ if [ $$rc -ne 0 ]; then echo result = $$rc ; fi ; \
+ if [ $$rc -gt 2 ]; then exit $$rc ; fi ; \
done
testv:
diff --git a/test/functions.source b/test/functions.source
index 6514241..65a14f9 100644
--- a/test/functions.source
+++ b/test/functions.source
@@ -341,6 +341,41 @@ extendedTest()
}
##
+# http://stackoverflow.com/questions/1055671/how-can-i-get-the-behavior-of-gnus-readlink-f-on-a-mac
+real_path ()
+{
+ OIFS=$IFS
+ IFS='/'
+ for I in $1; do
+ # Resolve relative path punctuation.
+ if [ "$I" = "." ] || [ -z "$I" ]; then
+ continue
+ elif [ "$I" = ".." ]; then
+ FOO="${FOO%%/${FOO##*/}}"
+ continue
+ else
+ FOO="${FOO}/${I}"
+ fi
+
+ ## Resolve symbolic links
+ if [ -h "$FOO" ]; then
+ IFS=$OIFS
+ set `ls -l "$FOO"`
+ while shift ; do
+ if [ "$1" = "->" ]; then
+ FOO=$2
+ shift $#
+ break
+ fi
+ done
+ IFS='/'
+ fi
+ done
+ IFS=$OIFS
+ echo "$FOO"
+}
+
+##
# prepare temp files and other variables
prepareTest()
{
@@ -416,6 +451,18 @@ prepareTest()
da2=""
fi
diffargs="$da1 $da2"
+
+ ##
+ # test that exiv2 and some sample apps are in the bin!
+ for e in exiv2 exifprint; do
+ e="${bin}/${e}${exe}"
+ if [ ! -e "$e" ]; then
+ echo '******************************************'
+ echo '***' $(real_path "$e") does not exist
+ echo '******************************************'
+ exit 42
+ fi
+ done
}
prepareTest
--
exiv2 packaging
More information about the pkg-kde-commits
mailing list