[Openvas-commits] r3543 - in trunk/openvas-manager: . src/tests

scm-commit@wald.intevation.org scm-commit at wald.intevation.org
Fri May 29 20:04:46 CEST 2009


Author: mattm
Date: 2009-05-29 20:04:44 +0200 (Fri, 29 May 2009)
New Revision: 3543

Modified:
   trunk/openvas-manager/ChangeLog
   trunk/openvas-manager/src/tests/omp_abort_task_0.c
   trunk/openvas-manager/src/tests/omp_create_task_0.c
   trunk/openvas-manager/src/tests/omp_delete_report_0.c
   trunk/openvas-manager/src/tests/omp_delete_report_1.c
   trunk/openvas-manager/src/tests/omp_delete_task_0.c
   trunk/openvas-manager/src/tests/omp_delete_task_1.c
   trunk/openvas-manager/src/tests/omp_delete_task_2.c
   trunk/openvas-manager/src/tests/omp_get_dependencies_0.c
   trunk/openvas-manager/src/tests/omp_get_dependencies_1.c
   trunk/openvas-manager/src/tests/omp_get_nvt_all_0.c
   trunk/openvas-manager/src/tests/omp_get_nvt_all_1.c
   trunk/openvas-manager/src/tests/omp_get_nvt_details_0.c
   trunk/openvas-manager/src/tests/omp_get_nvt_details_2.c
   trunk/openvas-manager/src/tests/omp_get_nvt_details_3.c
   trunk/openvas-manager/src/tests/omp_get_nvt_details_4.c
   trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_0.c
   trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_1.c
   trunk/openvas-manager/src/tests/omp_get_preferences_0.c
   trunk/openvas-manager/src/tests/omp_get_preferences_1.c
   trunk/openvas-manager/src/tests/omp_get_report_0.c
   trunk/openvas-manager/src/tests/omp_get_rules_0.c
   trunk/openvas-manager/src/tests/omp_get_rules_1.c
   trunk/openvas-manager/src/tests/omp_get_status_0.c
   trunk/openvas-manager/src/tests/omp_get_status_1.c
   trunk/openvas-manager/src/tests/omp_get_status_2.c
   trunk/openvas-manager/src/tests/omp_get_status_3.c
   trunk/openvas-manager/src/tests/omp_get_status_4.c
   trunk/openvas-manager/src/tests/omp_get_version_0.c
   trunk/openvas-manager/src/tests/omp_help_0.c
   trunk/openvas-manager/src/tests/omp_modify_report_0.c
   trunk/openvas-manager/src/tests/omp_modify_task_0.c
   trunk/openvas-manager/src/tests/omp_modify_task_1.c
   trunk/openvas-manager/src/tests/omp_start_task_0.c
   trunk/openvas-manager/src/tests/omp_start_task_1.c
   trunk/openvas-manager/src/tests/omp_start_task_2.c
   trunk/openvas-manager/src/tests/report_path_task_uuid_0.c
   trunk/openvas-manager/src/tests/report_path_task_uuid_1.c
   trunk/openvas-manager/src/tests/report_path_task_uuid_2.c
   trunk/openvas-manager/src/tests/rmdir_recursively_0.c
   trunk/openvas-manager/src/tests/rmdir_recursively_1.c
   trunk/openvas-manager/src/tests/strip_space_0.c
   trunk/openvas-manager/src/tests/strip_space_1.c
   trunk/openvas-manager/src/tests/strip_space_2.c
   trunk/openvas-manager/src/tests/strip_space_3.c
Log:
	* src/tests/omp_abort_task_0.c, src/tests/omp_create_task_0.c,
	src/tests/omp_delete_report_0.c, src/tests/omp_delete_report_1.c,
	src/tests/omp_delete_task_0.c, src/tests/omp_delete_task_1.c,
	src/tests/omp_delete_task_2.c, src/tests/omp_get_dependencies_0.c,
	src/tests/omp_get_dependencies_1.c, src/tests/omp_get_nvt_all_0.c,
	src/tests/omp_get_nvt_all_1.c, src/tests/omp_get_nvt_details_0.c,
	src/tests/omp_get_nvt_details_2.c, src/tests/omp_get_nvt_details_3.c,
	src/tests/omp_get_nvt_details_4.c, src/tests/omp_get_nvt_feed_checksum_0.c,
	src/tests/omp_get_nvt_feed_checksum_1.c, src/tests/omp_get_preferences_0.c,
	src/tests/omp_get_preferences_1.c, src/tests/omp_get_report_0.c,
	src/tests/omp_get_rules_0.c, src/tests/omp_get_rules_1.c,
	src/tests/omp_get_status_0.c, src/tests/omp_get_status_1.c,
	src/tests/omp_get_status_2.c, src/tests/omp_get_status_3.c,
	src/tests/omp_get_status_4.c, src/tests/omp_get_version_0.c,
	src/tests/omp_help_0.c, src/tests/omp_modify_report_0.c,
	src/tests/omp_modify_task_0.c, src/tests/omp_modify_task_1.c,
	src/tests/omp_start_task_0.c, src/tests/omp_start_task_1.c,
	src/tests/omp_start_task_2.c, src/tests/report_path_task_uuid_0.c,
	src/tests/report_path_task_uuid_1.c, src/tests/report_path_task_uuid_2.c,
	src/tests/rmdir_recursively_0.c, src/tests/rmdir_recursively_1.c,
	src/tests/strip_space_0.c, src/tests/strip_space_1.c,
	src/tests/strip_space_2.c, src/tests/strip_space_3.c: Call setup_test
	before testing.

Modified: trunk/openvas-manager/ChangeLog
===================================================================
--- trunk/openvas-manager/ChangeLog	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/ChangeLog	2009-05-29 18:04:44 UTC (rev 3543)
@@ -1,5 +1,31 @@
 2009-05-29  Matthew Mundell <mmundell at intevation.de>
 
+	* src/tests/omp_abort_task_0.c, src/tests/omp_create_task_0.c,
+	src/tests/omp_delete_report_0.c, src/tests/omp_delete_report_1.c,
+	src/tests/omp_delete_task_0.c, src/tests/omp_delete_task_1.c,
+	src/tests/omp_delete_task_2.c, src/tests/omp_get_dependencies_0.c,
+	src/tests/omp_get_dependencies_1.c, src/tests/omp_get_nvt_all_0.c,
+	src/tests/omp_get_nvt_all_1.c, src/tests/omp_get_nvt_details_0.c,
+	src/tests/omp_get_nvt_details_2.c, src/tests/omp_get_nvt_details_3.c,
+	src/tests/omp_get_nvt_details_4.c, src/tests/omp_get_nvt_feed_checksum_0.c,
+	src/tests/omp_get_nvt_feed_checksum_1.c, src/tests/omp_get_preferences_0.c,
+	src/tests/omp_get_preferences_1.c, src/tests/omp_get_report_0.c,
+	src/tests/omp_get_rules_0.c, src/tests/omp_get_rules_1.c,
+	src/tests/omp_get_status_0.c, src/tests/omp_get_status_1.c,
+	src/tests/omp_get_status_2.c, src/tests/omp_get_status_3.c,
+	src/tests/omp_get_status_4.c, src/tests/omp_get_version_0.c,
+	src/tests/omp_help_0.c, src/tests/omp_modify_report_0.c,
+	src/tests/omp_modify_task_0.c, src/tests/omp_modify_task_1.c,
+	src/tests/omp_start_task_0.c, src/tests/omp_start_task_1.c,
+	src/tests/omp_start_task_2.c, src/tests/report_path_task_uuid_0.c,
+	src/tests/report_path_task_uuid_1.c, src/tests/report_path_task_uuid_2.c,
+	src/tests/rmdir_recursively_0.c, src/tests/rmdir_recursively_1.c,
+	src/tests/strip_space_0.c, src/tests/strip_space_1.c,
+	src/tests/strip_space_2.c, src/tests/strip_space_3.c: Call setup_test
+	before testing.
+
+2009-05-29  Matthew Mundell <mmundell at intevation.de>
+
 	Add OTP CERTIFICATES handling and OMP GET_CERTIFICATES.
 
 	* src/manage.c (request_certificates): New function.

Modified: trunk/openvas-manager/src/tests/omp_abort_task_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_abort_task_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_abort_task_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_create_task_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_create_task_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_create_task_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -39,6 +39,8 @@
   int socket, ret;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_delete_report_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_delete_report_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_delete_report_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_delete_report_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_delete_report_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_delete_report_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -39,6 +39,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_delete_task_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_delete_task_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_delete_task_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_delete_task_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_delete_task_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_delete_task_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_delete_task_2.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_delete_task_2.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_delete_task_2.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -41,7 +41,7 @@
   char* id;
   entity_t entity, status;
 
-  verbose = 1;
+  setup_test ();
 
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;

Modified: trunk/openvas-manager/src/tests/omp_get_dependencies_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_dependencies_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_dependencies_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_dependencies_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_dependencies_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_dependencies_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -41,6 +41,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_all_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_all_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_all_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_all_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_all_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_all_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -42,6 +42,8 @@
   char* id;
   entity_t entity, status;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_details_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_details_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_details_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_details_2.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_details_2.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_details_2.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,7 +40,7 @@
   int socket;
   gnutls_session_t session;
 
-  verbose = 1;
+  setup_test ();
 
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_details_3.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_details_3.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_details_3.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_details_4.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_details_4.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_details_4.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -42,7 +42,7 @@
   char* id;
   entity_t entity, entity2, status, nvt, nvt_id;
 
-  verbose = 1;
+  setup_test ();
 
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_nvt_feed_checksum_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -56,6 +56,8 @@
   char* md5;
   entity_t status, entity, algorithm;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_preferences_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_preferences_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_preferences_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_preferences_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_preferences_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_preferences_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -41,6 +41,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_report_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_report_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_report_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_rules_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_rules_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_rules_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_rules_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_rules_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_rules_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -41,6 +41,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_status_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_status_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_status_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_status_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_status_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_status_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -41,6 +41,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_status_2.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_status_2.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_status_2.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -41,6 +41,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_status_3.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_status_3.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_status_3.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_status_4.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_status_4.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_status_4.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_get_version_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_get_version_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_get_version_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -39,6 +39,8 @@
   int socket, ret;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_help_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_help_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_help_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -59,6 +59,8 @@
   int socket;
   gnutls_session_t session;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_modify_report_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_modify_report_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_modify_report_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_modify_task_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_modify_task_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_modify_task_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_modify_task_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_modify_task_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_modify_task_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -42,6 +42,8 @@
   char* id;
   entity_t entity, name;
 
+  setup_test ();
+
   socket1 = connect_to_manager (&session1);
   if (socket1 == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_start_task_0.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_start_task_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_start_task_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_start_task_1.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_start_task_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_start_task_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/omp_start_task_2.c
===================================================================
--- trunk/openvas-manager/src/tests/omp_start_task_2.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/omp_start_task_2.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -40,6 +40,8 @@
   gnutls_session_t session;
   char* id;
 
+  setup_test ();
+
   socket = connect_to_manager (&session);
   if (socket == -1) return EXIT_FAILURE;
 

Modified: trunk/openvas-manager/src/tests/report_path_task_uuid_0.c
===================================================================
--- trunk/openvas-manager/src/tests/report_path_task_uuid_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/report_path_task_uuid_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -32,8 +32,11 @@
 int
 main ()
 {
-  gchar* name = report_path_task_uuid ("/var/lib/openvas/mgr/users/user/tasks/01-abc-02001020/reports/report-id");
-  int ret = strcmp (name, "01-abc-02001020");
+  gchar* name;
+  int ret
+  setup_test ();
+  name = report_path_task_uuid ("/var/lib/openvas/mgr/users/user/tasks/01-abc-02001020/reports/report-id");
+  ret = strcmp (name, "01-abc-02001020");
   g_free (name);
   if (ret) return EXIT_FAILURE;
   return EXIT_SUCCESS;

Modified: trunk/openvas-manager/src/tests/report_path_task_uuid_1.c
===================================================================
--- trunk/openvas-manager/src/tests/report_path_task_uuid_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/report_path_task_uuid_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -32,8 +32,11 @@
 int
 main ()
 {
-  gchar* name = report_path_task_uuid ("/var/lib/openvas/mgr/users/user/tasks/01-abc-02001020/reports/report-id/");
-  int ret = strcmp (name, "01-abc-02001020");
+  gchar* name;
+  int ret;
+  setup_test ();
+  name = report_path_task_uuid ("/var/lib/openvas/mgr/users/user/tasks/01-abc-02001020/reports/report-id/");
+  ret = strcmp (name, "01-abc-02001020");
   g_free (name);
   if (ret) return EXIT_FAILURE;
   return EXIT_SUCCESS;

Modified: trunk/openvas-manager/src/tests/report_path_task_uuid_2.c
===================================================================
--- trunk/openvas-manager/src/tests/report_path_task_uuid_2.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/report_path_task_uuid_2.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -32,8 +32,11 @@
 int
 main ()
 {
-  gchar* name = report_path_task_uuid ("01-abc-02001020/reports/report-id/");
-  int ret = strcmp (name, "01-abc-02001020");
+  gchar* name;
+  int ret;
+  setup_test ();
+  name = report_path_task_uuid ("01-abc-02001020/reports/report-id/");
+  ret = strcmp (name, "01-abc-02001020");
   g_free (name);
   if (ret) return EXIT_FAILURE;
   return EXIT_SUCCESS;

Modified: trunk/openvas-manager/src/tests/rmdir_recursively_0.c
===================================================================
--- trunk/openvas-manager/src/tests/rmdir_recursively_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/rmdir_recursively_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -37,6 +37,8 @@
 {
   char dir[] = "rmdir_recursively_0_XXXXXX";
 
+  setup_test ();
+
   if (mkdtemp (dir) == NULL)
     {
       perror ("Failed to make temp dir");

Modified: trunk/openvas-manager/src/tests/rmdir_recursively_1.c
===================================================================
--- trunk/openvas-manager/src/tests/rmdir_recursively_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/rmdir_recursively_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -39,6 +39,8 @@
   char dir[] = "rmdir_recursively_1_XXXXXX";
   char file[] = "rmdir_recursively_1_XXXXXX/XXXXXX";
 
+  setup_test ();
+
   if (mkdtemp (dir) == NULL)
     {
       perror ("Failed to make temp dir");

Modified: trunk/openvas-manager/src/tests/strip_space_0.c
===================================================================
--- trunk/openvas-manager/src/tests/strip_space_0.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/strip_space_0.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -35,6 +35,8 @@
   char string[5];
   char *expect = "abcd";
 
+  setup_test ();
+
   strncpy (string, "abcd", 5);
 
   char* result = strip_space (string, string + 4);

Modified: trunk/openvas-manager/src/tests/strip_space_1.c
===================================================================
--- trunk/openvas-manager/src/tests/strip_space_1.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/strip_space_1.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -35,6 +35,8 @@
   char string[6];
   char *expect = "abcd";
 
+  setup_test ();
+
   strncpy (string, " abcd", 6);
 
   char* result = strip_space (string, string + 5);

Modified: trunk/openvas-manager/src/tests/strip_space_2.c
===================================================================
--- trunk/openvas-manager/src/tests/strip_space_2.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/strip_space_2.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -35,6 +35,8 @@
   char string[6];
   char *expect = "abcd";
 
+  setup_test ();
+
   strncpy (string, "abcd ", 6);
 
   char* result = strip_space (string, string + 5);

Modified: trunk/openvas-manager/src/tests/strip_space_3.c
===================================================================
--- trunk/openvas-manager/src/tests/strip_space_3.c	2009-05-29 17:25:06 UTC (rev 3542)
+++ trunk/openvas-manager/src/tests/strip_space_3.c	2009-05-29 18:04:44 UTC (rev 3543)
@@ -35,6 +35,8 @@
   char string[7];
   char *expect = "abcd";
 
+  setup_test ();
+
   strncpy (string, " abcd ", 7);
 
   char* result = strip_space (string, string + 6);



More information about the Openvas-commits mailing list