summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorVadim Revyakin <vadimr@intel.com>2006-12-07 15:44:35 +0000
committerVadim Revyakin <vadimr@intel.com>2006-12-07 15:44:35 +0000
commita73c08946be944794a446c0409a8a97ecf538b14 (patch)
tree6b8a19fee50eaec9ac333d7f7eebc56c8216b421
parent32bfb3944e9a5368fc8748748bbd1ff3fd5d20ff (diff)
downloadwsmancli-a73c08946be944794a446c0409a8a97ecf538b14.tar.gz
wsmancli-a73c08946be944794a446c0409a8a97ecf538b14.tar.xz
wsmancli-a73c08946be944794a446c0409a8a97ecf538b14.zip
debug option added
-rw-r--r--tests/interop/interop.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/tests/interop/interop.c b/tests/interop/interop.c
index 1695d0d..97cb795 100644
--- a/tests/interop/interop.c
+++ b/tests/interop/interop.c
@@ -16,10 +16,12 @@
#include "u/libu.h"
#include "wsman-client-api.h"
#include "wsman-client-transport.h"
+#include "wsman-debug.h"
#define DESC "Description"
static char *file = NULL;
static char *endpoint = NULL;
+static int debug_level = -1;
typedef enum {
INTEROP_IDENTIFY = 0
@@ -204,6 +206,8 @@ int main(int argc, char** argv)
"Interop file", "<file>" },
{ "endpoint", 'u', U_OPTION_ARG_STRING, &endpoint,
"Endpoint in form of a URL", "<uri>" },
+ { "debug", 'd', U_OPTION_ARG_INT, &debug_level,
+ "Set the verbosity of debugging output.", "1-6" },
{ NULL }
};
@@ -232,7 +236,7 @@ int main(int argc, char** argv)
fprintf(stderr, "endpoint option required\n");
return 1;
}
-
+ wsman_debug_set_level(debug_level);
wsman_client_transport_init(NULL);
cl = wsman_create_client( uri->host,