ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* ConTeXt unofficial test suite stub
@ 2012-10-07 10:43 Marco Pessotto
  2012-10-16 22:14 ` Aditya Mahajan
  0 siblings, 1 reply; 27+ messages in thread
From: Marco Pessotto @ 2012-10-07 10:43 UTC (permalink / raw)
  To: ntg-context


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
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 27+ messages in thread

end of thread, other threads:[~2012-10-18 17:14 UTC | newest]

Thread overview: 27+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2012-10-07 10:43 ConTeXt unofficial test suite stub Marco Pessotto
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

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).