view src/testcase.c @ 224:29e1b2bffe4c

X backend only sent EVT_MOUSE_MOVE_RAW to MadButterfly. - backend does not interpret mouse events (over/out/move), now. - redraw manager, now, interpret mouse events to make it backend independent. - The task (interpret mouse events) should be moved to somewhere in futhure. - backend only sent MotionNotify as EVT_MOUSE_MOVE_RAW. - EVT_MOUSE_MOVE_RAW is interpreted by backend independent code.
author Thinker K.F. Li <thinker@branda.to>
date Mon, 15 Dec 2008 10:13:03 +0800
parents 9ab15ebc9061
children 65cabbdd5284
line wrap: on
line source

#include <CUnit/Basic.h>

extern CU_pSuite get_tools_suite(void);
extern CU_pSuite get_coord_suite(void);
extern CU_pSuite get_geo_suite(void);
extern CU_pSuite get_shape_path_suite(void);
extern CU_pSuite get_redraw_man_suite(void);
extern CU_pSuite get_animate_suite(void);
extern CU_pSuite get_observer_suite(void);

int
main(int argc, char * const argv[]) {
    CU_pSuite suite;

    if(CU_initialize_registry() != CUE_SUCCESS)
	return CU_get_error();

    suite = get_tools_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_coord_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_geo_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_shape_path_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_redraw_man_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_animate_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_observer_suite();
    if(suite == NULL)
	return CU_get_error();

    CU_basic_set_mode(CU_BRM_VERBOSE);
    CU_basic_run_tests();
    CU_cleanup_registry();

    return CU_get_error();
}