Difference between revisions of "Test suite"
Jump to navigation
Jump to search
(Deleted obsolete material about now-defunct contexttest project. Point to 7zip file on PRAGMA site. Show how to find a usage example within the archive.) |
m |
||
(One intermediate revision by one other user not shown) | |||
Line 9: | Line 9: | ||
== How can they be useful? == | == How can they be useful? == | ||
− | On the mailing list, Hans sometimes points one to minimal examples of a feature being asked about. You can recursively grep through the (uncompressed) archive to find the example. For example, I had asked about coupled problems and solutions, for which the relevant mechanism is blocks Hans: "(there are some examples in the test suite under blocks)." After | + | On the mailing list, Hans sometimes points one to minimal examples of a feature being asked about. You can recursively grep through the (uncompressed) archive to find the example. For example, I had asked about coupled problems and solutions, for which the relevant mechanism is blocks. To quote Hans: "(there are some examples in the test suite under blocks)." After I unpacked the archive (into <code>/tmp/doc/</code>), the following command located the examples: |
<pre> | <pre> | ||
Line 19: | Line 19: | ||
/tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:178:Here we call for the nested block: | /tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:178:Here we call for the nested block: | ||
</pre> | </pre> | ||
+ | |||
+ | [[Category:Tools]] | ||
+ | [[Category:Development]] |
Latest revision as of 15:36, 8 June 2020
What is it?
The test suite is a set of files that exercise many ConTeXt features and are used by Hans for testing releases.
Where is it?
They are on the PRAGMA site here as a 7zip archive.
How can they be useful?
On the mailing list, Hans sometimes points one to minimal examples of a feature being asked about. You can recursively grep through the (uncompressed) archive to find the example. For example, I had asked about coupled problems and solutions, for which the relevant mechanism is blocks. To quote Hans: "(there are some examples in the test suite under blocks)." After I unpacked the archive (into /tmp/doc/
), the following command located the examples:
$ grep -r -n --include='*.tex' '\<block\>' /tmp/doc/ /tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:89:\chapter{Normal block use} /tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:91: % test normal block use /tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:164: % test nested block /tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:171:\startquestion Is this a question in a nested block? \stopquestion /tmp/doc/context/tests/mkiv/blocks/blocks-001.tex:178:Here we call for the nested block: