Getting the sample is not a check in itself
[vlc.git] / test / Makefile.am
1 ###############################################################################
2 # Automake targets and declarations
3 ###############################################################################
4
5 AUTOMAKE_OPTIONS = subdir-objects
6
7 ###############################################################################
8 # Unit/regression test
9 ###############################################################################
10 check_PROGRAMS = \
11     test_libvlc_core \
12         test_libvlc_events \
13         test_libvlc_media_list \
14         test_libvlc_media_list_player \
15         test_libvlc_media_player \
16         $(NULL)
17 check_DATA = samples/test.sample
18
19 TESTS = $(check_PROGRAMS)
20
21 DISTCLEANFILES = samples/test.sample
22
23 # Samples server
24 SAMPLES_SERVER=http://streams.videolan.org/streams-videolan/reference
25
26 samples/test.sample:
27         mkdir -p `dirname $@`
28         curl $(SAMPLES_SERVER)/avi/Hero-Div3.avi > $@
29
30 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
31
32 test_libvlc_core_SOURCES = libvlc/core.c
33 test_libvlc_core_LDADD = $(top_builddir)/src/libvlc-control.la
34 test_libvlc_core_CFLAGS = $(CFLAGS_tests)
35
36 test_libvlc_events_SOURCES = libvlc/events.c
37 test_libvlc_events_LDADD = $(top_builddir)/src/libvlc-control.la
38 test_libvlc_events_CFLAGS = $(CFLAGS_tests)
39
40 test_libvlc_media_list_player_SOURCES = libvlc/media_list_player.c
41 test_libvlc_media_list_player_LDADD = $(top_builddir)/src/libvlc-control.la
42 test_libvlc_media_list_player_CFLAGS = $(CFLAGS_tests)
43
44 test_libvlc_media_list_SOURCES = libvlc/media_list.c
45 test_libvlc_media_list_LDADD = $(top_builddir)/src/libvlc-control.la
46 test_libvlc_media_list_CFLAGS = $(CFLAGS_tests)
47
48 test_libvlc_media_player_SOURCES = libvlc/media_player.c
49 test_libvlc_media_player_LDADD = $(top_builddir)/src/libvlc-control.la
50 test_libvlc_media_player_CFLAGS = $(CFLAGS_tests)
51
52 FORCE:
53         @echo "Generated source cannot be phony. Go away." >&2
54         @exit 1
55
56 .PHONY: FORCE