You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 

132 lines
2.9 KiB

  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 cdroms FindMountPointForDevice for udev autodetection
  81. PROGRAM = CdromFindMountPointForDevice${BASENAME}
  82. SLIBS = -lapt-pkg
  83. SOURCE = cdromfindmountpointfordevice_test.cc
  84. include $(PROGRAM_H)
  85. # test IndexCopy::ConvertToSourceList
  86. PROGRAM = IndexCopyToSourceList${BASENAME}
  87. SLIBS = -lapt-pkg
  88. SOURCE = indexcopytosourcelist_test.cc
  89. # test fileutls
  90. PROGRAM = FileUtl${BASENAME}
  91. SLIBS = -lapt-pkg
  92. SOURCE = fileutl_test.cc
  93. include $(PROGRAM_H)
  94. # test tagfile
  95. PROGRAM = PkgTagFile${BASENAME}
  96. SLIBS = -lapt-pkg
  97. SOURCE = tagfile_test.cc
  98. include $(PROGRAM_H)
  99. # test sourcelist
  100. PROGRAM = SourceList${BASENAME}
  101. SLIBS = -lapt-pkg
  102. SOURCE = sourcelist_test.cc
  103. include $(PROGRAM_H)
  104. # test install-progress
  105. PROGRAM = InstallProgress${BASENAME}
  106. SLIBS = -lapt-pkg
  107. SOURCE = install_progress_test.cc
  108. include $(PROGRAM_H)