summaryrefslogtreecommitdiffstats
path: root/server/tests
Commit message (Collapse)AuthorAgeFilesLines
* Remove trailing whitespace from end of linesDaniel P. Berrange2012-01-131-1/+1
|
* Add missing includes of config.hDaniel P. Berrange2012-01-138-0/+8
| | | | Not all files were including config.h
* Remove bogus include of strings.hDaniel P. Berrange2012-01-134-4/+0
| | | | The tests include strings.h but don't need any of its functions
* Remove trailing blank linesDaniel P. Berrange2012-01-138-8/+0
| | | | Remove any blank lines at the end of all source files
* Remove useless if() before free()Daniel P. Berrange2012-01-131-3/+1
| | | | | The free() function allows NULL to be passed in, so any code which puts a if() before free() is wasting time
* server: fix function prototypesChristophe Fergeau2011-09-058-11/+11
| | | | | | | | Several functions in server/ were not specifying an argument list, ie they were declared as void foo(); When compiling with -Wstrict-prototypes, this leads to: test_playback.c:93:5: erreur: function declaration isn’t a prototype [-Werror=strict-prototypes]
* fix valgrind warning in test_display__streamChristophe Fergeau2011-09-011-1/+1
| | | | | | | | create_test_primary_surface::test_display_base.c creates a QXLDevSurfaceCreate structure and initialize it, but doesn't set the position field. Moreover, this structure has 4 bytes of padding to the end (as shown by pahole from dwarves), so initialize the whole structure to 0 before using it.
* server: add tester and todo for multiple client supportAlon Levy2011-08-231-0/+121
|
* server/tests/test_playback: correctly use spice_server_playback_get_bufferAlon Levy2011-08-231-14/+27
| | | | | | | and spice_server_playback_put_samples. The former retrieves a buffer from a free list with spice_server_playback_get_buffer, and should be used once via spice_server_playback_put_samples. The tester previously reused the same buffer a number of times.
* server/tests/basic_event_loop: multiple fixesAlon Levy2011-08-233-128/+37
| | | | | | reuse common/ring.h ignore SIGPIPE fix handling of removed watches
* server/tests/test_display_base: fix compileAlon Levy2011-08-231-2/+4
|
* server/tests: test_util.h: fix double ASSERT definitionAlon Levy2011-07-201-0/+3
|
* server/tests/basic_event_loop: strange assert failure; fixAlon Levy2011-07-051-1/+1
|
* server/tests: show port to connect toAlon Levy2011-05-091-1/+3
|
* build: fix gettimeofday warningMarc-André Lureau2011-05-031-0/+1
| | | | | | CC test_playback.o test_playback.c: In function ‘playback_timer_cb’: test_playback.c:56:5: warning: implicit declaration of function ‘gettimeofday’
* autotools: refactor the whole build machineryChristophe Fergeau2011-05-031-17/+8
| | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | | spice Makefile.am setup is a bit confusing, with source file names being listed several times in different Makefile.am (generally, once in EXTRA_DIST and another time in another Makefile.am in _SOURCES). The client binaries are built by client/x11/Makefile.am, which means recursing into client, then into x11 to finally build spicec. This Makefile.am is also referencing files from common/ and client/, which is a bit unusual with autotools. This patch attempts to simplify the build process to get something more usual from an autotools point of view. The source from common/ are compiled into a libtool convenience library, which the server and the client links against which avoids referencing source files from common/ when building the server and the client. The client is built in client/Makefile.am and directly builds files from x11/ windows/ and gui/ if needed (without recursing in these subdirectories). This makes the build simpler to understand, and also makes it possible to list source files once, which avoids potential make distcheck breakage when adding new files. There is a regression in this patch with respect to sw_canvas/gl_canvas/gdi_canvas. They should be built with different preprocessor #defines resulting in different behaviour of the canvas for the client and the server. However, this is not currently the case, both the client and the server will use the same code for now (which probably means one of them is broken). This will be fixed in a subsequent commit. make distcheck passes, but compilation on windows using the autotools build system hasn't been tested, which means it's likely to be broken. It shouldn't be too hard ot fix it though, just let me know of any issues with this.
* server/tests remove useless assignmentChristophe Fergeau2011-04-081-1/+0
| | | | This was detected by clang-static-analyzer.
* tests: fix compilation with -Wall -WerrorChristophe Fergeau2011-04-083-3/+7
| | | | | | When compiling spice with make CFLAGS="-g3 -ggdb3 -O0 -Wall -Werror", the build broken because of a few unused variables/missing returns. This patch fixes these warnings.
* remove duplicated macroChristophe Fergeau2011-04-041-2/+0
| | | | MIN() is already defined in spice-protocol/spice/macros.h
* server/tests: add test_playbackAlon Levy2011-03-223-1/+105
|
* server/tests/basic_event_loop: fix bzero warningAlon Levy2011-02-111-0/+1
|
* server/tests: split test_display_no_ssl to test_display_base, add streaming testAlon Levy2011-01-105-587/+650
|
* server/tests/test_display_no_ssl: add update_area, COPY_BITS to tested ↵Alon Levy2011-01-101-29/+163
| | | | functions, make a queue of QXLCommandExt waiting (cursor still with production at get_command)
* server/tests/test_display_no_ssl: add surface create/destroy test (commented ↵Alon Levy2011-01-101-20/+145
| | | | out), and square mode (default)
* server/tests: fix timer reset to allow setting next call during callbackAlon Levy2011-01-101-1/+1
|
* server/tests/test_display_no_ssl: change color every circleAlon Levy2011-01-101-9/+14
|
* server/tests/test_display_no_ssl: restart notify timerAlon Levy2011-01-101-1/+1
|
* server/tests: basic_event_loop: reset timer after firing itAlon Levy2011-01-101-0/+1
|
* server/tests/test_display_no_ssl: disable cursor test until it works correctlyAlon Levy2011-01-101-2/+2
|
* server/test/test_display_no_ssl: add beginning of basic cursor item test. ↵Alon Levy2011-01-101-6/+67
| | | | doesn't actually show anything on client. also, leaks.
* server/tests/test_display_no_ssl: make window 320x320, two colored updates, ↵Alon Levy2011-01-101-5/+5
| | | | one in notify batch
* Makefiles: fix server/tests/test_util.h not being included in make distHans de Goede2010-12-171-2/+2
|
* server/tests: fix for AM_LDFLAGS introductionAlon Levy2010-12-081-4/+4
|
* server/tests: Makefile.am: use AM_LDFLAGS instead of LDFLAGSAlon Levy2010-12-071-1/+1
|
* server/tests: add test_display_no_sslAlon Levy2010-11-304-50/+588
| | | | | | | | | | updates taken from spice vga mode updates, i.e. non cacheable, glz compressed (depends on whatever settings you apply to the server) opaque draw operations. + completed the SpiceCoreInterface implementation (timers) v1->v2: removed test_util.c (Hans) replaced mallocz with calloc (Hans)
* server/tests: Makefile.am fixesAlon Levy2010-11-301-2/+2
| | | | | * don't install tests on make install * don't forget anything for make dist tarball
* add .gitignore for testsAlon Levy2010-11-301-0/+4
|
* server: tests: add basic tests with working do nothing serverAlon Levy2010-11-087-0/+291