Add xrdp_bitmap_load() jpg and png test cases

This commit is contained in:
matt335672 2021-07-23 11:41:04 +01:00
parent 2d123d519d
commit 971f911290
4 changed files with 12 additions and 1 deletions

View File

@ -16,7 +16,9 @@ EXTRA_DIST = \
test_24bit.bmp \
test_not4_4bit.bmp \
test_not4_8bit.bmp \
test_not4_24bit.bmp
test_not4_24bit.bmp \
test1.jpg \
test_alpha_blend.png
TESTS = test_xrdp
check_PROGRAMS = test_xrdp

BIN
tests/xrdp/test1.jpg Normal file

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

View File

@ -299,6 +299,7 @@ make_suite_test_bitmap_load(void)
{
Suite *s;
TCase *tc_bitmap_load;
TCase *tc_other_load;
s = suite_create("BitmapLoad");
@ -320,5 +321,13 @@ make_suite_test_bitmap_load(void)
suite_add_tcase(s, tc_bitmap_load);
#ifdef USE_IMLIB2
tc_other_load = tcase_create("xrdp_other_load");
tcase_add_checked_fixture(tc_other_load, setup, teardown);
tcase_add_test(tc_other_load, test_png_load__blend_ok);
tcase_add_test(tc_other_load, test_jpg_load__ok);
suite_add_tcase(s, tc_other_load);
#endif
return s;
}