library_test_all.sh 2.3 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485
  1. if test $# -eq 0
  2. then
  3. echo "Usage: $0 <bjam arguments>"
  4. echo "Typical bjam arguments are:"
  5. echo " --toolset=msvc-7.1,gcc"
  6. echo " variant=debug,release,profile"
  7. echo " link=static,shared"
  8. echo " threading=single,multi"
  9. echo
  10. echo "note: make sure this script is run from boost root directory !!!"
  11. exit 1
  12. fi
  13. if ! test -e libs
  14. then
  15. echo No libs directory found. Run from boost root directory !!!
  16. exit 1
  17. fi
  18. #html header
  19. cat <<end >status/library_status_contents.html
  20. <!doctype HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
  21. <html>
  22. <!--
  23. (C) Copyright 2007 Robert Ramey - http://www.rrsd.com .
  24. Use, modification and distribution is subject to the Boost Software
  25. License, Version 1.0. (See accompanying file LICENSE_1_0.txt or copy at
  26. http://www.boost.org/LICENSE_1_0.txt)
  27. -->
  28. <head>
  29. <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
  30. <link rel="stylesheet" type="text/css" href="../boost.css">
  31. <title>Library Status Contents</title>
  32. <body>
  33. end
  34. cd >nul libs
  35. # runtests, create library pages, and body of summary page
  36. for lib_name in *
  37. do
  38. if test -d $lib_name
  39. then
  40. cd >nul $lib_name
  41. if test -e "test/Jamfile.v2"
  42. then
  43. cd >nul test
  44. echo $lib_name
  45. echo >>../../../status/library_status_contents.html "<a target=\"detail\" href=\"../libs/$lib_name/test/library_status.html\">$lib_name</a><br>"
  46. ../../../tools/regression/library_test $@
  47. cd >nul ..
  48. fi
  49. for sublib_name in *
  50. do
  51. if test -d $sublib_name
  52. then
  53. cd >nul $sublib_name
  54. if test -e "test/Jamfile.v2"
  55. then
  56. cd >nul test
  57. echo $lib_name/$sublib_name
  58. echo >>../../../../status/library_status_contents.html "<a target=\"detail\" href=\"../libs/$lib_name/$sublib_name/test/library_status.html\">$lib_name/$sublib_name</a><br>"
  59. ../../../../tools/regression/library_test $@
  60. cd >nul ..
  61. fi
  62. cd >nul ..
  63. fi
  64. done
  65. cd >nul ..
  66. fi
  67. done
  68. cd >nul ..
  69. #html trailer
  70. cat <<end >>status/library_status_contents.html
  71. </body>
  72. </html>
  73. end
粤ICP备19079148号