summaryrefslogtreecommitdiff
path: root/test/Makefile.am
blob: f379a4d404f8ee3bb44721b45e556c01f2a70978 (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
82
83

check_PROGRAMS = \
	test-entity \
	test-device \
	test-list \
	test-devicelist \
	test-filter \
	test-os \
	test-oslist \
	test-osfilter \
	test-hypervisor \
	test-hypervisorlist \
	test-db \
	test-dataread

COMMON_LDADD = \
	$(COVERAGE_LDFLAGS) \
	$(GOBJECT_LIBS) \
	$(CHECK_LIBS) \
	../osinfo/libosinfo-1.0.la
COMMON_CFLAGS = \
	$(WARN_CFLAGS) \
	$(COVERAGE_CFLAGS) \
	$(GOBJECT_CFLAGS) \
	$(CHECK_CFLAGS)

test_entity_LDADD = $(COMMON_LDADD)
test_entity_CFLAGS = $(COMMON_CFLAGS)
test_entity_SOURCES = test-entity.c

test_device_LDADD = $(COMMON_LDADD)
test_device_CFLAGS = $(COMMON_CFLAGS)
test_device_SOURCES = test-device.c

test_filter_LDADD = $(COMMON_LDADD)
test_filter_CFLAGS = $(COMMON_CFLAGS)
test_filter_SOURCES = test-filter.c

test_os_LDADD = $(COMMON_LDADD)
test_os_CFLAGS = $(COMMON_CFLAGS)
test_os_SOURCES = test-os.c

test_osfilter_LDADD = $(COMMON_LDADD)
test_osfilter_CFLAGS = $(COMMON_CFLAGS)
test_osfilter_SOURCES = test-osfilter.c

test_hypervisor_LDADD = $(COMMON_LDADD)
test_hypervisor_CFLAGS = $(COMMON_CFLAGS)
test_hypervisor_SOURCES = test-hypervisor.c

test_list_LDADD = $(COMMON_LDADD)
test_list_CFLAGS = $(COMMON_CFLAGS)
test_list_SOURCES = test-list.c

test_devicelist_LDADD = $(COMMON_LDADD)
test_devicelist_CFLAGS = $(COMMON_CFLAGS)
test_devicelist_SOURCES = test-devicelist.c

test_hypervisorlist_LDADD = $(COMMON_LDADD)
test_hypervisorlist_CFLAGS = $(COMMON_CFLAGS)
test_hypervisorlist_SOURCES = test-hypervisorlist.c

test_oslist_LDADD = $(COMMON_LDADD)
test_oslist_CFLAGS = $(COMMON_CFLAGS)
test_oslist_SOURCES = test-oslist.c

test_db_LDADD = $(COMMON_LDADD)
test_db_CFLAGS = $(COMMON_CFLAGS)
test_db_SOURCES = test-db.c

test_dataread_LDADD = $(COMMON_LDADD)
test_dataread_CFLAGS = $(COMMON_CFLAGS)
test_dataread_SOURCES = test-dataread.c

TESTS = $(check_PROGRAMS)

TESTS_ENVIRONMENT = \
	LC_ALL=C \
	G_SLICE=always-malloc G_DEBUG=gc-friendly \
	$(VG)

valgrind:
	$(MAKE) check VG="libtool --mode=execute valgrind --quiet --tool=memcheck --leak-check=full --leak-resolution=high --num-callers=20  --suppressions=osinfo.suppression"