spice/server/tests
Frediano Ziglio fe1c25f530 test-listen: Use OpenSSL BIO instead of GIO library
test-listen using GIO had issues running under CI for a while.
GIO is reading some desktop configuration so it's not very CI
friendly.
So instead of using GIO use OpenSSL BIO. The code does not
get much bigger or complicated.
We are already using OpenSSL so we are not adding dependencies.

This fixes CI for Fedora 39 (just released and available on docker).

This allowed to remove an old workaround for GIO in .gitlab-ci.yml
(cfr commit 89edf80821
"ci: Workaround an issue with GLib on Fedora 30")

Signed-off-by: Frediano Ziglio <freddy77@gmail.com>
2023-11-22 07:36:40 +00:00
..
pki test-leaks: Load DH parameters to test this part of code 2022-08-03 19:03:08 +01:00
valgrind ci: Fix check-valgrind job 2023-05-10 10:56:42 +01:00
.gitignore test-smartcard: Add test for Smartcard device 2019-10-09 10:33:25 +01:00
autobahn-check-report ci: Add test for websockets 2019-06-26 14:19:43 +01:00
base_test.ppm Adding image to be used as "correct" in regression tests 2012-02-14 14:53:47 +02:00
basic-event-loop.c basic-event-loop: Remove useless "ring.h" include 2020-06-10 16:52:32 +01:00
basic-event-loop.h Declare exported functions as C 2020-05-01 06:58:08 +01:00
fuzzingclient.json ci: Add test for websockets 2019-06-26 14:19:43 +01:00
Makefile.am test-listen: Use OpenSSL BIO instead of GIO library 2023-11-22 07:36:40 +00:00
meson.build test-listen: Use OpenSSL BIO instead of GIO library 2023-11-22 07:36:40 +00:00
README tests: Update README 2017-09-07 08:54:18 +01:00
regression-test.py test-display-base: Port to Windows 2019-01-03 13:08:17 +00:00
replay.c Remove conversion warnings 2020-05-01 06:58:08 +01:00
stat-test.c test-stat: Adjust delay checks 2019-03-06 11:59:54 +00:00
test-agent-msg-filter.c test-agent-msg-filter: Adjust for recent logging changes 2018-06-28 14:31:22 +01:00
test-channel.cpp clang-tidy: use C++ casting 2021-09-28 09:36:49 +01:00
test-codecs-parsing.c build: Remove support for GStreamer 0.10 2023-09-17 10:00:41 +01:00
test-dispatcher.cpp clang-tidy: replace C headers with C++ 2021-08-26 07:35:09 +01:00
test-display-base.cpp clang-tidy: use C++ casting 2021-09-28 09:36:49 +01:00
test-display-base.h clang-tidy: use C++ casting 2021-09-28 09:36:49 +01:00
test-display-no-ssl.c clang-tidy: use C++ casting 2021-09-28 09:36:49 +01:00
test-display-resolution-changes.c Remove conversion warnings 2020-05-01 06:58:08 +01:00
test-display-streaming.c Remove conversion warnings 2020-05-01 06:58:08 +01:00
test-display-width-stride.c Remove conversion warnings 2020-05-01 06:58:08 +01:00
test-empty-success.c tests: Make test-empty-success automated 2017-09-07 08:54:18 +01:00
test-fail-on-null-core-interface.c tests: Make test-fail-on-null-core-interface an automated test 2017-09-07 08:54:18 +01:00
test-glib-compat.h Remove unused code since glib bump to 2.38 2020-02-26 13:01:48 +00:00
test-gst.cpp build: Remove support for GStreamer 0.10 2023-09-17 10:00:41 +01:00
test-leaks.c test-leaks: Load DH parameters to test this part of code 2022-08-03 19:03:08 +01:00
test-listen.c test-listen: Use OpenSSL BIO instead of GIO library 2023-11-22 07:36:40 +00:00
test-loop.c test-loop: increment a variable outside of spice_assert 2019-08-22 21:27:35 +01:00
test-multiple.py tests: Normalize test names 2016-11-25 13:52:39 +00:00
test-options.c tests: Move some specific GLib compatibility to compatibility file 2017-03-03 16:49:41 +00:00
test-playback.c windows: Do not include headers not available on Windows 2019-01-31 10:48:34 +00:00
test-qxl-parsing.cpp red-parse-qxl: Use a base reference class for RedSurfaceCmd 2021-08-04 13:01:07 +01:00
test-record.c test-record: Fix a race condition running the test 2020-04-03 08:48:43 +01:00
test-sasl.c Remove conversion warnings 2020-05-01 06:58:08 +01:00
test-set-ticket.c test-set-ticket: Test we can set the ticket before spice_server_init 2020-04-03 08:49:20 +01:00
test-smartcard.cpp tests: Remove some compiler warnings 2021-05-05 06:36:18 +01:00
test-stat-file.c tests: Use GLib memory functions 2017-12-01 22:31:52 +00:00
test-stat.c tests: Rename stat-main.c to test-stat.c 2017-09-18 13:50:26 +01:00
test-stream-device.cpp clang-tidy: use C++ casting 2021-09-28 09:36:49 +01:00
test-stream.c Do not check for HAVE_CONFIG_H 2019-04-30 09:26:55 +01:00
test-two-servers.c clang-tidy: use C++ casting 2021-09-28 09:36:49 +01:00
test-vdagent.c Fix failure strings in tests 2021-04-14 19:05:09 +04:00
test-video-encoders tests: rename video-encoders to test-video-encoders 2019-07-22 11:21:23 +01:00
test-websocket.c test-websocket: check setsockopt return value 2020-06-17 12:48:25 +01:00
vmc-emu.cpp clang-tidy: convert C casts to C++ ones 2021-05-05 07:03:55 +01:00
vmc-emu.h Wrap spice.h in order to do some adjustment 2020-05-01 06:58:09 +01:00
win-alarm.c tests: Provide alarm replacement for Windows 2019-05-07 10:13:58 +01:00
win-alarm.h Declare exported functions as C 2020-05-01 06:58:08 +01:00

What is here
============

This directory will contain a testsuite for the server.

You can run all the tests and use libtool to debug any of them:

libtool --mode=execute gdb test-just-sockets-no-ssl

Overview of tests
=================

test-just-sockets-no-ssl
 A complete server, only provides the main and inputs channels. Doesn't actually produce anything on the channels. Essentially a test of the regular link code (reds.c), good for multiple connect/disconnect tests.

test-empty-success
 tests calling

test-fail-on-null-core-interface
 should abort when run (when spice tries to watch_add)

basic-event-loop.c
 event loop to provide core interface.

Automated tests
===============

test-display-streaming.c
 this test can be used to check regressions. For this, test-display-streaming needs to be called passing --automated-tests as parameter