[GRASS-SVN] r61243 - grass/trunk/lib/vector/rtree/test_suite
svn_grass at osgeo.org
svn_grass at osgeo.org
Sat Jul 12 04:51:49 PDT 2014
Author: huhabla
Date: 2014-07-12 04:51:49 -0700 (Sat, 12 Jul 2014)
New Revision: 61243
Removed:
grass/trunk/lib/vector/rtree/test_suite/test.gmath.lib.html
Modified:
grass/trunk/lib/vector/rtree/test_suite/test_main.c
Log:
Fixed wrong description and obsolete options and flags. Removed wrong html description file.
Deleted: grass/trunk/lib/vector/rtree/test_suite/test.gmath.lib.html
===================================================================
--- grass/trunk/lib/vector/rtree/test_suite/test.gmath.lib.html 2014-07-12 11:33:11 UTC (rev 61242)
+++ grass/trunk/lib/vector/rtree/test_suite/test.gmath.lib.html 2014-07-12 11:51:49 UTC (rev 61243)
@@ -1,3 +0,0 @@
-
-
-Take a look at the module command line help for more information.
Modified: grass/trunk/lib/vector/rtree/test_suite/test_main.c
===================================================================
--- grass/trunk/lib/vector/rtree/test_suite/test_main.c 2014-07-12 11:33:11 UTC (rev 61242)
+++ grass/trunk/lib/vector/rtree/test_suite/test_main.c 2014-07-12 11:51:49 UTC (rev 61243)
@@ -1,12 +1,12 @@
/****************************************************************************
*
- * MODULE: test.gpde.lib
+ * MODULE: test.rtree.lib
*
* AUTHOR(S): Original author
* Soeren Gebbert soerengebbert <at> gmx <dot> de
* 05 Sep 2007 Berlin
*
- * PURPOSE: Unit and integration tests for the gmath library
+ * PURPOSE: Unit test for the vector rtree implementation
*
* COPYRIGHT: (C) 2007 by the GRASS Development Team
*
@@ -23,8 +23,7 @@
/*- Parameters and global variables -----------------------------------------*/
typedef struct {
- struct Option *unit, *integration, *solverbenchmark, *blasbenchmark, *rows;
- struct Flag *full, *testunit, *testint;
+ struct Option *unit;
} paramType;
paramType param; /*Parameters */
@@ -41,13 +40,8 @@
param.unit->key = "unit";
param.unit->type = TYPE_STRING;
param.unit->required = YES;
- param.unit->options = "basics";
+ param.unit->options = "basic";
param.unit->description = _("Choose the unit tests to run");
-
- param.testunit = G_define_flag();
- param.testunit->key = 'u';
- param.testunit->description = _("Run all unit tests");
-
}
/* ************************************************************************* */
@@ -64,7 +58,7 @@
module = G_define_module();
module->description
- = _("Performs benchmarks, unit and integration tests for the gmath library");
+ = _("Unit tests for the vector rtree library");
/* Get parameters from user */
set_params();
@@ -76,7 +70,7 @@
i = 0;
if (param.unit->answers) {
while (param.unit->answers[i]) {
- if (strcmp(param.unit->answers[i], "basics") == 0)
+ if (strcmp(param.unit->answers[i], "basic") == 0)
returnstat += unit_test_basics();
i++;
}
@@ -85,9 +79,9 @@
if (returnstat != 0)
- G_warning("Errors detected while testing the gmath lib");
+ G_warning("Errors detected while testing the vector rtree lib");
else
- G_message("\n-- gmath lib tests finished successfully --");
+ G_message("\n-- vector rtree lib tests finished successfully --");
return (returnstat);
}
More information about the grass-commit
mailing list