summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: 58e1677f14ccff2870669ad359469dc1bca92044 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
# Copyright (c) 2007 Intel Corporation. All Rights Reserved.
#
# Permission is hereby granted, free of charge, to any person obtaining a
# copy of this software and associated documentation files (the
# "Software"), to deal in the Software without restriction, including
# without limitation the rights to use, copy, modify, merge, publish,
# distribute, sub license, and/or sell copies of the Software, and to
# permit persons to whom the Software is furnished to do so, subject to
# the following conditions:
# 
# The above copyright notice and this permission notice (including the
# next paragraph) shall be included in all copies or substantial portions
# of the Software.
# 
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS
# OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
# MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NON-INFRINGEMENT.
# IN NO EVENT SHALL PRECISION INSIGHT AND/OR ITS SUPPLIERS BE LIABLE FOR
# ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT,
# TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION WITH THE
# SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.

check_PROGRAMS = test_01 test_02 test_03 test_04 test_05 test_06 \
		test_07 test_08 test_09 test_10 test_11 test_12

bin_PROGRAMS = vainfo

testdir = $(bindir)

AM_CFLAGS = -I$(top_srcdir)/../../include/external/ -I$(top_srcdir)/src -I$(top_srcdir)/src/x11 -DIN_LIBVA

TESTS = $(check_PROGRAMS)

TEST_LIBS = $(top_srcdir)/src/$(libvabackendlib)

vainfo_LDADD = $(top_srcdir)/src/$(libvabackendlib)
vainfo_DEPENDENCIES = $(top_srcdir)/src/$(libvabackendlib)
vainfo_SOURCES = vainfo.c

test_01_LDADD = $(TEST_LIBS)
test_01_SOURCES = test_01.c

test_02_LDADD = $(TEST_LIBS)
test_02_SOURCES = test_02.c

test_03_LDADD = $(TEST_LIBS)
test_03_SOURCES = test_03.c

test_04_LDADD = $(TEST_LIBS)
test_04_SOURCES = test_04.c

test_05_LDADD = $(TEST_LIBS)
test_05_SOURCES = test_05.c

test_06_LDADD = $(TEST_LIBS)
test_06_SOURCES = test_06.c

test_07_LDADD = $(TEST_LIBS)
test_07_SOURCES = test_07.c

test_08_LDADD = $(TEST_LIBS)
test_08_SOURCES = test_08.c

test_09_LDADD = $(TEST_LIBS)
test_09_SOURCES = test_09.c

test_10_LDADD = $(TEST_LIBS)
test_10_SOURCES = test_10.c

test_11_LDADD = $(TEST_LIBS)
test_11_SOURCES = test_11.c

test_12_LDADD = $(TEST_LIBS)
test_12_SOURCES = test_12.c

EXTRA_DIST = test_common.c mpeg2-I.jpg mpeg2-I.mpg

valgrind:	$(check_PROGRAMS)
	for a in $(check_PROGRAMS); do \
		valgrind --leak-check=full --show-reachable=yes .libs/$$a; \
	done