Group: LibreDWG/TestSuite
Contents
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.
Limitations
SVG do not support many features that are available in DWG. Thus many features of DWG can not be tested using the current testsuite