summaryrefslogtreecommitdiffstats
path: root/tests/Makefile.am
Commit message (Collapse)AuthorAgeFilesLines
* Revert "Remove files moved to spice-protocol"Marc-André Lureau2016-03-101-9/+9
| | | | | | | | | | | | | | | | This reverts commit 7665dcf1bb2fa0b16b3d0015b28d7f5912664c3f. Also revert the related build-sys changes to fix the build. codegen generated code depends on spice-common code (marshaller, messages etc), it makes more sense to keep the generator along this. Otherwise a newer protocol release will fail to build older projects. *.proto files are required as well, since it generates code that parent modules depend on unconditionnaly. Signed-off-by: Marc-André Lureau <marcandre.lureau@redhat.com>
* log: Add test case for logging codeChristophe Fergeau2016-01-261-1/+16
| | | | | | | | | | | | | | | | | This gives us a baseline of how the SPICE/glib integration is supposed to behave. Everything goes through glib logging facilities, and is impacted by G_MESSAGES_DEBUG/G_DEBUG=fatal-{warnings,criticals} Messages in the SPICE_LOG_DOMAIN log domain (output either through spice_log() or g_log()) will also consider the legacy SPICE_DEBUG_LEVEL and SPICE_ABORT_LEVEL environment variables. Messages in other domains will not be impacted by these legacy environment variables. If spice-common is built without SPICE_DISABLE_ABORT, spice_return_if_fail()/spice_critical() will abort the program. g_return_if_fail()/g_critical() will not abort the program.
* tests: Always build testsChristophe Fergeau2016-01-261-1/+1
| | | | | | | | | | | | | The next commit will introduce a test for log messages. As libspice-common.la behaviour varies depending on whether SPICE_DISABLE_ASSERT was defined at compile-time, this test will also take into account this preprocessor define. We are more likely to get a consistent build (SPICE_DISABLE_ASSERT being the same when building libspice-common.la and the test) if both are built at the same time. This commit changes that, tests are now built (but not run) at 'make' time rather than 'make check' time.
* test: Use _LDADD rather than _LDFLAGSChristophe Fergeau2015-12-161-1/+1
| | | | | | This allows libtool/automake to correctly add a dependency from libspice-common.la to test_marshallers. With _LDFLAGS, the binary won't automatically get rebuilt/relinked when the lib changes.
* Fix make distcheckMarc-André Lureau2015-11-251-1/+2
| | | | | | | Fix make distcheck both with standalone spice-common and with spice server. Signed-off-by: Marc-André Lureau <marcandre.lureau@gmail.com>
* Add marshaller test caseChristophe Fergeau2015-09-151-0/+50
This allows to test the spice_marshaller_linearize() fix which was sent recently.