ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Marco Pessotto <melmothx@gmail.com>
To: ntg-context@ntg.nl
Subject: ConTeXt unofficial test suite stub
Date: Sun, 07 Oct 2012 12:43:15 +0200	[thread overview]
Message-ID: <87bogea7gc.fsf@universe.krase.net> (raw)


Hello there!

TL;DR: https://github.com/melmothx/context-unofficial-test-suite

A week ago I had a conversation with mpfusion and another user over IRC
about the ConTeXt test suite. mpfusion had a tarball with some test and
an elaborate machinery to see if the testfiles compile. He kindly
provided the tarball, and I took the liberty to do it my way (I didn't
hear back from him, I assume he's working on his solution), using the
testfiles and rewriting the code.

My solution is quite simple, is written in perl (300 lines all included)
and probably is not portable to non-unix machines. It uses imagemagick
and pdftoppm to raster the PDF, and it's resonably fast (with a trick to
speed up the difference parsing).

It produces an ascii table like this:

./run-test.pl --run
Using /usr/local/bin/context

mtx-context     | ConTeXt Process Management 0.52
mtx-context     |
mtx-context     | main context file: /usr/local/texlive/2012/texmf-dist/tex/context/base/context.mkiv
mtx-context     | current version: 2012.05.30 11:26
.................

|           File name | Success |  Differs Avg 	|  Worst value 	| Pages | Time |
|          arrows-001 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|        catcodes-001 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|      columnsets-001 |      OK |  0.000000 	|  0.000000 	|    10 |    4 |
|            date-002 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|           dates-001 |      OK |  0.605634 	|  0.605634 	|     1 |    2 |
|           dates-002 |      OK |  0.000000 	|  0.000000 	|     1 |    3 |
|             hsv-001 |      OK |  0.000000 	|  0.000000 	|     8 |    5 |
|           inclusion |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|        metapost-001 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|        metapost-002 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|           mixed-001 |      OK |  0.000000 	|  0.000000 	|     2 |    2 |
|   narrower-bidi-001 |      OK |  0.000000 	|  0.000000 	|     4 |    2 |
|         ppchtex-001 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|         ppchtex-005 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|         ppchtex-006 |      OK |  0.000000 	|  0.000000 	|     1 |    2 |
|            spot-001 |      OK |  0.000000 	|  0.000000 	|     1 |    3 |
|          tables-001 |      OK |  0.000000 	|  0.000000 	|     1 |    1 |

It leaves the visual diffs as png images under diffs/

I'd like to know if there is some interest in this thing, as (obviously)
the test suit is not really populated to have any kind of value. There
is also room for improvement (like custom arguments to the compilation).

Happy euroTeXt to the lucky partecipants. Enjoy!

Best wishes

-- 
Marco

___________________________________________________________________________________
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
___________________________________________________________________________________


             reply	other threads:[~2012-10-07 10:43 UTC|newest]

Thread overview: 27+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-10-07 10:43 Marco Pessotto [this message]
2012-10-16 22:14 ` Aditya Mahajan
2012-10-17  6:44   ` Marco Pessotto
2012-10-17  6:55     ` luigi scarso
2012-10-17  7:27       ` Marco Pessotto
2012-10-17 10:12         ` luigi scarso
2012-10-17 11:27           ` Marco Pessotto
2012-10-17 12:06             ` Marco Patzer
2012-10-17 16:57               ` Marco Pessotto
2012-10-17 17:05                 ` Hans Hagen
2012-10-17 17:58                   ` Marco Pessotto
2012-10-17 18:08                     ` Marco Patzer
2012-10-17 18:54                       ` Hans Hagen
2012-10-17 19:30                         ` Marco Pessotto
2012-10-17 20:52                           ` Hans Hagen
2012-10-17 21:58                             ` ConTeXt unofficial test suite stub (chemistry) Alan BRASLAU
2012-10-17 22:20                               ` Romain Diss
2012-10-18  7:17                                 ` Alan BRASLAU
2012-10-18  8:29                                 ` Hans Hagen
2012-10-18  8:41                                 ` Sietse Brouwer
2012-10-18  9:42                                   ` Alan BRASLAU
2012-10-18 12:21                                     ` Romain Diss
2012-10-18 17:14                                     ` Sietse Brouwer
2012-10-18 12:12                                   ` Romain Diss
2012-10-17 19:31                       ` ConTeXt unofficial test suite stub Hans Hagen
2012-10-17 18:49                     ` Hans Hagen
2012-10-17  7:41   ` Marco Patzer

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87bogea7gc.fsf@universe.krase.net \
    --to=melmothx@gmail.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).