[ui] Move txtbuffer and vrect tests to libs/ui

Fixes make check
This commit is contained in:
Bill Currie 2021-06-13 14:29:46 +09:00
parent 13b4b44e35
commit 24fd443ef3
5 changed files with 19 additions and 14 deletions

View file

@ -1,4 +1,4 @@
#include libs/ui/test/Makemodule.am
include libs/ui/test/Makemodule.am
lib_LTLIBRARIES += libs/ui/libQFui.la

View file

@ -0,0 +1,15 @@
libs_ui_tests = \
libs/ui/test/test-txtbuffer \
libs/ui/test/test-vrect
TESTS += $(libs_ui_tests)
check_PROGRAMS += $(libs_ui_tests)
libs_ui_test_test_txtbuffer_SOURCES=libs/ui/test/test-txtbuffer.c
libs_ui_test_test_txtbuffer_LDADD=libs/ui/libQFui.la
libs_ui_test_test_txtbuffer_DEPENDENCIES=libs/ui/libQFui.la
libs_ui_test_test_vrect_SOURCES=libs/ui/test/test-vrect.c
libs_ui_test_test_vrect_LDADD=libs/ui/libQFui.la
libs_ui_test_test_vrect_DEPENDENCIES=libs/ui/libQFui.la

View file

@ -4,7 +4,7 @@
#include <stdio.h>
#include <string.h>
#include "QF/txtbuffer.h"
#include "QF/ui/txtbuffer.h"
static size_t
check_text_ptr (txtbuffer_t *buffer, size_t offset, const char *txt,

View file

@ -3,7 +3,7 @@
#endif
#include <stdio.h>
#include "QF/vrect.h"
#include "QF/ui/vrect.h"
#define VR(x,y,w,h) {x,y,w,h,0}
#define VRn(x,y,w,h,n) {x,y,w,h,n}

View file

@ -18,9 +18,7 @@ libs_util_tests = \
libs/util/test/test-sebvf \
libs/util/test/test-seg \
libs/util/test/test-set \
libs/util/test/test-simd \
libs/util/test/test-txtbuffer \
libs/util/test/test-vrect
libs/util/test/test-simd
TESTS += $(libs_util_tests)
@ -105,11 +103,3 @@ libs_util_test_test_set_DEPENDENCIES=libs/util/libQFutil.la
libs_util_test_test_simd_SOURCES=libs/util/test/test-simd.c
libs_util_test_test_simd_LDADD=libs/util/libQFutil.la
libs_util_test_test_simd_DEPENDENCIES=libs/util/libQFutil.la
libs_util_test_test_txtbuffer_SOURCES=libs/util/test/test-txtbuffer.c
libs_util_test_test_txtbuffer_LDADD=libs/util/libQFutil.la
libs_util_test_test_txtbuffer_DEPENDENCIES=libs/util/libQFutil.la
libs_util_test_test_vrect_SOURCES=libs/util/test/test-vrect.c
libs_util_test_test_vrect_LDADD=libs/util/libQFutil.la
libs_util_test_test_vrect_DEPENDENCIES=libs/util/libQFutil.la