]>
Commit | Line | Data |
---|---|---|
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 | ||
9 | .PHONY: test | |
10 | test: | |
11 | ./run-tests | |
12 | ||
13 | # Program for testing getLanguageCode | |
14 | PROGRAM = getLanguages${BASENAME} | |
15 | SLIBS = -lapt-pkg | |
16 | SOURCE = getlanguages_test.cc | |
17 | include $(PROGRAM_H) | |
18 | ||
19 | PROGRAM = getArchitectures${BASENAME} | |
20 | SLIBS = -lapt-pkg | |
21 | SOURCE = getarchitectures_test.cc | |
22 | include $(PROGRAM_H) | |
23 | ||
24 | # Program for testing ParseDepends | |
25 | PROGRAM = ParseDepends${BASENAME} | |
26 | SLIBS = -lapt-pkg | |
27 | SOURCE = parsedepends_test.cc | |
28 | include $(PROGRAM_H) | |
29 | ||
30 | # Program for testing GetListOfFilesInDir | |
31 | PROGRAM = GetListOfFilesInDir${BASENAME} | |
32 | SLIBS = -lapt-pkg | |
33 | SOURCE = getlistoffilesindir_test.cc | |
34 | include $(PROGRAM_H) | |
35 | ||
36 | # Program for testing CommandLine reconstruction | |
37 | PROGRAM = Commandline${BASENAME} | |
38 | SLIBS = -lapt-pkg | |
39 | SOURCE = commandline_test.cc | |
40 | include $(PROGRAM_H) | |
41 | ||
42 | # Program for testing CommandLine reconstruction | |
43 | PROGRAM = CommandlineAsString${BASENAME} | |
44 | SLIBS = -lapt-pkg | |
45 | SOURCE = commandlineasstring_test.cc | |
46 | include $(PROGRAM_H) | |
47 | ||
48 | # Program for testing debians version comparing | |
49 | PROGRAM = CompareVersion${BASENAME} | |
50 | SLIBS = -lapt-pkg | |
51 | SOURCE = compareversion_test.cc | |
52 | include $(PROGRAM_H) | |
53 | ||
54 | # test the GlobalError stack class | |
55 | PROGRAM = GlobalError${BASENAME} | |
56 | SLIBS = -lapt-pkg | |
57 | SOURCE = globalerror_test.cc | |
58 | include $(PROGRAM_H) | |
59 | ||
60 | # test the different Hashsum classes | |
61 | PROGRAM = HashSums${BASENAME} | |
62 | SLIBS = -lapt-pkg | |
63 | SOURCE = hashsums_test.cc | |
64 | include $(PROGRAM_H) | |
65 | ||
66 | # test the strutils stuff | |
67 | PROGRAM = StrUtil${BASENAME} | |
68 | SLIBS = -lapt-pkg | |
69 | SOURCE = strutil_test.cc | |
70 | include $(PROGRAM_H) | |
71 | ||
72 | # test the URI parsing stuff | |
73 | PROGRAM = URI${BASENAME} | |
74 | SLIBS = -lapt-pkg | |
75 | SOURCE = uri_test.cc | |
76 | include $(PROGRAM_H) | |
77 | ||
78 | # test the Configuration class | |
79 | PROGRAM = Configuration${BASENAME} | |
80 | SLIBS = -lapt-pkg | |
81 | SOURCE = configuration_test.cc | |
82 | include $(PROGRAM_H) | |
83 | ||
84 | # test cdroms core FindPackages | |
85 | PROGRAM = CdromFindPackages${BASENAME} | |
86 | SLIBS = -lapt-pkg | |
87 | SOURCE = cdromfindpackages_test.cc | |
88 | include $(PROGRAM_H) | |
89 | ||
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 | ||
96 | # text IndexCopy::ConvertToSourceList | |
97 | PROGRAM = IndexCopyToSourceList${BASENAME} | |
98 | SLIBS = -lapt-pkg | |
99 | SOURCE = indexcopytosourcelist_test.cc | |
100 | include $(PROGRAM_H) |