]>
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 DK |
35 | |
36 | # Program for testing CommandLine reconstruction | |
c4ba7c44 | 37 | PROGRAM = CommandlineAsString${BASENAME} |
2bb25574 DK |
38 | SLIBS = -lapt-pkg |
39 | SOURCE = commandlineasstring_test.cc | |
40 | include $(PROGRAM_H) | |
ea5624c3 DK |
41 | |
42 | # Program for testing debians version comparing | |
c4ba7c44 | 43 | PROGRAM = CompareVersion${BASENAME} |
ea5624c3 DK |
44 | SLIBS = -lapt-pkg |
45 | SOURCE = compareversion_test.cc | |
46 | include $(PROGRAM_H) | |
c4ba7c44 DK |
47 | |
48 | # test the GlobalError stack class | |
49 | PROGRAM = GlobalError${BASENAME} | |
50 | SLIBS = -lapt-pkg | |
51 | SOURCE = globalerror_test.cc | |
52 | include $(PROGRAM_H) | |
a513ace2 MV |
53 | |
54 | # test the strutils stuff | |
55 | PROGRAM = StrUtil${BASENAME} | |
56 | SLIBS = -lapt-pkg | |
57 | SOURCE = strutil_test.cc | |
58 | include $(PROGRAM_H) | |
bf5438c1 DK |
59 | |
60 | # test the URI parsing stuff | |
61 | PROGRAM = URI${BASENAME} | |
62 | SLIBS = -lapt-pkg | |
63 | SOURCE = uri_test.cc | |
64 | include $(PROGRAM_H) | |
213b8805 DK |
65 | |
66 | # test the Configuration class | |
67 | PROGRAM = Configuration${BASENAME} | |
68 | SLIBS = -lapt-pkg | |
69 | SOURCE = configuration_test.cc | |
70 | include $(PROGRAM_H) |