PostGIS  2.5.7dev-r@@SVN_REVISION@@

◆ main()

int main ( )

Definition at line 22 of file loader/cunit/cu_tester.c.

23 {
24 
25  /* initialize the CUnit test registry */
26  if (CUE_SUCCESS != CU_initialize_registry())
27  return CU_get_error();
28 
29  /* Add the shp2pgsql test suite */
30  if (NULL == register_shp2pgsql_suite())
31  {
32  CU_cleanup_registry();
33  return CU_get_error();
34  }
35 
36  /* Add the pgsql2shp test suite */
37  if (NULL == register_pgsql2shp_suite())
38  {
39  CU_cleanup_registry();
40  return CU_get_error();
41  }
42 
43  /* Run all tests using the CUnit Basic interface */
44  CU_basic_set_mode(CU_BRM_VERBOSE);
45  CU_basic_run_tests();
46  CU_cleanup_registry();
47 
48  return CU_get_error();
49 
50 }
CU_pSuite register_pgsql2shp_suite(void)
Definition: cu_pgsql2shp.c:26
CU_pSuite register_shp2pgsql_suite(void)
Definition: cu_shp2pgsql.c:26

References register_pgsql2shp_suite(), and register_shp2pgsql_suite().

Here is the call graph for this function: