summaryrefslogtreecommitdiff
path: root/tests
Commit message (Collapse)AuthorAgeFilesLines
* Add gupnp_service_proxy_set_credentials ()Jan-Michael Brummer2023-04-021-0/+188
| | | | Fixes: https://gitlab.gnome.org/GNOME/gupnp/-/issues/85
* Clear error in context bind testJens Georg2023-03-311-0/+1
|
* tests: Check if bind() to the same TCP port errorsJens Georg2023-02-181-0/+15
| | | | If not, skip the corresponding test
* context: Fix getting port if port was randomJens Georg2022-11-202-0/+50
| | | | Fixed #81
* service: Initialize GError properlyJens Georg2022-11-071-0/+80
| | | | | | | Trying to propagate an error over some unintialized error causes a warning and, more importantly, an invalid free Fixes #80
* Test suite needs libxml2Tomasz Kłoczko2022-09-031-1/+1
| | | | | | | | | | | | | | | | | | | Without that build test suite binaties fails ```console + /usr/bin/meson compile -C x86_64-redhat-linux-gnu -j 48 --verbose ninja: Entering directory `/home/tkloczko/rpmbuild/BUILD/gupnp-1.5.3/x86_64-redhat-linux-gnu' [1/66] /usr/bin/gcc -Itests/test-service.p -Itests -I../tests -Iinternal -I../internal -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.6 -I/usr/include/libsoup-3.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -Werror=deprecated-declarations -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -pthread '-DDATA_PATH="/home/tkloczko/rpmbuild/BUILD/gupnp-1.5.3/tests/data"' -MD -MQ tests/test-service.p/test-service.c.o -MF tests/test-service.p/test-service.c.o.d -o tests/test-service.p/test-service.c.o -c ../tests/test-service.c FAILED: tests/test-service.p/test-service.c.o /usr/bin/gcc -Itests/test-service.p -Itests -I../tests -Iinternal -I../internal -I. -I.. -I/usr/include/glib-2.0 -I/usr/lib64/glib-2.0/include -I/usr/include/gssdp-1.6 -I/usr/include/libsoup-3.0 -fdiagnostics-color=always -D_FILE_OFFSET_BITS=64 -Wall -Winvalid-pch -O0 -Werror=deprecated-declarations -O2 -g -grecord-gcc-switches -pipe -Wall -Werror=format-security -Wp,-D_FORTIFY_SOURCE=2 -Wp,-D_GLIBCXX_ASSERTIONS -specs=/usr/lib/rpm/redhat/redhat-hardened-cc1 -fstack-protector-strong -specs=/usr/lib/rpm/redhat/redhat-annobin-cc1 -m64 -mtune=generic -fasynchronous-unwind-tables -fstack-clash-protection -fcf-protection -fdata-sections -ffunction-sections -flto=auto -flto-partition=none -pthread '-DDATA_PATH="/home/tkloczko/rpmbuild/BUILD/gupnp-1.5.3/tests/data"' -MD -MQ tests/test-service.p/test-service.c.o -MF tests/test-service.p/test-service.c.o.d -o tests/test-service.p/test-service.c.o -c ../tests/test-service.c In file included from ../tests/test-service.c:5: ../libgupnp/gupnp-xml-doc.h:15:10: fatal error: libxml/tree.h: No such file or directory 15 | #include <libxml/tree.h> | ^~~~~~~~~~~~~~~ compilation terminated. ``` Signed-off-by: Tomasz Kłoczko <kloczek@github.com>
* tests: Do not rely on soup's messagesJens Georg2022-08-161-3/+2
| | | | | Only check for our part of the warning, do not consider upstream texts to be stable
* all: Fix build against Soup 3.1.2 and laterJens Georg2022-08-161-0/+8
|
* Context: Add new convenience constructorsJens Georg2022-08-071-2/+10
| | | | | Add new constructors that allow to set the new parameters directly, instead of forcing the use of g_object_new
* ContextManager: Handle filter events properlyJens Georg2022-06-191-12/+197
| | | | | | | | | | | | | | If the filter is changed, announce all changed to contexts as well This means if the filter is changed, causing a known device not to match anymore, it will signal "context-unavailable" and drop all managed devices attached to that context. Likewise, for filter changes that cause contexts to not being filtered out any more, "context-available" will be signalled. Fixes #36 Fixes #37
* ContextFilter: Emit notifications on real changesJens Georg2022-06-191-0/+25
| | | | So ContextManager can be sure it is only triggered if it has to act
* tests: Add ContextManager tests for base classJens Georg2022-06-192-1/+192
|
* test: Use correct log domain in checkJens Georg2022-06-141-1/+1
|
* test: Fix double-free introduced in previous commitJens Georg2022-06-121-2/+0
|
* ContextFilter: Fix implementationJens Georg2022-06-122-1/+288
| | | | Yeah. That was broken...
* all: Coverity fixesJens Georg2022-06-053-4/+11
| | | | | | CID352971, CID352973, CID352974, CID352977, CID352980 Also sprinkle some coverity false-positive markers
* tests: One more v6 test as optionalJens Georg2022-05-271-17/+19
|
* all: Fix minor issues from scan-buildJens Georg2022-05-261-1/+0
|
* tests: In the double bind test, skip if ipv6 failsJens Georg2022-05-251-22/+24
|
* tests: Do not assume IPv6 existsJens Georg2022-05-252-10/+38
|
* test: Add sync call soap error testJens Georg2022-04-021-6/+43
|
* test-proxy: Test call_finish for SOAP errorsJens Georg2022-04-021-0/+59
|
* service-proxy-test: Fix missing action and errorJens Georg2022-04-021-1/+6
| | | | | The error check was in the wrong position thus the test was not sensitive to the Browse action not being implemented
* test: Do not pollute global factoryJens Georg2022-03-121-4/+7
|
* tests: Add ServiceProxy testJens Georg2022-01-232-1/+599
|
* ServiceProxy: Remove deprecated APIJens Georg2022-01-201-168/+30
|
* ServiceProxy: Fix double-free on ProxyActionJens Georg2022-01-091-0/+69
| | | | | | | If call_finish() is not called, do not unref the action since it is bound to the task's lifetime anyway Fixes #60
* tests: Adapt tests to proper shutdown soup serverJens Georg2022-01-091-19/+103
|
* ServiceProxy: Properly re-queue if POST failedJens Georg2022-01-051-2/+159
| | | | | | | | The re-queue of message after POST was returned with METHOD_NOT ALLOWED never worked. Just re-send the message after changing the method to M-POST Fixes #63
* ServiceAction: Forward-port Action.return_successJens Georg2022-01-031-2/+2
|
* tests: Add test for gitlab issue #42Jens Georg2022-01-021-0/+28
|
* tests: Remove some compiler warningsJens Georg2021-12-301-13/+12
|
* tests: Add some branches for ACL testsJens Georg2021-12-301-5/+9
|
* tests: No need to check for error on gupnp0 detectJens Georg2021-12-302-4/+8
|
* tests: Disconnect timeout for delayed shutdownJens Georg2021-12-302-2/+16
|
* tests: Add tests for ACLJens Georg2021-12-302-1/+459
|
* tests: More context host path testsJens Georg2021-12-301-8/+204
|
* tests: Add fixtures, use gupnp0 device if it existsJens Georg2021-12-301-248/+320
|
* test: Check redirect for foldersJens Georg2021-12-301-1/+58
|
* test: Add test for unhosting pathJens Georg2021-12-301-2/+46
|
* test: Fix compiler warnings regarding call-backsJens Georg2021-12-301-7/+7
|
* test: Add test for hosting by user-agentJens Georg2021-12-301-1/+91
|
* tests: Add test for folder serving with localeJens Georg2021-12-304-0/+132
|
* tests: Add test for language handling for filesJens Georg2021-12-304-17/+116
|
* Test: Add test for default language handlingJens Georg2021-12-301-0/+131
|
* tests: Test default handlerJens Georg2021-12-301-1/+62
|
* tests: Add test for v6 URI rewritingJens Georg2021-12-302-7/+115
|
* tests: Add test for ggo#58Jens Georg2021-12-302-0/+141
| | | | https://gitlab.gnome.org/GNOME/gupnp/-/issues/58
* tests: Make sure the session is cleaned properlyJens Georg2021-12-302-18/+37
|
* tests: Check context creation failsJens Georg2021-11-211-2/+33
| | | | | If we cannot listen on our internal server port, fail the GInitable creation