Allows to use scripts for "make check"

Allow both compiled and non-compiled tests to be used with "make
check". Compiled tests should be added to check_PROGRAMS, and scripts
that do not need to be built should be added to TESTS.

Signed-off-by: Frediano Ziglio <fziglio@redhat.com>
Acked-by: Jonathon Jongsma <jjongsma@redhat.com>
This commit is contained in:
Frediano Ziglio 2016-10-18 11:24:24 +01:00
parent 6f32ec1434
commit b0d8ba9a6a

View File

@ -36,7 +36,7 @@ LDADD = \
$(SPICE_NONPKGCONFIG_LIBS) \
$(NULL)
TESTS = \
check_PROGRAMS = \
spice-options-test \
stat_test \
stream-test \
@ -57,10 +57,11 @@ noinst_PROGRAMS = \
test_vdagent \
test_display_width_stride \
spice-server-replay \
$(TESTS) \
$(check_PROGRAMS) \
$(NULL)
check_PROGRAMS = $(TESTS)
TESTS = $(check_PROGRAMS) \
$(NULL)
noinst_LIBRARIES += \
libstat_test1.a \