From 670a1321e296b1b24e6030f4f36c9e3c5e8a6784 Mon Sep 17 00:00:00 2001 From: Mike Gabriel Date: Wed, 27 Jun 2018 11:04:15 +0200 Subject: initial draft of the RDA shared library --- tests/Makefile.am | 35 +++++++++++++++++++++++++++++++++++ tests/test-x2go.c | 50 ++++++++++++++++++++++++++++++++++++++++++++++++++ 2 files changed, 85 insertions(+) create mode 100644 tests/Makefile.am create mode 100644 tests/test-x2go.c (limited to 'tests') diff --git a/tests/Makefile.am b/tests/Makefile.am new file mode 100644 index 0000000..ffb157e --- /dev/null +++ b/tests/Makefile.am @@ -0,0 +1,35 @@ +NULL = + +RDA_LIB = -lrda + +TESTS = +DISTCLEANFILES = +XFAIL_TESTS = + +check_PROGRAMS = + +############################# +# Test Loader +############################# + +check_PROGRAMS += test-x2go + +test_x2go_SOURCES = \ + test-x2go.c + +test_x2go_CFLAGS = \ + -Wall -Werror \ + $(LIBRDA_CFLAGS) \ + $(LIBRDA_TESTS_CFLAGS) \ + -I$(top_srcdir) \ + -DBUILD_DIR="\"$(builddir)\"" \ + $(NULL) + + +test_x2go_LDADD = \ + $(LIBRDA_LIBS) \ + $(LIBRDA_TESTS_LIBS) \ + -L$(top_builddir)/src/.libs \ + $(NULL) + +TESTS += test-x2go diff --git a/tests/test-x2go.c b/tests/test-x2go.c new file mode 100644 index 0000000..bf7b1a6 --- /dev/null +++ b/tests/test-x2go.c @@ -0,0 +1,50 @@ +/* +X2Go tests for librda + +Copyright 2018, Mike Gabriel + + Copyright (C) 2018 Mike Gabriel + All rights reserved. + + The RDA 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 RDA 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 + +void +test_x2go_can_suspend (void) +{ + return; +} + +void +test_rda_x2go_suite (void) +{ + g_test_add_func ("/librda/x2go/can_suspend", test_x2go_can_suspend); + return; +} + +int +main (int argc, char ** argv) +{ + g_test_init (&argc, &argv, NULL); + + test_rda_x2go_suite(); + + g_log_set_always_fatal(G_LOG_LEVEL_CRITICAL); + + return g_test_run(); +} -- cgit v1.2.3