spice/server/tests
Christophe Fergeau 7b5e294a36 tests/pki: Use CA/certificate valid until 2048
As pointed out by danpb, tests/pki/server-cert.pem is only valid until
Fri Nov 29 15:51:44 UTC 2019

This changes tests/pki/server-cert.pem and tests/pki/ca-cert.pem to be
valid until 2048. These certificates were generated using the
instructions on https://www.spice-space.org/page/SSLConnection
The -subj args were omitted, and the defaults suggested by openssl used.
The -days parameter was changed to -days 10950.

Signed-off-by: Christophe Fergeau <cfergeau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2017-03-23 12:02:47 +01:00
..
pki tests/pki: Use CA/certificate valid until 2048 2017-03-23 12:02:47 +01:00
valgrind build-sys: Add make check-valgrind target 2017-03-21 16:34:56 +01:00
.gitignore tests: Add basic spice_server_init()/spice_server_destroy() 2017-03-01 16:06:57 +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 tests: Normalize test names 2016-11-25 13:52:39 +00:00
basic-event-loop.h tests: Normalize test names 2016-11-25 13:52:39 +00:00
Makefile.am build-sys: Add tests/pki to EXTRA_DIST 2017-03-23 12:02:47 +01:00
README Adding support to automated tests 2012-02-14 14:53:44 +02:00
regression-test.py tests: Normalize test names 2016-11-25 13:52:39 +00:00
replay.c replay: Support TLS in replay utility 2017-02-06 10:06:09 +00:00
stat-main.c syntax-check: Remove empty line at EOF 2016-01-08 11:24:14 +00:00
stat-test.c tests: Apply same warning level as main server code 2016-12-06 16:16:19 +00:00
test-agent-msg-filter.c Test agent message filter processing 2016-10-11 13:49:15 +01:00
test-codecs-parsing.c tests: Reuse GLib compatibility code 2017-03-03 16:49:43 +00:00
test-display-base.c test: Add test_destroy() 2017-03-01 18:00:27 +01:00
test-display-base.h test: Add test_destroy() 2017-03-01 18:00:27 +01:00
test-display-no-ssl.c tests: Apply same warning level as main server code 2016-12-06 16:16:19 +00:00
test-display-resolution-changes.c tests: Apply same warning level as main server code 2016-12-06 16:16:19 +00:00
test-display-streaming.c tests: Apply same warning level as main server code 2016-12-06 16:16:19 +00:00
test-display-width-stride.c tests: Apply same warning level as main server code 2016-12-06 16:16:19 +00:00
test-empty-success.c tests: Apply same warning level as main server code 2016-12-06 16:16:19 +00:00
test-fail-on-null-core-interface.c tests: Normalize test names 2016-11-25 13:52:39 +00:00
test-glib-compat.c tests: Move some glib compatibility code to a separate file 2017-03-03 16:49:36 +00:00
test-glib-compat.h tests: Move some specific GLib compatibility to compatibility file 2017-03-03 16:49:41 +00:00
test-gst.c tests: Make possible to have a report of the video encoding 2017-01-21 09:05:42 +00:00
test-just-sockets-no-ssl.c tests: Normalize test names 2016-11-25 13:52:39 +00:00
test-leaks.c test-leaks: Checks some leaks using TLS 2017-03-08 12:21:15 +00:00
test-loop.c tests: Normalize test names 2016-11-25 13:52:39 +00: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 test-playback: Pass proper types to spice_server_add_interface 2017-02-15 12:13:55 +01:00
test-qxl-parsing.c tests: Port test-qxl-parsing to GTest 2017-03-21 16:34:56 +01:00
test-stat-file.c tests: Move some specific GLib compatibility to compatibility file 2017-03-03 16:49:41 +00:00
test-stream.c tests: Normalize test names 2016-11-25 13:52:39 +00:00
test-two-servers.c tests: Normalize test names 2016-11-25 13:52:39 +00:00
test-vdagent.c tests: Move some glib compatibility code to a separate file 2017-03-03 16:49:36 +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