kde-playground/kdepimlibs/kabc/vcardparser
2015-09-23 09:35:50 +00:00
..
tests import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
checkvcard.pl import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
CMakeLists.txt kdepimlibs: adjust to recent changes 2015-09-23 09:35:50 +00:00
README.testing import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testread.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testread2.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testroundtrip.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testroundtrip.qrc import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testutils.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testutils.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
testwrite.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
vcard.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
vcard.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
vcardline.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
vcardline.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
vcardparser.cpp import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00
vcardparser.h import working copies of kdepim and kdepimlibs 2015-04-14 21:49:29 +00:00

For testing the vcardparser there are some test files and a small testsuite
automatically checking for regressions. The tests directory contains some vCard
files and correpsonding reference output files (with an additional ".ref"
suffix). For running the geression test do "./testroundtrip" or simply run "ctest".

For creating a new test put a vCard file to be parsed into the tests directory.
Create a reference file by running "testread" on the test file. It will put out
the parsed data as vCard again on stdout. Carefully check the output, manually
correct any errors and save the result as reference file in the tests directory.
Now add the filename to the testroundtrip.qrc resource file and run
"make && ./roundtriptest" If the check fails adapt the reference file or fix the bugs
in the parser, whatever is appropriate.