diff freeDiameter/tests/tests.h @ 285:0daf6fc2b751

Added a test case for the app_acct extension
author Sebastien Decugis <sdecugis@nict.go.jp>
date Fri, 30 Apr 2010 17:55:16 +0900
parents 5df55136361b
children 2aceff436ba3
line wrap: on
line diff
--- a/freeDiameter/tests/tests.h	Wed Apr 28 18:54:08 2010 +0900
+++ b/freeDiameter/tests/tests.h	Fri Apr 30 17:55:16 2010 +0900
@@ -124,7 +124,7 @@
 static inline void parse_cmdline(int argc, char * argv[]) {
 	int c;
 	int no_timeout = 0;
-	while ((c = getopt (argc, argv, "dqn")) != -1) {
+	while ((c = getopt (argc, argv, "dqnf:")) != -1) {
 		switch (c) {
 			case 'd':	/* Increase verbosity of debug messages.  */
 				test_verbo++;
@@ -138,6 +138,15 @@
 				no_timeout = 1;
 				break;
 			
+			case 'f':	/* Full debug for the function with this name.  */
+				#ifdef DEBUG
+				fd_debug_one_function = optarg;
+				#else /* DEBUG */
+				TRACE_DEBUG(INFO, "Error: must compile with DEBUG support to use this feature");
+				return EINVAL;
+				#endif /* DEBUG */
+				break;
+				
 			default:	/* bug: option not considered.  */
 				return;
 		}
"Welcome to our mercurial repository"