]>
Commit | Line | Data |
---|---|---|
45df0ad2 DK |
1 | # -*- make -*- |
2 | BASE=../.. | |
3 | SUBDIR=test/libapt | |
4 | BASENAME=_libapt_test | |
57da1b4b | 5 | APT_DOMAIN=none |
45df0ad2 DK |
6 | |
7 | # Bring in the default rules | |
8 | include ../../buildlib/defaults.mak | |
9 | ||
92d5a40d DK |
10 | .PHONY: test |
11 | test: | |
12 | ./run-tests | |
13 | ||
45df0ad2 DK |
14 | # Program for testing getLanguageCode |
15 | PROGRAM = getLanguages${BASENAME} | |
16 | SLIBS = -lapt-pkg | |
17 | SOURCE = getlanguages_test.cc | |
18 | include $(PROGRAM_H) | |
41c81fd8 | 19 | |
3152f4aa DK |
20 | PROGRAM = getArchitectures${BASENAME} |
21 | SLIBS = -lapt-pkg | |
22 | SOURCE = getarchitectures_test.cc | |
23 | include $(PROGRAM_H) | |
24 | ||
41c81fd8 DK |
25 | # Program for testing ParseDepends |
26 | PROGRAM = ParseDepends${BASENAME} | |
27 | SLIBS = -lapt-pkg | |
28 | SOURCE = parsedepends_test.cc | |
29 | include $(PROGRAM_H) | |
e29a6bb1 DK |
30 | |
31 | # Program for testing GetListOfFilesInDir | |
32 | PROGRAM = GetListOfFilesInDir${BASENAME} | |
33 | SLIBS = -lapt-pkg | |
34 | SOURCE = getlistoffilesindir_test.cc | |
35 | include $(PROGRAM_H) | |
2bb25574 | 36 | |
ae2be086 DH |
37 | # Program for testing CommandLine reconstruction |
38 | PROGRAM = Commandline${BASENAME} | |
39 | SLIBS = -lapt-pkg | |
40 | SOURCE = commandline_test.cc | |
41 | include $(PROGRAM_H) | |
42 | ||
2bb25574 | 43 | # Program for testing CommandLine reconstruction |
c4ba7c44 | 44 | PROGRAM = CommandlineAsString${BASENAME} |
2bb25574 DK |
45 | SLIBS = -lapt-pkg |
46 | SOURCE = commandlineasstring_test.cc | |
47 | include $(PROGRAM_H) | |
ea5624c3 DK |
48 | |
49 | # Program for testing debians version comparing | |
c4ba7c44 | 50 | PROGRAM = CompareVersion${BASENAME} |
ea5624c3 DK |
51 | SLIBS = -lapt-pkg |
52 | SOURCE = compareversion_test.cc | |
53 | include $(PROGRAM_H) | |
c4ba7c44 DK |
54 | |
55 | # test the GlobalError stack class | |
56 | PROGRAM = GlobalError${BASENAME} | |
57 | SLIBS = -lapt-pkg | |
58 | SOURCE = globalerror_test.cc | |
59 | include $(PROGRAM_H) | |
67dc3830 DK |
60 | |
61 | # test the different Hashsum classes | |
62 | PROGRAM = HashSums${BASENAME} | |
63 | SLIBS = -lapt-pkg | |
64 | SOURCE = hashsums_test.cc | |
65 | include $(PROGRAM_H) | |
0b7d641c | 66 | |
a513ace2 MV |
67 | # test the strutils stuff |
68 | PROGRAM = StrUtil${BASENAME} | |
69 | SLIBS = -lapt-pkg | |
70 | SOURCE = strutil_test.cc | |
71 | include $(PROGRAM_H) | |
bf5438c1 DK |
72 | |
73 | # test the URI parsing stuff | |
74 | PROGRAM = URI${BASENAME} | |
75 | SLIBS = -lapt-pkg | |
76 | SOURCE = uri_test.cc | |
77 | include $(PROGRAM_H) | |
213b8805 DK |
78 | |
79 | # test the Configuration class | |
80 | PROGRAM = Configuration${BASENAME} | |
81 | SLIBS = -lapt-pkg | |
82 | SOURCE = configuration_test.cc | |
83 | include $(PROGRAM_H) | |
2c405a44 DK |
84 | |
85 | # test cdroms core FindPackages | |
86 | PROGRAM = CdromFindPackages${BASENAME} | |
87 | SLIBS = -lapt-pkg | |
88 | SOURCE = cdromfindpackages_test.cc | |
89 | include $(PROGRAM_H) | |
d29a5330 | 90 | |
8628c2f7 DK |
91 | # test cdroms index reduction for source.list |
92 | PROGRAM = CdromReduceSourceList${BASENAME} | |
93 | SLIBS = -lapt-pkg | |
94 | SOURCE = cdromreducesourcelist_test.cc | |
95 | include $(PROGRAM_H) | |
96 | ||
12844170 DK |
97 | # test cdroms FindMountPointForDevice for udev autodetection |
98 | PROGRAM = CdromFindMountPointForDevice${BASENAME} | |
99 | SLIBS = -lapt-pkg | |
100 | SOURCE = cdromfindmountpointfordevice_test.cc | |
101 | include $(PROGRAM_H) | |
102 | ||
c8b860fb | 103 | # test IndexCopy::ConvertToSourceList |
d29a5330 DK |
104 | PROGRAM = IndexCopyToSourceList${BASENAME} |
105 | SLIBS = -lapt-pkg | |
106 | SOURCE = indexcopytosourcelist_test.cc | |
488011fa MV |
107 | |
108 | # test fileutls | |
109 | PROGRAM = FileUtl${BASENAME} | |
110 | SLIBS = -lapt-pkg | |
111 | SOURCE = fileutl_test.cc | |
d29a5330 | 112 | include $(PROGRAM_H) |
c8b860fb MV |
113 | |
114 | # test tagfile | |
115 | PROGRAM = PkgTagFile${BASENAME} | |
116 | SLIBS = -lapt-pkg | |
117 | SOURCE = tagfile_test.cc | |
118 | include $(PROGRAM_H) | |
119 | ||
caeb19b7 MV |
120 | # test sourcelist |
121 | PROGRAM = SourceList${BASENAME} | |
122 | SLIBS = -lapt-pkg | |
123 | SOURCE = sourcelist_test.cc | |
124 | include $(PROGRAM_H) | |
125 | ||
fa211e2d MV |
126 | # test install-progress |
127 | PROGRAM = InstallProgress${BASENAME} | |
128 | SLIBS = -lapt-pkg | |
129 | SOURCE = install_progress_test.cc | |
130 | include $(PROGRAM_H) | |
131 |