GraphicsMagick: WPG: Disable adjoin. Add writer sanity tests.

GraphicsMagick Commits <[email protected]>
Newsgroups gmane.comp.video.graphicsmagick.cvs
Message-ID <mailman.2112.1673820654.1507.graphicsmagick-commit@lists.sourceforge.net>
changeset d5263c5af4fc in /hg/GraphicsMagick
details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=d5263c5af4fc
summary: WPG: Disable adjoin.  Add writer sanity tests.

diffstat:

 ChangeLog          |   5 +++++
 coders/wpg.c       |   1 +
 tests/rwblob.tap   |  10 ++++++++--
 tests/rwfile.tap   |   9 ++++++++-
 www/Changelog.html |   5 ++++-
 5 files changed, 26 insertions(+), 4 deletions(-)

diffs (101 lines):

diff -r 69e60c3218ba -r d5263c5af4fc ChangeLog
--- a/ChangeLog	Sun Jan 15 15:43:01 2023 -0600
+++ b/ChangeLog	Sun Jan 15 16:10:44 2023 -0600
@@ -1,7 +1,12 @@
 2023-01-15  Bob Friesenhahn  <[email protected]>
 
+	* tests/rwblob.tap: Add sanity test for WPG format.
+
+	* tests/rwfile.tap: Add sanity test for WPG format.
+
 	* coders/wpg.c: Change line terminations back to ISO standard
 	format.
+	(RegisterWPGImage): WPG currently only supports one frame.
 
 	* Makefile.am: No longer produce ".sig" files since the ".asc"
 	files can do everything that the ".sig" files can do.
diff -r 69e60c3218ba -r d5263c5af4fc coders/wpg.c
--- a/coders/wpg.c	Sun Jan 15 15:43:01 2023 -0600
+++ b/coders/wpg.c	Sun Jan 15 16:10:44 2023 -0600
@@ -2117,6 +2117,7 @@
   entry->description="Word Perfect Graphics";
   entry->module="WPG";
   entry->seekable_stream=True;
+  entry->adjoin=MagickFalse;
   entry->coder_class=UnstableCoderClass;
   (void) RegisterMagickInfo(entry);
 }
diff -r 69e60c3218ba -r d5263c5af4fc tests/rwblob.tap
--- a/tests/rwblob.tap	Sun Jan 15 15:43:01 2023 -0600
+++ b/tests/rwblob.tap	Sun Jan 15 16:10:44 2023 -0600
@@ -1,5 +1,5 @@
 #!/bin/sh
-# Copyright (C) 2004-2018 GraphicsMagick Group
+# Copyright (C) 2004-2023 GraphicsMagick Group
 . ./common.shi
 . ${top_srcdir}/tests/common.shi
 
@@ -10,7 +10,7 @@
 check_types='bilevel gray pallette truecolor'
 
 # Number of tests we plan to run
-test_plan_fn 209
+test_plan_fn 213
 
 # ART format
 for type in ${check_types}
@@ -306,6 +306,12 @@
   test_command_fn "WEBP ${type} (lossless)" -F WEBP ${MEMCHECK} ${rwblob} -define webp:lossless=true "${SRCDIR}/input_${type}.miff" WEBP
 done
 
+# WPG format
+for type in ${check_types}
+do
+  test_command_fn "WPG ${type}" ${MEMCHECK} ${rwblob} "${SRCDIR}/input_${type}.miff" WPG
+done
+
 # XBM format
 for type in ${check_types}
 do
diff -r 69e60c3218ba -r d5263c5af4fc tests/rwfile.tap
--- a/tests/rwfile.tap	Sun Jan 15 15:43:01 2023 -0600
+++ b/tests/rwfile.tap	Sun Jan 15 16:10:44 2023 -0600
@@ -12,7 +12,7 @@
 check_types_noone='bilevel gray pallette truecolor'
 
 # Number of tests we plan to run
-test_plan_fn 818 # 820
+test_plan_fn 828 # 830
 
 # ART format
 for type in ${check_types}
@@ -490,6 +490,13 @@
   test_command_fn "WEBP ${type} (lossless)" -F WEBP ${MEMCHECK} ${rwfile} -filespec "out_${type}_lossless_%d" -define webp:lossless=true "${SRCDIR}/input_${type}.miff" WEBP
 done
 
+# WPG format
+for type in ${check_types}
+do
+  test_command_fn "WPG ${type}" ${MEMCHECK} ${rwfile} -filespec "out_${type}_%d" "${SRCDIR}/input_${type}.miff" WPG
+  test_command_fn "WPG ${type} (stdio)" ${MEMCHECK} ${rwfile} -stdio -filespec "out_${type}_stdio_%d" "${SRCDIR}/input_${type}.miff" WPG
+done
+
 # XBM format
 for type in ${check_types}
 do
diff -r 69e60c3218ba -r d5263c5af4fc www/Changelog.html
--- a/www/Changelog.html	Sun Jan 15 15:43:01 2023 -0600
+++ b/www/Changelog.html	Sun Jan 15 16:10:44 2023 -0600
@@ -40,8 +40,11 @@
 <p>2023-01-15  Bob Friesenhahn  &lt;<a class="reference external" href="mailto:bfriesen&#37;&#52;&#48;simple&#46;dallas&#46;tx&#46;us">bfriesen<span>&#64;</span>simple<span>&#46;</span>dallas<span>&#46;</span>tx<span>&#46;</span>us</a>&gt;</p>
 <blockquote>
 <ul class="simple">
+<li><p>tests/rwblob.tap: Add sanity test for WPG format.</p></li>
+<li><p>tests/rwfile.tap: Add sanity test for WPG format.</p></li>
 <li><p>coders/wpg.c: Change line terminations back to ISO standard
-format.</p></li>
+format.
+(RegisterWPGImage): WPG currently only supports one frame.</p></li>
 <li><p>Makefile.am: No longer produce &quot;.sig&quot; files since the &quot;.asc&quot;
 files can do everything that the &quot;.sig&quot; files can do.</p></li>
 </ul>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.