test: Move testapi.c to /test and use a sample file that is not ogg for basic testing.
[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
18 TESTS = samples $(check_PROGRAMS)
19
20 # Samples server
21 SAMPLES_SERVER=http://streams.videolan.org/streams-videolan/reference
22
23 samples/test.sample:
24         mkdir -p `basename $@`
25         curl $(SAMPLES_SERVER)/avi/Hero-Div3.avi > $@
26
27 samples: samples/test.sample
28
29 CFLAGS_tests = `$(VLC_CONFIG) --cflags libvlc`
30
31 test_libvlc_core_SOURCES = libvlc/core.c
32 test_libvlc_core_LDADD = $(top_builddir)/src/libvlc-control.la
33 test_libvlc_core_CFLAGS = $(CFLAGS_tests)
34
35 test_libvlc_events_SOURCES = libvlc/events.c
36 test_libvlc_events_LDADD = $(top_builddir)/src/libvlc-control.la
37 test_libvlc_events_CFLAGS = $(CFLAGS_tests)
38
39 test_libvlc_media_list_player_SOURCES = libvlc/media_list_player.c
40 test_libvlc_media_list_player_LDADD = $(top_builddir)/src/libvlc-control.la
41 test_libvlc_media_list_player_CFLAGS = $(CFLAGS_tests)
42
43 test_libvlc_media_list_SOURCES = libvlc/media_list.c
44 test_libvlc_media_list_LDADD = $(top_builddir)/src/libvlc-control.la
45 test_libvlc_media_list_CFLAGS = $(CFLAGS_tests)
46
47 test_libvlc_media_player_SOURCES = libvlc/media_player.c
48 test_libvlc_media_player_LDADD = $(top_builddir)/src/libvlc-control.la
49 test_libvlc_media_player_CFLAGS = $(CFLAGS_tests)
50
51 FORCE:
52         @echo "Generated source cannot be phony. Go away." >&2
53         @exit 1
54
55 .PHONY: FORCE