aboutsummaryrefslogtreecommitdiff
path: root/tests/connection.c
diff options
context:
space:
mode:
authorJakub Jelen <jjelen@redhat.com>2020-05-21 13:11:23 +0200
committerJakub Jelen <jjelen@redhat.com>2020-05-21 13:34:23 +0200
commit866e4442b529e14290db98e3f353caa92c96cc73 (patch)
treeb79ebae2227508ac99ffbd3fd3b2252b2800dc4d /tests/connection.c
parent39bb93a53b77c9362a9ffa804ed49f47ab73108e (diff)
downloadlibssh-866e4442b529e14290db98e3f353caa92c96cc73.tar.gz
libssh-866e4442b529e14290db98e3f353caa92c96cc73.tar.xz
libssh-866e4442b529e14290db98e3f353caa92c96cc73.zip
Removed old, 10 years unused test files
They do not build anymore and I believe most of their functionality is already covered by new testst. Signed-off-by: Jakub Jelen <jjelen@redhat.com> Reviewed-by: Andreas Schneider <asn@cryptomilk.org>
Diffstat (limited to 'tests/connection.c')
-rw-r--r--tests/connection.c31
1 files changed, 0 insertions, 31 deletions
diff --git a/tests/connection.c b/tests/connection.c
deleted file mode 100644
index 889c5117..00000000
--- a/tests/connection.c
+++ /dev/null
@@ -1,31 +0,0 @@
-/*
-This file is distributed in public domain. You can do whatever you want
-with its content.
-*/
-
-#include <libssh/libssh.h>
-#include <stdio.h>
-#include "tests.h"
-SSH_OPTIONS *set_opts(int argc, char **argv){
- SSH_OPTIONS *options=ssh_options_new();
- char *host=NULL;
- if(ssh_options_getopt(options,&argc, argv)){
- fprintf(stderr,"error parsing command line :%s\n",ssh_get_error(options));
- return NULL;
- }
- int i;
- while((i=getopt(argc,argv,""))!=-1){
- switch(i){
- default:
- fprintf(stderr,"unknown option %c\n",optopt);
- }
- }
- if(optind < argc)
- host=argv[optind++];
- if(host==NULL){
- fprintf(stderr,"must provide an host name\n");
- return NULL;
- }
- ssh_options_set_host(options,host);
- return options;
-}