GraphicsMagick: Added convert-batch.tap to explore the concept o...
GraphicsMagick Commits <[email protected]>
| Newsgroups | gmane.comp.video.graphicsmagick.cvs |
|---|---|
| Message-ID | <mailman.7147.1681672496.1602.graphicsmagick-commit@lists.sourceforge.net> |
changeset 8d0bf3a215fe in /hg/GraphicsMagick details: http://hg.GraphicsMagick.org/hg/GraphicsMagick?cmd=changeset;node=8d0bf3a215fe summary: Added convert-batch.tap to explore the concept of using 'gm batch' as part of TAP testing. diffstat: ChangeLog | 10 ++++++++++ utilities/tests/convert-batch.tap | 25 +++++++++++++++++++++++++ utilities/tests/convert-cmds.txt | 38 +++++++++++++++++++------------------- www/Changelog.html | 11 +++++++++++ 4 files changed, 65 insertions(+), 19 deletions(-) diffs (115 lines): diff -r ce48075c0e35 -r 8d0bf3a215fe ChangeLog --- a/ChangeLog Sun Apr 16 08:29:37 2023 -0500 +++ b/ChangeLog Sun Apr 16 14:14:47 2023 -0500 @@ -1,3 +1,13 @@ +2023-04-16 Bob Friesenhahn <[email protected]> + + * utilities/tests/convert-batch.tap: Added a TAP-like test script + which is similar to convert.tap, but is not really a TAP test + yet. This is to explore the concept of using 'gm batch' as part of + TAP testing. + + * utilities/tests/convert-cmds.txt: Backslash-escape double-quoted + filename. + 2023-04-16 Fojtik Jaroslav <[email protected]> * VisualMagick/CMakeLists.txt: Add posibility to use CMake for diff -r ce48075c0e35 -r 8d0bf3a215fe utilities/tests/convert-batch.tap --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/utilities/tests/convert-batch.tap Sun Apr 16 14:14:47 2023 -0500 @@ -0,0 +1,25 @@ +#!/bin/sh +# -*- shell-script -*- +# Copyright (C) 2020-2023 GraphicsMagick Group +# Test many 'convert' command-lines using 'gm batch' +# This is not yet a proper TAP test. +. ./common.shi +. ${top_srcdir}/utilities/tests/common.sh + +commands=${top_srcdir}/utilities/tests/convert-cmds.txt + +# Count how many commands there are +count=`sed -n '$=' ${commands}` + +# Number of tests we plan to execute +test_plan_fn ${count} + +cat ${commands} | sed -e "s;\${SUNRISE_MIFF};${SUNRISE_MIFF};g" | while read subcommand +do + #set -x + # identity:10 produces a 1000x1000 image + # Removed -segment 0.5x0.25 since it can not work with such images + subcommande1=$(printf '%s' "${subcommand}" | sed "s/'/\\\'/g") + printf "convert identity:10 -comment \"%s\" %s -format '%s' info:-\n" "${subcommande1}" "${subcommand}" '%r %g %# %c' + #set +x +done | gm batch -echo off -prompt off -feedback on -pass PASS -fail FAIL diff -r ce48075c0e35 -r 8d0bf3a215fe utilities/tests/convert-cmds.txt --- a/utilities/tests/convert-cmds.txt Sun Apr 16 08:29:37 2023 -0500 +++ b/utilities/tests/convert-cmds.txt Sun Apr 16 14:14:47 2023 -0500 @@ -55,25 +55,25 @@ -fill blue -stroke gold -draw 'polygon 400,200 1100,800 100,300' -fill none -stroke gold -draw 'Bezier 400,200 1100,800 100,300' -fill blue -stroke gold -draw 'Bezier 400,200 1100,800 100,300' --draw 'image Over 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image In 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Out 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Atop 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Xor 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Plus 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Minus 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Over 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Add 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Subtract 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Difference 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Divide 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Multiply 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Bumpmap 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image Copy 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image CopyRed 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image CopyGreen 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image CopyBlue 120,150 0,0 "${SUNRISE_MIFF}"' --draw 'image CopyOpacity 120,150 0,0 "${SUNRISE_MIFF}"' +-draw 'image Over 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image In 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Out 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Atop 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Xor 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Plus 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Minus 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Over 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Add 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Subtract 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Difference 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Divide 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Multiply 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Bumpmap 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image Copy 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image CopyRed 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image CopyGreen 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image CopyBlue 120,150 0,0 \"${SUNRISE_MIFF}\"' +-draw 'image CopyOpacity 120,150 0,0 \"${SUNRISE_MIFF}\"' -edge 0x1 -emboss 0x1 -enhance diff -r ce48075c0e35 -r 8d0bf3a215fe www/Changelog.html --- a/www/Changelog.html Sun Apr 16 08:29:37 2023 -0500 +++ b/www/Changelog.html Sun Apr 16 14:14:47 2023 -0500 @@ -37,6 +37,17 @@ </div> <div class="document"> +<p>2023-04-16 Bob Friesenhahn <<a class="reference external" href="mailto:bfriesen%40simple.dallas.tx.us">bfriesen<span>@</span>simple<span>.</span>dallas<span>.</span>tx<span>.</span>us</a>></p> +<blockquote> +<ul class="simple"> +<li><p>utilities/tests/convert-batch.tap: Added a TAP-like test script +which is similar to convert.tap, but is not really a TAP test +yet. This is to explore the concept of using 'gm batch' as part of +TAP testing.</p></li> +<li><p>utilities/tests/convert-cmds.txt: Backslash-escape double-quoted +filename.</p></li> +</ul> +</blockquote> <p>2023-04-16 Fojtik Jaroslav <<a class="reference external" href="mailto:JaFojtik%40yandex.com">JaFojtik<span>@</span>yandex<span>.</span>com</a>></p> <blockquote> <ul class="simple">