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

Maximiliano Curia maxy at moszumanska.debian.org
Thu Jul 13 17:36:24 UTC 2017


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

The following commit has been merged in the master branch:
commit f5f0384369cfa11a0da97464e5b0172f387d7b7a
Author: Andreas Huggel <ahuggel at gmx.net>
Date:   Mon May 31 16:45:31 2004 +0000

    Added ifd-test
---
 src/Makefile     |  8 ++++----
 src/ifd-test.cpp | 60 ++++++++++++++++++++++++++++++++++++++++++++++++++++++++
 2 files changed, 64 insertions(+), 4 deletions(-)

diff --git a/src/Makefile b/src/Makefile
index 67f3f6a..883ce0b 100644
--- a/src/Makefile
+++ b/src/Makefile
@@ -20,7 +20,7 @@
 # 02111-1307, USA.
 #
 # File:      Makefile
-# Version:   $Name:  $ $Revision: 1.24 $
+# Version:   $Name:  $ $Revision: 1.25 $
 # Author(s): Andreas Huggel (ahu) <ahuggel at gmx.net>
 # History:   10-Dec-03, ahu: created
 #
@@ -55,8 +55,8 @@ CCSRC = canonmn.cpp exif.cpp fujimn.cpp ifd.cpp image.cpp makernote.cpp \
         nikonmn.cpp sigmamn.cpp tags.cpp types.cpp value.cpp
 
 # Add source files of simple applications to this list
-BINSRC = addmoddel.cpp exifcomment.cpp exifprint.cpp makernote-test.cpp \
-         taglist.cpp write-test.cpp 
+BINSRC = addmoddel.cpp exifcomment.cpp exifprint.cpp ifd-test.cpp \
+         makernote-test.cpp taglist.cpp write-test.cpp 
 
 # State the main source file of the Exiv2 application here
 EXIV2MAIN = exiv2.cpp
@@ -115,7 +115,7 @@ SHAREDLIB = lib$(LIBNAME)$(SHAREDLIB_SUFFIX)
 ifdef STATIC_LIBS
     LIBRARY = archive
     INSTALL = bin
-    UNINSTALL = bin
+    UNINSTALL = 
     INSTALL_LIB = install-archive
     UNINSTALL_LIB = uninstall-archive
     LDLIBS := mn.o $(LDLIBS)
diff --git a/src/ifd-test.cpp b/src/ifd-test.cpp
new file mode 100644
index 0000000..600c900
--- /dev/null
+++ b/src/ifd-test.cpp
@@ -0,0 +1,60 @@
+#include "ifd.hpp"
+#include "error.hpp"
+
+#include <iostream>
+#include <string>
+
+/*
+  Test cases:
+  - IFD entry offset is 0
+  - Wrong endianness
+
+
+
+*/
+
+int main()
+try {
+    long len = 75;
+    char buf[] 
+        = { // No
+            0x00,0x04, 
+            // Tag       Type          Components          Offset/Data
+            0x00,0x01, 0x00,0x02, 0x00,0x00,0x00,0x04, 'T', 'h', 'e', '

-- 
exiv2 packaging



More information about the pkg-kde-commits mailing list