| 1 |
Testexamples and Tests |
| 2 |
====================== |
| 3 |
|
| 4 |
the directory 'tiffs_should_pass/' contains TIFF-files that should generally be |
| 5 |
valid. This does not mean that they have to be valid against every profile. |
| 6 |
|
| 7 |
Rudimentary tests are available in the 't/' directory to check the correctness of |
| 8 |
'checkit_tiff' using Perl. |
| 9 |
|
| 10 |
It needs the following Perl modules (in brackets the debian module): |
| 11 |
|
| 12 |
* Data::Printer (libdata-printer-perl) |
| 13 |
* Exporter (perl-base) |
| 14 |
* File::Path (perl-base) |
| 15 |
* File::Slurp (libfile-slurp-perl) |
| 16 |
* File::Spec (perl-base) |
| 17 |
* IPC::Open3 (perl-base) |
| 18 |
* POSIX (perl-base) |
| 19 |
* Test::More (perl-modules-XXX with XXX as Perl-version ) |
| 20 |
|
| 21 |
in cmake the test-target is enabled by default, you could run it via: |
| 22 |
|
| 23 |
[bash] |
| 24 |
---- |
| 25 |
$> cmake ../src |
| 26 |
$> make |
| 27 |
$> make test |
| 28 |
---- |
| 29 |
|
| 30 |
If you want to call it manually, you should try this instead: |
| 31 |
|
| 32 |
[bash] |
| 33 |
---- |
| 34 |
$> cd t/ |
| 35 |
$> perl -I./ test_grammar.t && echo "fine!" |
| 36 |
$> perl -I./ test_config_examples.t && echo "fine!" |
| 37 |
$> perl -I./ test_should_pass.t && echo "fine!" |
| 38 |
$> perl -I./ test_should_fail.t && echo "fine!" |
| 39 |
---- |
| 40 |
|
| 41 |
the return code for all these runs should be zero and result in message "fine!" |