spice/server/tests
Frediano Ziglio 973cbb4df2 Revert "replay: Replicate wakeups properly"
This reverts commit c6881ad1a0.

This patch cause the replay utility run at full speed
to slow down a lot and in some cases getting stuck.
I don't understand the reason and when I tested was working
but as we are going to release would be a pity if this test utility
won't work as useful to get feedback and reports.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Christophe Fergeau <cfergeau@redhat.com>
2016-11-17 11:03:51 +00:00
..
.gitignore Update .gitignore files 2016-02-25 09:12:51 +00: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 Remove core_public and core_interface_adapter globals usage 2016-11-15 16:49:09 +00:00
basic_event_loop.h tests: add a test for event loop 2016-01-19 23:56:59 +00:00
Makefile.am Add a base test for statistic file 2016-11-16 16:38:24 +00:00
README Adding support to automated tests 2012-02-14 14:53:44 +02:00
regression_test.py build-sys: check for spicy-screenshot 2014-09-08 14:49:29 +02:00
replay.c Revert "replay: Replicate wakeups properly" 2016-11-17 11:03:51 +00:00
spice-options-test.c spice-options-test: Convert to gtest to catch criticals 2016-11-07 17:18:45 +00:00
stat-file-test.c Make RedStatFile private inside stat-file.c 2016-11-16 16:38:32 +00:00
stat-main.c syntax-check: Remove empty line at EOF 2016-01-08 11:24:14 +00:00
stat-test.c stat: add test for statistic functions 2015-12-09 17:02:54 +00:00
stream-test.c syntax-check: Add missing license headers 2016-11-01 12:48:26 +00:00
test_display_base.c tests: remove test_util.h 2015-12-21 11:44:34 +00:00
test_display_base.h Add missing license headers 2015-10-19 14:25:36 +02:00
test_display_no_ssl.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_display_resolution_changes.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_display_streaming.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_display_width_stride.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_empty_success.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_fail_on_null_core_interface.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_just_sockets_no_ssl.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_multiple.py server: add tester and todo for multiple client support 2011-08-23 19:18:23 +03:00
test_playback.c channel: add a new internal SpiceCoreInterface 2016-01-11 16:29:53 +00:00
test_two_servers.c Add missing license headers 2015-10-19 14:25:36 +02:00
test_vdagent.c Add missing license headers 2015-10-19 14:25:36 +02:00
test-agent-msg-filter.c Test agent message filter processing 2016-10-11 13:49:15 +01:00
test-loop.c syntax-check: Remove unused header includes 2016-11-01 12:48:20 +00:00
test-qxl-parsing.c syntax-check: Add missing license headers 2016-11-01 12:48:26 +00:00

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

This directory will contain a testsuite for the server including tetris drawing.

Unfortunately tetris and most of the tests are not here right now. You can however run all the tests and use libtool to debug any of them thus:

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
 used by test_just_sockets_no_ssl, can be used by other tests. very crude event loop. Should probably use libevent for better tests, but this is self contained.

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

test_display_streaming.c
 this test can be used to check regressions. For this, Spice needs to be compiled with --enable-automated-tests and test_display_streaming needs to be called passing --automated-tests as parameter