makefile 2.4 KB

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