diff options
author | Fabiano FidĂȘncio <fabiano@fidencio.org> | 2012-02-03 02:10:03 -0200 |
---|---|---|
committer | Alon Levy <alevy@redhat.com> | 2012-02-14 14:53:44 +0200 |
commit | 1e8e2f9ee082ea0fb0e71736ba6d2578dea05e70 (patch) | |
tree | 99c508b51b3e3305ee50b1f5ce5c5f442897cf05 /server/tests/test_display_streaming.c | |
parent | aebe837d3ae58f7bbd48bcb010680c1b95f8dc6a (diff) | |
download | spice-1e8e2f9ee082ea0fb0e71736ba6d2578dea05e70.tar.gz spice-1e8e2f9ee082ea0fb0e71736ba6d2578dea05e70.tar.xz spice-1e8e2f9ee082ea0fb0e71736ba6d2578dea05e70.zip |
Adding support to automated tests
As suggested by Alon, a simple automated test to try to find
regressions in Spice code.
To use this, compile Spice with --enable-automated-tests and
run test_display_streaming passing --automated-tests as parameter.
Diffstat (limited to 'server/tests/test_display_streaming.c')
-rw-r--r-- | server/tests/test_display_streaming.c | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/server/tests/test_display_streaming.c b/server/tests/test_display_streaming.c index 025541d6..5052991d 100644 --- a/server/tests/test_display_streaming.c +++ b/server/tests/test_display_streaming.c @@ -10,13 +10,19 @@ int simple_commands[] = { SIMPLE_DRAW, SIMPLE_UPDATE, + PATH_PROGRESS, + SIMPLE_CREATE_SURFACE, + SIMPLE_DESTROY_SURFACE, }; SpiceCoreInterface *core; SpiceServer *server; -int main(void) +int main(int argc, char **argv) { +#ifdef AUTOMATED_TESTS + check_automated(argc, argv); +#endif core = basic_event_loop_init(); server = test_init(core); spice_server_set_streaming_video(server, SPICE_STREAM_VIDEO_ALL); |