Group: LibreDWG/TestSuite

From LibrePlanet
Jump to: navigation, search
(Running the testsuite)
(Viewing the results)
Line 20: Line 20:
  
 
==== Viewing the results ====
 
==== Viewing the results ====
* ...
+
After running the test a new results.htm file will be created. Open the file in a browser to view the results.

Revision as of 13:03, 7 May 2010

Test Suite for LibreDwg

The aim of the Test Suite is to test the reading and writing capabilities of LibreDwg for various versions of DWG files.


Test Suite using testSVG script.

Test suite contains various dwg files. Each dwg file contains one single object like Line, Ray, Construction Line, etc.

Test Suite also contains a png file for each dwg file.

testSVG is script that converts a dwg file into a svg file.

When the Test Suite runs, it converts all dwg files into svg files. If there are errors in conversion, then an error file is created instead of svg file. Finally the result is seen in form of a webpage where the original PNG files are shown next to the svg file. If both appear similar then the test for that particular file is successful. In case of errors the error message is shown.


Running the testsuite

Copy testsuite folder in libredwg folder and run the script test.sh in it.

Viewing the results

After running the test a new results.htm file will be created. Open the file in a browser to view the results.