Commit Graph

12 Commits

Author SHA1 Message Date
Eduardo Lima (Etrunko)
7d1197522f tests: Shut up warnings about unitialized struct fields
Build complains about lots of unitialized fields in TestCase definition,
for instance:

../tests/session.c:276:11: warning: missing initializer for field ‘message’ of ‘TestCase {aka const struct <anonymous>}’ [-Wmissing-field-initializers]
           "spice://[::192.9.5.5]:5910" },
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~
../tests/session.c:11:18: note: ‘message’ declared here
     const gchar *message;
                  ^~~~~~~
../tests/session.c:282:11: warning: missing initializer for field ‘unix_path’ of ‘TestCase {aka const struct <anonymous>}’ [-Wmissing-field-initializers]
           "password may be visible in process listings"},
           ^~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

Signed-off-by: Eduardo Lima (Etrunko) <etrunko@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-04-25 09:36:44 -03:00
Marc-André Lureau
d2700d3524 tests: add spice+tls:// tests
They couldn't not be introduced before, because the test needs both
parsing and generation.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-03-02 17:16:17 +00:00
Marc-André Lureau
4e63a1339b uri: generate spice://host:port or spice+tls://host:port
Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-03-02 17:16:17 +00:00
Marc-André Lureau
ac71650857 tests: add spice+unix:// URI checks
For some reason, the URIs test didn't include spice+unix:// checks,
probably because they came about the same time.

Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
Acked-by: Frediano Ziglio <fziglio@redhat.com>
2018-02-13 08:56:05 +00:00
Pavel Grunt
2528cd907b test-session: Fix comparison
The test was not executed because G_N_ELEMENTS is 0 for the pointer

Acked-by: Victor Toso <victortoso@redhat.com>
2016-10-19 15:05:32 +02:00
Pavel Grunt
7b6cd9613f test-session: Add IPv6 tests 2016-10-17 20:07:15 +02:00
Pavel Grunt
b8749cc053 test-session: Test invalid URIs 2016-10-17 20:07:15 +02:00
Pavel Grunt
7e010e76ff test-session: Also test hostname, username and password 2016-10-17 20:07:15 +02:00
Pavel Grunt
36f28f4e47 test-session: Test alternative way for setting port
Acked-by: Victor Toso <victortoso@redhat.com>
2016-10-17 20:07:15 +02:00
Victor Toso
6f11f55996 tests: fix -Wall -Wextra compiler warnings
With -Wall a few -Wunused-variable and -Wunused-but-set-variable;
With -Wextra lots of -Wunused-parameter and a few -Wsign-compare.

Signed-off-by: Victor Toso <victortoso@redhat.com>
Acked-by: Pavel Grunt <pgrunt@redhat.com>
2016-10-05 14:15:08 +02:00
Marc-André Lureau
3c6b4ae867 build-sys: fix 'Only <spice-client.h> can be included directly' warning
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>
2016-03-15 17:11:18 +01:00
Victor Toso
ca59cb30c1 tests: add spice-session test
Checking if URIs are being parsed and generated correctly.
2015-02-27 17:00:07 +01:00