Jump to content

Calligra/Testing: Difference between revisions

From KDE Community Wiki
Uzak (talk | contribs)
Uzak (talk | contribs)
Line 35: Line 35:
</nowiki>}}
</nowiki>}}


Each of the listed directories contain a Makefile.  To start tests, make sure the ''import/share/bin'' directory is in your PATH environment variable and run make.
Each of the listed directories contains a Makefile.  To start tests, make sure the ''import/share/bin'' directory is in your PATH environment variable and run make.


=== cstester ===
=== cstester ===

Revision as of 12:38, 10 March 2013

Preface

This page is dedicated to black box testing at the moment. There are two sets of test files. The first one is used to test input filters by comparing the output of the calligraconverter tool against the expected output. These are feature based files prepared by a testing team sponsored by Nokia and are primary intended to filter developers. The corresponding test tool is a shell script applying XSL templates. The second set is comprised of real world documents and it is used in combination with the cstester and visualimagecompare tools as described below. The purpose is to test both the filter and the layout engine and to display differences in document layout in means of visual output.

Getting the test files

Checkout test files from the KDE subversion repository:

$ svn co svn+ssh://[email protected]/home/kde/trunk/tests/calligratests

Download test files for cstester:

$ wget http://www.valdyas.org/~boud/documents.tar
$ wget http://www.valdyas.org/~boud/documents_pdf.tar

Running tests

Filter tests

There are two important directories in calligratest at the moment, the import and the interoperability directories, which have the following 1st level structure of interest (because those contain tests):

interoperability/
|-- presentations
|-- spreadsheets
|-- wordprocessing
import
|-- excel
|-- msword
|-- powerpoint

Each of the listed directories contains a Makefile. To start tests, make sure the import/share/bin directory is in your PATH environment variable and run make.

cstester