spice/server/tests/test_display_base.h
Fabiano Fidêncio 1e8e2f9ee0 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.
2012-02-14 14:53:44 +02:00

27 lines
616 B
C

#ifndef __TEST_DISPLAY_BASE_H__
#define __TEST_DISPLAY_BASE_H__
#include <spice.h>
#include "basic_event_loop.h"
#define COUNT(x) ((sizeof(x)/sizeof(x[0])))
void test_set_simple_command_list(int* commands, int num_commands);
void test_add_display_interface(SpiceServer *server);
SpiceServer* test_init(SpiceCoreInterface* core);
/* Used for automated tests */
void check_automated(int argc, char **argv);
// simple queue for commands
enum {
PATH_PROGRESS,
SIMPLE_CREATE_SURFACE,
SIMPLE_DRAW,
SIMPLE_COPY_BITS,
SIMPLE_DESTROY_SURFACE,
SIMPLE_UPDATE,
};
#endif // __TEST_DISPLAY_BASE_H__