[X2Go-Commits] [libx2goclient] 05/17: src/: new subdirectory test with new file sshtest.c.

git-admin at x2go.org git-admin at x2go.org
Mon Jul 22 13:58:36 CEST 2019


This is an automated email from the git hooks/post-receive script.

x2go pushed a commit to branch master
in repository libx2goclient.

commit 682a0cbc7b0ac6126aca6e46497ce9dcfd036e91
Author: Mihai Moldovan <ionic at ionic.de>
Date:   Mon Jul 22 13:13:14 2019 +0200

    src/: new subdirectory test with new file sshtest.c.
---
 src/test/sshtest.c | 51 +++++++++++++++++++++++++++++++++++++++++++++++++++
 1 file changed, 51 insertions(+)

diff --git a/src/test/sshtest.c b/src/test/sshtest.c
new file mode 100644
index 0000000..94b685a
--- /dev/null
+++ b/src/test/sshtest.c
@@ -0,0 +1,51 @@
+/* -*- Mode: C; c-set-style: linux indent-tabs-mode: t; c-basic-offset: 8; tab-width: 8 -*- */
+
+/* sshtest.c - Testing application for X2Go Client SSH network handling
+
+   Copyright (C) 2019 Mike Gabriel
+   Copyright (C) 2019 Mihai Moldovan
+   All rights reserved.
+
+   The libx2goclient library is free software; you can redistribute it and/or
+   modify it under the terms of the GNU Library General Public License as
+   published by the Free Software Foundation; either version 2 of the
+   License, or (at your option) any later version.
+
+   The libx2goclient library is distributed in the hope that it will be useful,
+   but WITHOUT ANY WARRANTY; without even the implied warranty of
+   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
+   Library General Public License for more details.
+
+   You should have received a copy of the GNU Library General Public
+   License along with the Mate Library; see the file COPYING.LIB.  If not,
+   write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor,
+   Boston, MA 02110-1301, USA.
+ */
+
+#include <stdio.h>
+#include <stdlib.h>
+
+#include <libintl.h>
+
+#include <glib.h>
+#include <glib/gi18n.h>
+#include <gio/gio.h>
+
+#ifdef HAVE_CONFIG_H
+#include "config.h"
+#endif
+
+#include "x2goclient.h"
+#include "x2goclient-network-ssh.h"
+
+#define _(String) gettext (String)
+
+int main (int argc, char **argv) {
+  setlocale (LC_MESSAGES, "");
+  bindtextdomain (PACKAGE, LOCALEDIR);
+  textdomain (PACKAGE);
+
+  printf (_("SSH testing utility for ") PACKAGE_NAME);
+
+  return (EXIT_SUCCESS);
+}

--
Alioth's /home/x2go-admin/maintenancescripts/git/hooks/post-receive-email on /srv/git/code.x2go.org/libx2goclient.git


More information about the x2go-commits mailing list