summaryrefslogtreecommitdiffstats
path: root/tests/common.c
diff options
context:
space:
mode:
authorAnas Nashif <nashif@intel.com>2006-11-21 13:53:18 +0000
committerAnas Nashif <nashif@intel.com>2006-11-21 13:53:18 +0000
commitf3c197464ea39e895ab4de33706211755e94b9dd (patch)
tree2d09be5e0d03fe988b7f87bc92587c71ebc622c4 /tests/common.c
parent1ec46d3caab802b10cef23705fe5712291fa5e0f (diff)
downloadwsmancli-f3c197464ea39e895ab4de33706211755e94b9dd.tar.gz
wsmancli-f3c197464ea39e895ab4de33706211755e94b9dd.tar.xz
wsmancli-f3c197464ea39e895ab4de33706211755e94b9dd.zip
added invoke tests
Diffstat (limited to 'tests/common.c')
-rwxr-xr-xtests/common.c51
1 files changed, 0 insertions, 51 deletions
diff --git a/tests/common.c b/tests/common.c
deleted file mode 100755
index dbd07cd..0000000
--- a/tests/common.c
+++ /dev/null
@@ -1,51 +0,0 @@
-
-
-
-#include "wsman_config.h"
-
-#include <stdio.h>
-#include <stdlib.h>
-#include <string.h>
-#include <unistd.h>
-#include <errno.h>
-#include <time.h>
-
-#include "u/libu.h"
-#include "wsman-client-api.h"
-#include "wsman-xml-serializer.h"
-#include "wsman-client-transport.h"
-
-#include "common.h"
-
-
-WsManClient *cl;
-char *host = "langley.home.planux.com";
-
-
-
-
-int init_test(void) {
- wsman_client_transport_init(NULL);
- if (getenv("OPENWSMAN_TEST_HOST")) {
- host = getenv("OPENWSMAN_TEST_HOST");
- }
- ServerData sd[] = {
- {"localhost", 8889, "/wsman", "http", "wsman", "secret"}
- };
-
- cl = wsman_create_client(
- sd[0].server,
- sd[0].port,
- sd[0].path,
- sd[0].scheme,
- sd[0].username,
- sd[0].password);
- return 0;
-}
-
-
-int clean_test(void) {
- wsman_release_client(cl);
- wsman_client_transport_fini();
- return 0;
-}