ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Automated Regression Testing for Typeset Material
@ 2014-04-19 19:15 Thangalin
  0 siblings, 0 replies; only message in thread
From: Thangalin @ 2014-04-19 19:15 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hi,

An idea to test the final output:

# Create PDFs for all tests.
cd $REGRESSION
for i in *.tex; do
  context-beta $i
done

# Convert all PDF pages to images.
for i in *.pdf; do
  convert $i $(basename $i .pdf)%0d.png
done

# Note any differences between images.
for i in *.png; do
  if diff $i $ORIGINAL/$i >/dev/null ; then
    echo "pass"
  else
    echo "fail" > $i.log
 fi
done
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2014-04-19 19:15 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-04-19 19:15 Automated Regression Testing for Typeset Material Thangalin

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).