makefile 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109
  1. # -*- make -*-
  2. BASE=../..
  3. SUBDIR=test/libapt
  4. BASENAME=_libapt_test
  5. APT_DOMAIN=none
  6. # Bring in the default rules
  7. include ../../buildlib/defaults.mak
  8. .PHONY: test
  9. test:
  10. ./run-tests
  11. # Program for testing getLanguageCode
  12. PROGRAM = getLanguages${BASENAME}
  13. SLIBS = -lapt-pkg
  14. SOURCE = getlanguages_test.cc
  15. include $(PROGRAM_H)
  16. PROGRAM = getArchitectures${BASENAME}
  17. SLIBS = -lapt-pkg
  18. SOURCE = getarchitectures_test.cc
  19. include $(PROGRAM_H)
  20. # Program for testing ParseDepends
  21. PROGRAM = ParseDepends${BASENAME}
  22. SLIBS = -lapt-pkg
  23. SOURCE = parsedepends_test.cc
  24. include $(PROGRAM_H)
  25. # Program for testing GetListOfFilesInDir
  26. PROGRAM = GetListOfFilesInDir${BASENAME}
  27. SLIBS = -lapt-pkg
  28. SOURCE = getlistoffilesindir_test.cc
  29. include $(PROGRAM_H)
  30. # Program for testing CommandLine reconstruction
  31. PROGRAM = Commandline${BASENAME}
  32. SLIBS = -lapt-pkg
  33. SOURCE = commandline_test.cc
  34. include $(PROGRAM_H)
  35. # Program for testing CommandLine reconstruction
  36. PROGRAM = CommandlineAsString${BASENAME}
  37. SLIBS = -lapt-pkg
  38. SOURCE = commandlineasstring_test.cc
  39. include $(PROGRAM_H)
  40. # Program for testing debians version comparing
  41. PROGRAM = CompareVersion${BASENAME}
  42. SLIBS = -lapt-pkg
  43. SOURCE = compareversion_test.cc
  44. include $(PROGRAM_H)
  45. # test the GlobalError stack class
  46. PROGRAM = GlobalError${BASENAME}
  47. SLIBS = -lapt-pkg
  48. SOURCE = globalerror_test.cc
  49. include $(PROGRAM_H)
  50. # test the different Hashsum classes
  51. PROGRAM = HashSums${BASENAME}
  52. SLIBS = -lapt-pkg
  53. SOURCE = hashsums_test.cc
  54. include $(PROGRAM_H)
  55. # test the strutils stuff
  56. PROGRAM = StrUtil${BASENAME}
  57. SLIBS = -lapt-pkg
  58. SOURCE = strutil_test.cc
  59. include $(PROGRAM_H)
  60. # test the URI parsing stuff
  61. PROGRAM = URI${BASENAME}
  62. SLIBS = -lapt-pkg
  63. SOURCE = uri_test.cc
  64. include $(PROGRAM_H)
  65. # test the Configuration class
  66. PROGRAM = Configuration${BASENAME}
  67. SLIBS = -lapt-pkg
  68. SOURCE = configuration_test.cc
  69. include $(PROGRAM_H)
  70. # test cdroms core FindPackages
  71. PROGRAM = CdromFindPackages${BASENAME}
  72. SLIBS = -lapt-pkg
  73. SOURCE = cdromfindpackages_test.cc
  74. include $(PROGRAM_H)
  75. # test cdroms index reduction for source.list
  76. PROGRAM = CdromReduceSourceList${BASENAME}
  77. SLIBS = -lapt-pkg
  78. SOURCE = cdromreducesourcelist_test.cc
  79. include $(PROGRAM_H)
  80. # test IndexCopy::ConvertToSourceList
  81. PROGRAM = IndexCopyToSourceList${BASENAME}
  82. SLIBS = -lapt-pkg
  83. SOURCE = indexcopytosourcelist_test.cc
  84. include $(PROGRAM_H)
  85. # test tagfile
  86. PROGRAM = PkgTagFile${BASENAME}
  87. SLIBS = -lapt-pkg
  88. SOURCE = tagfile_test.cc
  89. include $(PROGRAM_H)