makefile 2.1 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192939495
  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. # text IndexCopy::ConvertToSourceList
  75. PROGRAM = IndexCopyToSourceList${BASENAME}
  76. SLIBS = -lapt-pkg
  77. SOURCE = indexcopytosourcelist_test.cc
  78. include $(PROGRAM_H)