spice/server/tests
Frediano Ziglio b939e70d9c red-record-qxl: Write record file in the same format under Windows
The record file uses fprintf to record commands and attributes.
On Windows line terminator uses ASCII format ("\r\n") while on
Linux it used UNIX format ("\n"). Open file as binary to use the
same line terminator on both systems.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Francesco Giudici <fgiudici@redhat.com>
2020-02-26 12:50:27 +00:00
..
pki tests/pki: Use CA/certificate valid until 2048 and with 2048 bits 2018-12-07 12:31:11 +00:00
valgrind ci: Fix a typo in comment 2019-11-26 09:22:14 +00: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 event-loop: Change internal core interface 2019-10-10 10:55:52 +01:00
basic-event-loop.h tests: Allow to quit the message loop 2017-09-07 08:54:18 +01:00
fuzzingclient.json ci: Add test for websockets 2019-06-26 14:19:43 +01:00
Makefile.am test-smartcard: Add test for Smartcard device 2019-10-09 10:33:25 +01:00
meson.build test-smartcard: Add test for Smartcard device 2019-10-09 10:33:25 +01: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 replay: Remove some leak and a FIXME 2019-08-11 10:10:35 +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.c red-client: Automatically set MainChannelClient 2019-12-11 12:47:46 +00:00
test-codecs-parsing.c test-codecs-parsing: On bad codec string spice_server_set_video_codecs can fail 2019-07-08 08:15:36 +01:00
test-display-base.c test-display-base: Use SPICE_CONTAINEROF to avoid alignment warning 2019-05-13 14:13:21 +01:00
test-display-base.h tests: Automatically determine free port to use 2017-09-21 17:32:23 +02:00
test-display-no-ssl.c tests: destroy test object 2017-09-02 08:07:38 +01:00
test-display-resolution-changes.c clang: remove double promotion 2018-01-08 10:20:30 +00:00
test-display-streaming.c Avoid some alignment warnings using clang 2018-01-31 13:35:46 +00:00
test-display-width-stride.c tests: Use GLib memory functions 2017-12-01 22:31:52 +00: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.c Fix minor incompatibilities with RHEL6 2017-03-30 10:50:09 +01:00
test-glib-compat.h test-glib-compat: Fix G_PID_FORMAT definition for old systems 2019-06-26 14:18:17 +01:00
test-gst.c Avoid some alignment warnings using clang 2018-01-31 13:35:46 +00:00
test-leaks.c test-leaks: Use socket compatibility layer 2019-05-07 10:14:18 +01:00
test-listen.c test-listen: Exclude Unix sockets part under Windows 2019-01-31 10:59:39 +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.c test: fix test-qxl-parsing on ppc64el and armhf 2019-06-12 14:47:15 +01:00
test-record.c red-record-qxl: Write record file in the same format under Windows 2020-02-26 12:50:27 +00:00
test-sasl.c tests: Avoid some possible not initialized warning from Clang 2018-01-31 13:31:40 +00:00
test-smartcard.c test-smartcard: Test invalid reader closes the channel 2020-01-24 18:31:14 +00: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.c test-stream-device: Factor out VMC emulation 2019-10-09 10:33:25 +01:00
test-stream.c Do not check for HAVE_CONFIG_H 2019-04-30 09:26:55 +01:00
test-two-servers.c tests: Automatically determine free port to use 2017-09-21 17:32:23 +02:00
test-vdagent.c test-vdagent: Remove useless MIN definition 2017-12-05 10:54:09 +00: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: Reuse red_socket_set_non_blocking 2019-08-06 13:45:24 +01:00
vmc-emu.c test-smardcard: Improve test coverage 2019-10-09 10:33:25 +01:00
vmc-emu.h test-smardcard: Improve test coverage 2019-10-09 10:33:25 +01:00
win-alarm.c tests: Provide alarm replacement for Windows 2019-05-07 10:13:58 +01:00
win-alarm.h tests: Provide alarm replacement for Windows 2019-05-07 10:13:58 +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