view src/testcase.c @ 760:5781b2485e38

Fix position issue of stext. Sometime, stext does not show at correct position. After some study, it is caused by a typo in the code of create scaled font (make_scaled_font_face()). The typo causes a fault in compute transform matrix for scale fonts.
author Thinker K.F. Li <thinker@codemud.net>
date Sat, 28 Aug 2010 22:54:07 +0800
parents 1a923ea699c1
children 586e50f82c1f
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);
extern CU_pSuite get_event_suite(void);
extern CU_pSuite get_stext_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();
    suite = get_event_suite();
    if(suite == NULL)
	return CU_get_error();
    suite = get_stext_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();
}