]>
Commit | Line | Data |
---|---|---|
45df0ad2 DK |
1 | # -*- make -*- |
2 | BASE=../.. | |
3 | SUBDIR=test/libapt | |
4 | BASENAME=_libapt_test | |
5 | ||
6 | # Bring in the default rules | |
7 | include ../../buildlib/defaults.mak | |
8 | ||
92d5a40d DK |
9 | .PHONY: test |
10 | test: | |
11 | ./run-tests | |
12 | ||
45df0ad2 DK |
13 | # Program for testing getLanguageCode |
14 | PROGRAM = getLanguages${BASENAME} | |
15 | SLIBS = -lapt-pkg | |
16 | SOURCE = getlanguages_test.cc | |
17 | include $(PROGRAM_H) | |
41c81fd8 | 18 | |
3152f4aa DK |
19 | PROGRAM = getArchitectures${BASENAME} |
20 | SLIBS = -lapt-pkg | |
21 | SOURCE = getarchitectures_test.cc | |
22 | include $(PROGRAM_H) | |
23 | ||
41c81fd8 DK |
24 | # Program for testing ParseDepends |
25 | PROGRAM = ParseDepends${BASENAME} | |
26 | SLIBS = -lapt-pkg | |
27 | SOURCE = parsedepends_test.cc | |
28 | include $(PROGRAM_H) | |
e29a6bb1 DK |
29 | |
30 | # Program for testing GetListOfFilesInDir | |
31 | PROGRAM = GetListOfFilesInDir${BASENAME} | |
32 | SLIBS = -lapt-pkg | |
33 | SOURCE = getlistoffilesindir_test.cc | |
34 | include $(PROGRAM_H) | |
2bb25574 | 35 | |
ae2be086 DH |
36 | # Program for testing CommandLine reconstruction |
37 | PROGRAM = Commandline${BASENAME} | |
38 | SLIBS = -lapt-pkg | |
39 | SOURCE = commandline_test.cc | |
40 | include $(PROGRAM_H) | |
41 | ||
2bb25574 | 42 | # Program for testing CommandLine reconstruction |
c4ba7c44 | 43 | PROGRAM = CommandlineAsString${BASENAME} |
2bb25574 DK |
44 | SLIBS = -lapt-pkg |
45 | SOURCE = commandlineasstring_test.cc | |
46 | include $(PROGRAM_H) | |
ea5624c3 DK |
47 | |
48 | # Program for testing debians version comparing | |
c4ba7c44 | 49 | PROGRAM = CompareVersion${BASENAME} |
ea5624c3 DK |
50 | SLIBS = -lapt-pkg |
51 | SOURCE = compareversion_test.cc | |
52 | include $(PROGRAM_H) | |
c4ba7c44 DK |
53 | |
54 | # test the GlobalError stack class | |
55 | PROGRAM = GlobalError${BASENAME} | |
56 | SLIBS = -lapt-pkg | |
57 | SOURCE = globalerror_test.cc | |
58 | include $(PROGRAM_H) | |
67dc3830 DK |
59 | |
60 | # test the different Hashsum classes | |
61 | PROGRAM = HashSums${BASENAME} | |
62 | SLIBS = -lapt-pkg | |
63 | SOURCE = hashsums_test.cc | |
64 | include $(PROGRAM_H) | |
0b7d641c | 65 | |
a513ace2 MV |
66 | # test the strutils stuff |
67 | PROGRAM = StrUtil${BASENAME} | |
68 | SLIBS = -lapt-pkg | |
69 | SOURCE = strutil_test.cc | |
70 | include $(PROGRAM_H) | |
bf5438c1 DK |
71 | |
72 | # test the URI parsing stuff | |
73 | PROGRAM = URI${BASENAME} | |
74 | SLIBS = -lapt-pkg | |
75 | SOURCE = uri_test.cc | |
76 | include $(PROGRAM_H) | |
213b8805 DK |
77 | |
78 | # test the Configuration class | |
79 | PROGRAM = Configuration${BASENAME} | |
80 | SLIBS = -lapt-pkg | |
81 | SOURCE = configuration_test.cc | |
82 | include $(PROGRAM_H) | |
2c405a44 DK |
83 | |
84 | # test cdroms core FindPackages | |
85 | PROGRAM = CdromFindPackages${BASENAME} | |
86 | SLIBS = -lapt-pkg | |
87 | SOURCE = cdromfindpackages_test.cc | |
88 | include $(PROGRAM_H) | |
d29a5330 | 89 | |
8628c2f7 DK |
90 | # test cdroms index reduction for source.list |
91 | PROGRAM = CdromReduceSourceList${BASENAME} | |
92 | SLIBS = -lapt-pkg | |
93 | SOURCE = cdromreducesourcelist_test.cc | |
94 | include $(PROGRAM_H) | |
95 | ||
d29a5330 DK |
96 | # text IndexCopy::ConvertToSourceList |
97 | PROGRAM = IndexCopyToSourceList${BASENAME} | |
98 | SLIBS = -lapt-pkg | |
99 | SOURCE = indexcopytosourcelist_test.cc | |
100 | include $(PROGRAM_H) |