summaryrefslogtreecommitdiffstats
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Adjust to GLib 2.36Pavel Grunt2016-03-182-8/+0
| | | | | | | | Dependency since 8693e7d3f7de1ff102082212fa6e35fb1a252ef7 Remove glib-compat files and most of GLIB_CHECK_VERSION guards Acked-by: Victor Toso <victortoso@redhat.com>
* build-sys: fix 'Only <spice-client.h> can be included directly' warningMarc-André Lureau2016-03-152-3/+2
| | | | | | | | | Tests should be allowed to include directly private headers. Set __SPICE_CLIENT_H_INSIDE__ where necessary or include spice-client.h where possible. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com> Acked-by: Fabiano Fidêncio <fidencio@redhat.com>
* build-sys: fix make check when polkit not availableMarc-André Lureau2016-03-111-4/+7
| | | | | | acl-helper needs polkit (and unix atm) to build. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
* Add tests for usb-acl-helperJonathon Jongsma2016-03-113-5/+330
|
* Move gtk/ -> src/Marc-André Lureau2015-06-081-3/+3
| | | | | For historical reasons, the code was placed under gtk/ subdirectory. If it was always bugging you, bug no more!
* tests: add test to check for zombie GSourcesVictor Toso2015-06-051-0/+106
| | | | | | | | Using g_pollable_input_stream_create_source to generage several dummy GSources in order to check if giopipe sets all of them to be dispatched. This test check for zombie GSources during a write_all/read_chunk operation.
* tests: add test to concurrent write to pipeVictor Toso2015-06-051-0/+45
| | | | | Concurrent write is not supported and should fail. The GIO error is G_IO_ERROR_PENDING
* tests: pipe using _write_all_async functionVictor Toso2015-06-051-0/+75
|
* tests: remove read8_cb to use generic read_cbVictor Toso2015-06-051-16/+2
| | | | Both functions are basic the same so let's keep the generic one.
* build-sys: fix out-of-tree build from tarballMarc-André Lureau2015-03-041-1/+3
| | | | | | | | | There are generated files in build directory too. Fixes: CC util.o In file included from ../../tests/session.c:3:0: ../../gtk/spice-session.h:24:30: fatal error: spice-glib-enums.h: No such file or directory #include "spice-glib-enums.h"
* Add GIOStream-based pipeMarc-André Lureau2015-03-032-0/+319
| | | | | | | | | | This code creates a pipe between 2 GIOStream, the input side read from the peer output side, and vice-versa. In the following patches, this will avoid the socket communication to exchange with the embedded webdav server. glib-2.0 >= 2.43.90 because GSimpleIOStream dependency.
* tests: add spice-session testVictor Toso2015-02-272-0/+76
| | | | Checking if URIs are being parsed and generated correctly.
* build-sys: generate gitignore in tests dirMarc-André Lureau2014-10-301-0/+2
|
* Fix -Wsign-comparePavel Grunt2014-09-181-5/+6
|
* utils tests: fix sign comparison problemRyan Lortie2014-02-101-1/+1
| | | | | | | | This test compares a guint8 and a gchar with '==' which fails when comparing 240 to -16, even though these are the same byte value. Add an explicit 'guchar' cast to correct the problem. https://bugs.freedesktop.org/show_bug.cgi?id=74754
* test: fix a few compiler warningsMarc-André Lureau2014-02-071-6/+6
| | | | | util.c: In function 'test_set_bit': util.c:131:13: warning: pointer targets in initialization differ in signedness [-Wpointer-sign]
* tests: add some coroutine testsMarc-André Lureau2013-11-202-7/+147
|
* channel-cursor: mono cursors edge highlightingAlon Levy2013-10-201-0/+117
| | | | | | | | | | | | | | | Fix 998529, mono (invert) cursors not visible on a black background, by doing simple edge detection on the cursor (this is done once when the cursor is changed and then cached, cursors are 32x32 generally) and thus having a cursor with contrast on both dark and light backgrounds. When (if) GDK gets invert cursor support (wayland?) then we can just use the cursor as is. Until then X doesn't provide any way I see of solving this otherwise. The end result was tested with the I beam cursor that the original bug was referring to (run putty on a windows 7 vm) and looks ok to me. Moving the core function to spice-util for testing.
* tests: add some dos2unix testsMarc-André Lureau2013-08-242-0/+107
This is probably not exhaustive enough, but better than nothing.