Jamfile.v2 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071
  1. # Copyright (c) 2007, 2008 Joseph Gauterin
  2. #
  3. # Distributed under the Boost Software License, Version 1.0.
  4. # (See accompanying file LICENSE_1_0.txt or copy at
  5. # http://www.boost.org/LICENSE_1_0.txt)
  6. # bring in rules for testing
  7. import testing ;
  8. local compile_tests =
  9. root_header_1.cpp
  10. root_header_2.cpp
  11. lib_header_1.cpp
  12. lib_header_2.cpp
  13. mixed_headers_1.cpp
  14. mixed_headers_2.cpp
  15. ;
  16. local compile_fail_tests =
  17. const_wrapper_fail.cpp ;
  18. local run_tests =
  19. primitive.cpp
  20. specialized_in_boost.cpp
  21. specialized_in_global.cpp
  22. specialized_in_other.cpp
  23. specialized_in_std.cpp
  24. specialized_in_boost_and_other.cpp
  25. std_bitset.cpp
  26. std_dateorder.cpp
  27. std_string.cpp
  28. std_typeinfo_ptr.cpp
  29. std_vector_of_boost.cpp
  30. std_vector_of_global.cpp
  31. std_vector_of_other.cpp
  32. no_ambiguity_in_boost.cpp
  33. array_of_array_of_class.cpp
  34. array_of_array_of_int.cpp
  35. array_of_class.cpp
  36. array_of_int.cpp
  37. array_of_template.cpp
  38. ;
  39. rule test_all
  40. {
  41. local all_rules ;
  42. local file ;
  43. for file in $(compile_tests)
  44. {
  45. local test_name = [ MATCH "([^.]*).cpp$" : $(file) ] ;
  46. all_rules += [ compile $(file) : : "swap-$(test_name)" ] ;
  47. }
  48. for file in $(compile_fail_tests)
  49. {
  50. local test_name = [ MATCH "([^.]*).cpp$" : $(file) ] ;
  51. all_rules += [ compile-fail $(file) : : "swap-$(test_name)" ] ;
  52. }
  53. for file in $(run_tests)
  54. {
  55. local test_name = [ MATCH "([^.]*).cpp$" : $(file) ] ;
  56. all_rules += [ run $(file) : : : : "swap-$(test_name)" ] ;
  57. }
  58. #ECHO All rules: $(all_rules) ;
  59. return $(all_rules) ;
  60. }
  61. test-suite core/swap : [ test_all r ] ;