Commit Graph

11 Commits

Author SHA1 Message Date
Peinthor Rene
e2ae5b4b64 cmake: lower required version for tests too 2014-09-18 07:48:06 +02:00
Peinthor Rene
97e2025cc9 cvsparser: Newly implemented CSV Parser
Moved parser into it's own class
This parser now proper supports new lines in quoted text
and returns a QVector<QStringList> result.
2014-09-02 18:05:04 +02:00
Markus Elfring
d3ccdc2cdd Bug #58: Completed quoting for parameters of some CMake commands
A wiki article pointed out that whitespace will only be preserved for parameters
in CMake commands if passed strings will be appropriately quoted or escaped.
http://cmake.org/Wiki/CMake/Language_Syntax#CMake_splits_arguments_unless_you_use_quotation_marks_or_escapes.

Quoting was added so that more places should also handle file names correctly
which contain space characters or semicolons eventually.

Signed-off-by: Markus Elfring <elfring@users.sourceforge.net>
2014-08-01 15:49:11 +02:00
Martin Kleusberg
42a2faf411 Tests: Simplify the cmake file
Now that the dependeny to the main window is removed from the
DBBrowserDB class we can get rid of all the dialogs and widget related
stuff in the cmake file used for the unit test project. Because our
Application class depends on the main window, too, the code for the CSV
tests is changed to use Qt's standard QApplication class.
2014-07-12 16:21:08 +02:00
Martin Kleusberg
e7924f3739 Tests: Add unit tests for CSV import
Add a new test class for testing the import functionality. Currently
it's only covers some test cases for the CSV import.

Since the function to test here (DBBrowserDB::decodeCSV) is part of the
DBBrowserDB class, that class has a reference to the main window and the
main window basically depends on the entire rest of the project the
makefile grew quite a bit unfortunately.
2014-07-11 21:31:34 +02:00
Peinthor Rene
968c12ae7c cmake/unit: fix incorrect antlr include path 2014-07-06 09:45:11 +02:00
Peinthor Rene
de1fb9ff2f qt5: full qt5 compability
ifdef rest of the code which can't be ported 100%
add CMake option USE_QT5 to use qt5 ;)
Thanks to stretchtiberius for initial patch
2014-02-14 00:28:42 +01:00
Peinthor Rene
67787f5e8b cmake: set default build type to Release
if non is given
2014-02-12 19:16:19 +01:00
Peinthor Rene
d24ab33f2c cmake: remove unittest option
Create a CMake project just for unittest in the tests folder
2014-01-23 22:08:54 +01:00
Martin Kleusberg
768ae28548 Exit in DB create script when there was no file name specified
Make sure the script exits in a clean way when no output file was
specified.

Also some more random cleaning in SqliteDB here...
2013-04-19 20:12:35 +02:00
Peinthor Rene
94512a3785 python script that creates a ~250mb test db with 1mio records 2013-04-07 22:54:28 +02:00