PostGIS  3.4.0dev-r@@SVN_REVISION@@

◆ main()

int main ( )

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

24 {
25 
26  /* initialize the CUnit test registry */
27  if (CUE_SUCCESS != CU_initialize_registry())
28  return CU_get_error();
29 
30  /* Add the shp2pgsql test suite */
31  if (NULL == register_shp2pgsql_suite())
32  {
33  CU_cleanup_registry();
34  return CU_get_error();
35  }
36 
37 #ifdef POSTGIS_PGSQL_VERSION
38  /* Add the pgsql2shp test suite */
39  if (NULL == register_pgsql2shp_suite())
40  {
41  CU_cleanup_registry();
42  return CU_get_error();
43  }
44 #endif
45 
46  /* Run all tests using the CUnit Basic interface */
47  CU_basic_set_mode(CU_BRM_VERBOSE);
48  CU_basic_run_tests();
49  CU_cleanup_registry();
50 
51  return CU_get_error();
52 
53 }
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: