summaryrefslogtreecommitdiff
path: root/test/libapt/makefile
blob: 66d6ea783bb3d0e485ccab8ec2e91023e3597373 (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
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
# -*- make -*-
BASE=../..
SUBDIR=test/libapt
BASENAME=_libapt_test
APT_DOMAIN=none

# Bring in the default rules
include ../../buildlib/defaults.mak

.PHONY: test
test:
	./run-tests

# Program for testing getLanguageCode
PROGRAM = getLanguages${BASENAME}
SLIBS = -lapt-pkg
SOURCE = getlanguages_test.cc
include $(PROGRAM_H)

PROGRAM = getArchitectures${BASENAME}
SLIBS = -lapt-pkg
SOURCE = getarchitectures_test.cc
include $(PROGRAM_H)

# Program for testing ParseDepends
PROGRAM = ParseDepends${BASENAME}
SLIBS = -lapt-pkg
SOURCE = parsedepends_test.cc
include $(PROGRAM_H)

# Program for testing GetListOfFilesInDir
PROGRAM = GetListOfFilesInDir${BASENAME}
SLIBS = -lapt-pkg
SOURCE = getlistoffilesindir_test.cc
include $(PROGRAM_H)

# Program for testing CommandLine reconstruction
PROGRAM = Commandline${BASENAME}
SLIBS = -lapt-pkg
SOURCE = commandline_test.cc
include $(PROGRAM_H)

# Program for testing CommandLine reconstruction
PROGRAM = CommandlineAsString${BASENAME}
SLIBS = -lapt-pkg
SOURCE = commandlineasstring_test.cc
include $(PROGRAM_H)

# Program for testing debians version comparing
PROGRAM = CompareVersion${BASENAME}
SLIBS = -lapt-pkg
SOURCE = compareversion_test.cc
include $(PROGRAM_H)

# test the GlobalError stack class
PROGRAM = GlobalError${BASENAME}
SLIBS = -lapt-pkg
SOURCE = globalerror_test.cc
include $(PROGRAM_H)

# test the different Hashsum classes
PROGRAM = HashSums${BASENAME}
SLIBS = -lapt-pkg
SOURCE = hashsums_test.cc
include $(PROGRAM_H)

# test the strutils stuff
PROGRAM = StrUtil${BASENAME}
SLIBS = -lapt-pkg
SOURCE = strutil_test.cc
include $(PROGRAM_H)

# test the URI parsing stuff
PROGRAM = URI${BASENAME}
SLIBS = -lapt-pkg
SOURCE = uri_test.cc
include $(PROGRAM_H)

# test the Configuration class
PROGRAM = Configuration${BASENAME}
SLIBS = -lapt-pkg
SOURCE = configuration_test.cc
include $(PROGRAM_H)

# test cdroms core FindPackages
PROGRAM = CdromFindPackages${BASENAME}
SLIBS = -lapt-pkg
SOURCE = cdromfindpackages_test.cc
include $(PROGRAM_H)

# test cdroms index reduction for source.list
PROGRAM = CdromReduceSourceList${BASENAME}
SLIBS = -lapt-pkg
SOURCE = cdromreducesourcelist_test.cc
include $(PROGRAM_H)

# test cdroms FindMountPointForDevice for udev autodetection
PROGRAM = CdromFindMountPointForDevice${BASENAME}
SLIBS = -lapt-pkg
SOURCE = cdromfindmountpointfordevice_test.cc
include $(PROGRAM_H)

# test IndexCopy::ConvertToSourceList
PROGRAM = IndexCopyToSourceList${BASENAME}
SLIBS = -lapt-pkg
SOURCE = indexcopytosourcelist_test.cc

# test fileutls
PROGRAM = FileUtl${BASENAME}
SLIBS = -lapt-pkg 
SOURCE = fileutl_test.cc
include $(PROGRAM_H)

# test tagfile
PROGRAM = PkgTagFile${BASENAME}
SLIBS = -lapt-pkg
SOURCE = tagfile_test.cc
include $(PROGRAM_H)

# test sourcelist
PROGRAM = SourceList${BASENAME}
SLIBS = -lapt-pkg
SOURCE = sourcelist_test.cc
include $(PROGRAM_H)