diff options
author | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-06-27 11:04:15 +0200 |
---|---|---|
committer | Mike Gabriel <mike.gabriel@das-netzwerkteam.de> | 2018-06-27 11:13:53 +0200 |
commit | 670a1321e296b1b24e6030f4f36c9e3c5e8a6784 (patch) | |
tree | 9752cdfce71522813d434b3e41742519444dc959 /tests | |
download | librda-670a1321e296b1b24e6030f4f36c9e3c5e8a6784.tar.gz librda-670a1321e296b1b24e6030f4f36c9e3c5e8a6784.tar.bz2 librda-670a1321e296b1b24e6030f4f36c9e3c5e8a6784.zip |
initial draft of the RDA shared library
Diffstat (limited to 'tests')
-rw-r--r-- | tests/Makefile.am | 35 | ||||
-rw-r--r-- | tests/test-x2go.c | 50 |
2 files changed, 85 insertions, 0 deletions
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 <mike.gabriel@das-netzwerkteam.de> + + 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 <gtk/gtk.h> + +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(); +} |