Imported Upstream version 3.001.005
authorgregor herrmann <gregoa@debian.org>
Mon, 28 Jul 2014 14:31:40 +0000 (16:31 +0200)
committergregor herrmann <gregoa@debian.org>
Mon, 28 Jul 2014 14:31:40 +0000 (16:31 +0200)
Changes
META.json
META.yml
Makefile.PL
lib/Sereal/Encoder.pm
snappy/csnappy_internal_userspace.h
t/lib/Sereal/TestSet.pm

diff --git a/Changes b/Changes
index fca4f6e554584cd95c0bec9d5025b18782057288..012aff80f42a43425a07fd5c707516fbf7eb9fc9 100644 (file)
--- a/Changes
+++ b/Changes
@@ -3,6 +3,9 @@ Revision history for Perl extension Sereal-Encoder
 * Warning: For a seamless upgrade, upgrade to version 3
 *          of the decoder before upgrading to version 3 of the
 *          encoder!
+3.001_005 Mon, July 28 2014
+  - Fixup how MakeMaker runs the tests.
+
 3.001_004 Sun, July 27 2014
   - Rework bulk tests so that tests are grouped by options and version
   - Fixups for non-x86 architectures.
index 73ec5f691e33e80b9b5eb69df7f79c51766d5e4d..4e4ea9b723e7ceaea93edeee4fe6966e52ae0db6 100644 (file)
--- a/META.json
+++ b/META.json
@@ -55,5 +55,5 @@
          "url" : "git://github.com/Sereal/Sereal.git"
       }
    },
-   "version" : "3.001_004"
+   "version" : "3.001_005"
 }
index c70f07d7ceb39d935646ff078a3bd5d462937405..eed72e13107fe70dd02cfda39ed8d06266703f47 100644 (file)
--- a/META.yml
+++ b/META.yml
@@ -32,4 +32,4 @@ requires:
 resources:
   bugtracker: https://github.com/Sereal/Sereal/issues
   repository: git://github.com/Sereal/Sereal.git
-version: 3.001_004
+version: 3.001_005
index 0623e0d18a2bfe689f1e88d712ced1ee578c6cb4..f4fab2a214b66863419e620f457a4f11da1bd44e 100644 (file)
@@ -100,7 +100,7 @@ WriteMakefile1(
     OPTIMIZE          => $OPTIMIZE,
     OBJECT            => '$(O_FILES)',
     test              => {
-        RECURSIVE_TEST_FILES =>  1
+        TESTS => "t/*.t t/*/*/*.t",
     },
 );
 $ENV{OPTIMIZE} = $OPTIMIZE;
index fcdf786ea6aa85e761fc978405866f27dd5c5f7b..0a377d52918e0f041160f680705a0972e1b0aa31 100644 (file)
@@ -5,7 +5,7 @@ use warnings;
 use Carp qw/croak/;
 use XSLoader;
 
-our $VERSION = '3.001_004'; # Don't forget to update the TestCompat set for testing against installed decoders!
+our $VERSION = '3.001_005'; # Don't forget to update the TestCompat set for testing against installed decoders!
 our $XS_VERSION = $VERSION; $VERSION= eval $VERSION;
 
 # not for public consumption, just for testing.
index 33eaf3b84a02f3482944c322f29c1fc3b0abcbef..47e54ba15f2b4892d6ec22c2842a643afb4763bf 100644 (file)
@@ -189,11 +189,21 @@ Albert Lee
 #define int32_t int
 #define int16_t short
 
+#define __SNAPPY_STRICT_ALIGN
+
 #elif defined(__s390x__) || defined(__zarch__) || defined(__SYSC_ZARCH__)
 
+#ifndef __BIG_ENDIAN
 #define __BIG_ENDIAN    87654321
+#endif
+#ifndef __LITTLE_ENDIAN
 #define __LITTLE_ENDIAN 12345678
+#endif
+#ifndef __BYTE_ORDER
 #define __BYTE_ORDER __BIG_ENDIAN
+#endif
+
+#define __SNAPPY_STRICT_ALIGN
 
 #endif
 
@@ -269,7 +279,7 @@ static INLINE void UNALIGNED_STORE64(void *p, uint64_t v)
        ptr->x = v;
 }
 
-#elif defined(__hpux) || defined(__sparc) || defined(__sparc__) /* strict architectures */
+#elif defined(__SNAPPY_STRICT_ALIGN) || defined(__sparc) || defined(__sparc__) /* strict architectures */
 
 /* For these platforms, there really are no unaligned loads/stores.
  * Read/write everything as uint8_t. Smart compilers might recognize
index 1c53ec39d8ed63af03b83f3e2ee1b6012d24d3a8..283bd4a7a18c5b41443d7bee56bd32329317d44b 100644 (file)
@@ -619,11 +619,13 @@ our @ScalarRoundtripTests = (
     ["short ascii string", "fooo"],
     ["short latin1 string", "Müller"],
     ["short utf8 string", do {use utf8; " עדיין ח"}],
-    ["long ascii string", do{"abc" x 1000}],
-    ["long latin1 string", "üll" x 1000],
-    ["long utf8 string", do {use utf8; " עדיין חשב" x 1000}],
-    ["long utf8 string with only ascii", do {use utf8; "foo" x 1000}],
-    ["long utf8 string with only latin1 subset", do {use utf8; "üll" x 1000}],
+
+    ["long ascii string", do{"abc" x 10000}],
+    ["long latin1 string", "üll" x 10000],
+    ["long utf8 string", do {use utf8; " עדיין חשב" x 10000}],
+    ["long utf8 string with only ascii", do {use utf8; "foo" x 10000}],
+    ["long utf8 string with only latin1 subset", do {use utf8; "üll" x 10000}],
+
     ["simple regexp", qr/foo/],
     ["regexp with inline modifiers", qr/(?i-xsm:foo)/],
     ["regexp with modifiers", qr/foo/i],
@@ -686,7 +688,9 @@ our @RoundtripTests = (
     (map {["nested scalar ref to " . $_->[0], (\\($_->[1]))]} @ScalarRoundtripTests),
     (map {["array ref to " . $_->[0], ([$_->[1]])]} @ScalarRoundtripTests),
     (map {["hash ref to " . $_->[0], ({foo => $_->[1]})]} @ScalarRoundtripTests),
+    # ---
     (map {["array ref to duplicate " . $_->[0], ([$_->[1], $_->[1]])]} @ScalarRoundtripTests),
+    # ---
     (map {["array ref to aliases " . $_->[0], (sub {\@_}->($_->[1], $_->[1]))]} @ScalarRoundtripTests),
     (map {["array ref to scalar refs to same " . $_->[0], ([\($_->[1]), \($_->[1])])]} @ScalarRoundtripTests),
 );