compiler_status.cpp 22 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552553554555556557558559560561562563564565566567568569570571572573574575576577578579580581582583584585586587588589590591592593594595596597598599600601602603604605606607608609610611612613614615616617618619620621622623624625626627628629630631632633634635636637638639640641642643644645646647648649650651652653654655656657658659660661662663664665666667668669670671672673674675676677678679680
  1. // Generate Compiler Status HTML from jam regression test output -----------//
  2. // (C) Copyright Beman Dawes 2002. Permission to copy,
  3. // use, modify, sell and distribute this software is granted provided this
  4. // copyright notice appears in all copies. This software is provided "as is"
  5. // without express or implied warranty, and with no claim as to its
  6. // suitability for any purpose.
  7. /*******************************************************************************
  8. This program was designed to work unchanged on all platforms and
  9. configurations. All output which is platform or configuration dependent
  10. is obtained from external sources such as the .xml file from
  11. process_jam_log execution, the tools/build/xxx-tools.jam files, or the
  12. output of the config_info tests.
  13. Please avoid adding platform or configuration dependencies during
  14. program maintenance.
  15. *******************************************************************************/
  16. #include "boost/filesystem/operations.hpp"
  17. #include "boost/filesystem/fstream.hpp"
  18. #include "detail/tiny_xml.hpp"
  19. namespace fs = boost::filesystem;
  20. namespace xml = boost::tiny_xml;
  21. #include <cstdlib> // for abort
  22. #include <string>
  23. #include <vector>
  24. #include <set>
  25. #include <algorithm>
  26. #include <iostream>
  27. #include <fstream>
  28. #include <ctime>
  29. #include <stdexcept>
  30. using std::string;
  31. const string pass_msg( "Pass" );
  32. const string warn_msg( "<font color=\"#FF9900\"><i>Warn</i></font>" );
  33. const string fail_msg( "<font color=\"#FF0000\">"
  34. "<big><i>Fail</i></big>"
  35. "</font>" );
  36. const string missing_residue_msg( "<i>Missing</i>" );
  37. const std::size_t max_compile_msg_size = 10000;
  38. namespace
  39. {
  40. fs::path boost_root; // boost-root complete path
  41. fs::path locate_root; // locate-root (AKA ALL_LOCATE_TARGET) complete path
  42. bool ignore_pass;
  43. bool no_warn;
  44. bool no_links;
  45. fs::directory_iterator end_itr;
  46. // It's immportant for reliability that we find the same compilers for each
  47. // test, and that they match the column header. So save the names at the
  48. // time column headings are generated.
  49. std::vector<string> toolsets;
  50. fs::ifstream jamfile;
  51. fs::ofstream report;
  52. fs::ofstream links_file;
  53. string links_name;
  54. string specific_compiler; // if running on one toolset only
  55. const string empty_string;
  56. // relative path between two paths -----------------------------------------//
  57. void relative_path( const fs::path & from, const fs::path & to,
  58. fs::path & target )
  59. {
  60. if ( from.string().size() <= to.string().size() ) return;
  61. target /= "..";
  62. relative_path( from.branch_path(), to, target );
  63. return;
  64. }
  65. // extract test name from target directory string --------------------------//
  66. string extract_test_name( const string & s )
  67. {
  68. string t( s );
  69. string::size_type pos = t.find( "/bin/" );
  70. if ( pos != string::npos ) pos += 5;
  71. else return "";
  72. return t.substr( pos, t.find( ".", pos ) - pos );
  73. }
  74. // find_file ---------------------------------------------------------------//
  75. // given a directory to recursively search
  76. bool find_file( const fs::path & dir_path, const string & name,
  77. fs::path & path_found, const string & ignore_dir_named="" )
  78. {
  79. if ( !fs::exists( dir_path ) ) return false;
  80. for ( fs::directory_iterator itr( dir_path ); itr != end_itr; ++itr )
  81. if ( fs::is_directory( *itr )
  82. && itr->leaf() != ignore_dir_named )
  83. {
  84. if ( find_file( *itr, name, path_found ) ) return true;
  85. }
  86. else if ( itr->leaf() == name )
  87. {
  88. path_found = *itr;
  89. return true;
  90. }
  91. return false;
  92. }
  93. // platform_desc -----------------------------------------------------------//
  94. // from locate_root/status/bin/config_info.test/xxx/.../config_info.output
  95. string platform_desc()
  96. {
  97. string result;
  98. fs::path dot_output_path;
  99. // the gcc config_info "Detected Platform" sometimes reports "cygwin", so
  100. // prefer any of the other compilers.
  101. if ( find_file( locate_root / "status/bin/config_info.test",
  102. "config_info.output", dot_output_path, "gcc" )
  103. || find_file( locate_root / "status/bin/config_info.test",
  104. "config_info.output", dot_output_path ) )
  105. {
  106. fs::ifstream file( dot_output_path );
  107. if ( file )
  108. {
  109. while( std::getline( file, result ) )
  110. {
  111. if ( result.find( "Detected Platform: " ) == 0 )
  112. {
  113. result.erase( 0, 19 );
  114. return result;
  115. }
  116. }
  117. result.clear();
  118. }
  119. }
  120. return result;
  121. }
  122. // version_desc ------------------------------------------------------------//
  123. // from locate-root/status/bin/config_info.test/xxx/.../config_info.output
  124. string version_desc( const string & compiler_name )
  125. {
  126. string result;
  127. fs::path dot_output_path;
  128. if ( find_file( locate_root / "status/bin/config_info.test"
  129. / compiler_name, "config_info.output", dot_output_path ) )
  130. {
  131. fs::ifstream file( dot_output_path );
  132. if ( file )
  133. {
  134. if( std::getline( file, result ) )
  135. {
  136. string::size_type pos = result.find( "version " );
  137. if ( pos != string::npos )
  138. {
  139. result.erase( 0, pos+8 );
  140. }
  141. else result.clear();
  142. }
  143. }
  144. }
  145. return result;
  146. }
  147. // compiler_desc -----------------------------------------------------------//
  148. // from boost-root/tools/build/xxx-tools.jam
  149. string compiler_desc( const string & compiler_name )
  150. {
  151. string result;
  152. fs::path tools_path( boost_root / "tools/build" / (compiler_name
  153. + "-tools.jam") );
  154. fs::ifstream file( tools_path );
  155. if ( file )
  156. {
  157. while( std::getline( file, result ) )
  158. {
  159. if ( result.substr( 0, 3 ) == "#//" )
  160. {
  161. result.erase( 0, 3 );
  162. return result;
  163. }
  164. }
  165. result.clear();
  166. }
  167. return result;
  168. }
  169. // target_directory --------------------------------------------------------//
  170. // this amounts to a request to find a unique leaf directory
  171. fs::path target_directory( const fs::path & root )
  172. {
  173. if ( !fs::exists( root ) ) return fs::path("no-such-path");
  174. fs::path child;
  175. for ( fs::directory_iterator itr( root ); itr != end_itr; ++itr )
  176. {
  177. if ( fs::is_directory( *itr ) )
  178. {
  179. if ( child.empty() ) child = *itr;
  180. else
  181. {
  182. std::cout << "Warning: only first of two target possibilities will be reported for: \n "
  183. << root.string() << ": " << child.leaf()
  184. << " and " << (*itr).leaf() << "\n";
  185. }
  186. }
  187. }
  188. if ( child.empty() ) return root; // this dir has no children
  189. return target_directory( child );
  190. }
  191. // element_content ---------------------------------------------------------//
  192. const string & element_content(
  193. const xml::element_ptr & root, const string & name )
  194. {
  195. static string empty_string;
  196. xml::element_list::iterator itr;
  197. for ( itr = root->elements.begin();
  198. itr != root->elements.end() && (*itr)->name != name;
  199. ++itr ) {}
  200. return itr != root->elements.end() ? (*itr)->content : empty_string;
  201. }
  202. // find_attribute ----------------------------------------------------------//
  203. const string & attribute_value( const xml::element_ptr & element,
  204. const string & attribute_name )
  205. {
  206. static const string empty_string;
  207. xml::attribute_list::iterator atr;
  208. for ( atr = element->attributes.begin();
  209. atr != element->attributes.end() && atr->name != attribute_name;
  210. ++atr ) {}
  211. return atr == element->attributes.end() ? empty_string : atr->value;
  212. }
  213. // generate_report ---------------------------------------------------------//
  214. // return 0 if nothing generated, 1 otherwise, except 2 if compiler msgs
  215. int generate_report( const xml::element_ptr & db,
  216. const string & test_name,
  217. const string & toolset,
  218. bool pass,
  219. bool always_show_run_output = false )
  220. {
  221. // compile msgs sometimes modified, so make a local copy
  222. string compile( (pass && no_warn)
  223. ? empty_string : element_content( db, "compile" ) );
  224. const string & link( pass ? empty_string : element_content( db, "link" ) );
  225. const string & run( (pass && !always_show_run_output)
  226. ? empty_string : element_content( db, "run" ) );
  227. string lib( pass ? empty_string : element_content( db, "lib" ) );
  228. // some compilers output the filename even if there are no errors or
  229. // warnings; detect this if one line of output and it contains no space.
  230. string::size_type pos = compile.find( '\n', 1 );
  231. if ( pos != string::npos && compile.size()-pos <= 2
  232. && compile.find( ' ' ) == string::npos ) compile.clear();
  233. if ( lib.empty() && compile.empty() && link.empty() && run.empty() )
  234. return 0;
  235. int result = 1; // some kind of msg for sure
  236. // limit compile message length
  237. if ( compile.size() > max_compile_msg_size )
  238. {
  239. compile.erase( max_compile_msg_size );
  240. compile += "...\n (remainder deleted because of excessive size)\n";
  241. }
  242. links_file << "<h2><a name=\""
  243. << test_name << " " << toolset << "\">"
  244. << test_name << " / " << toolset << "</a></h2>\n";
  245. if ( !compile.empty() )
  246. {
  247. ++result;
  248. links_file << "<h3>Compiler output:</h3><pre>"
  249. << compile << "</pre>\n";
  250. }
  251. if ( !link.empty() )
  252. links_file << "<h3>Linker output:</h3><pre>" << link << "</pre>\n";
  253. if ( !run.empty() )
  254. links_file << "<h3>Run output:</h3><pre>" << run << "</pre>\n";
  255. static std::set< string > failed_lib_target_dirs;
  256. if ( !lib.empty() )
  257. {
  258. if ( lib[0] == '\n' ) lib.erase( 0, 1 );
  259. string lib_test_name( extract_test_name( lib ) );
  260. links_file << "<h3>Library build failure: </h3>\n"
  261. "See <a href=\"#" << lib_test_name << " " << toolset << "\">"
  262. << lib_test_name << " / " << toolset << "</a>";
  263. if ( failed_lib_target_dirs.find( lib ) == failed_lib_target_dirs.end() )
  264. {
  265. failed_lib_target_dirs.insert( lib );
  266. fs::path pth( locate_root / lib / "test_log.xml" );
  267. fs::ifstream file( pth );
  268. if ( file )
  269. {
  270. xml::element_ptr db = xml::parse( file, pth.string() );
  271. generate_report( db, lib_test_name, toolset, false );
  272. }
  273. else
  274. {
  275. links_file << "<h2><a name=\""
  276. << lib_test_name << " " << toolset << "\">"
  277. << lib_test_name << " / " << toolset << "</a></h2>\n"
  278. "test_log.xml not found\n";
  279. }
  280. }
  281. }
  282. return result;
  283. }
  284. // do_cell -----------------------------------------------------------------//
  285. bool do_cell( const fs::path & test_dir,
  286. const string & test_name,
  287. const string & toolset,
  288. string & target,
  289. bool always_show_run_output )
  290. // return true if any results except pass_msg
  291. {
  292. fs::path target_dir( target_directory( test_dir / toolset ) );
  293. bool pass = false;
  294. // missing jam residue
  295. if ( fs::exists( target_dir / (test_name + ".test") ) ) pass = true;
  296. else if ( !fs::exists( target_dir / "test_log.xml" ) )
  297. {
  298. target += "<td>" + missing_residue_msg + "</td>";
  299. return true;
  300. }
  301. int anything_generated = 0;
  302. if ( !no_links )
  303. {
  304. fs::path pth( target_dir / "test_log.xml" );
  305. fs::ifstream file( pth );
  306. if ( !file ) // missing jam_log.xml
  307. {
  308. std::cerr << "Missing jam_log.xml in target:\n "
  309. << target_dir.string() << "\n";
  310. target += "<td>";
  311. target += pass ? pass_msg : fail_msg;
  312. target += "</td>";
  313. return pass;
  314. }
  315. xml::element_ptr db = xml::parse( file, pth.string() );
  316. // generate bookmarked report of results, and link to it
  317. anything_generated
  318. = generate_report( db, test_name, toolset, pass, always_show_run_output );
  319. }
  320. target += "<td>";
  321. if ( anything_generated != 0 )
  322. {
  323. target += "<a href=\"";
  324. target += links_name;
  325. target += "#";
  326. target += test_name;
  327. target += " ";
  328. target += toolset;
  329. target += "\">";
  330. target += pass ? (anything_generated < 2 ? pass_msg : warn_msg) : fail_msg;
  331. target += "</a>";
  332. }
  333. else target += pass ? pass_msg : fail_msg;
  334. target += "</td>";
  335. return (anything_generated != 0) || !pass;
  336. }
  337. // do_row ------------------------------------------------------------------//
  338. void do_row(
  339. const fs::path & test_dir, // locate_root / "status/bin/any_test.test"
  340. const string & test_name, // "any_test"
  341. string & target )
  342. {
  343. // get library name, test-type, test-program path, etc., from the .xml file
  344. string lib_name;
  345. string test_path( test_name ); // test_name is default if missing .test
  346. string test_type( "unknown" );
  347. bool always_show_run_output( false );
  348. fs::path xml_file_path;
  349. if ( find_file( test_dir, "test_log.xml", xml_file_path ) )
  350. {
  351. fs::ifstream file( xml_file_path );
  352. if ( file )
  353. {
  354. xml::element_ptr db = xml::parse( file, xml_file_path.string() );
  355. test_path = attribute_value( db, "test-program" );
  356. lib_name = attribute_value( db, "library" );
  357. test_type = attribute_value( db, "test-type" );
  358. always_show_run_output
  359. = attribute_value( db, "show-run-output" ) == "true";
  360. }
  361. }
  362. // path to docs
  363. fs::path rel;
  364. relative_path( fs::initial_path(), boost_root, rel );
  365. string lib_docs_path( rel.string() + "/libs/" + lib_name );
  366. // generate the library name, test name, and test type table data
  367. string::size_type row_start_pos = target.size();
  368. target += "<tr><td><a href=\"" + lib_docs_path + "\">" + lib_name + "</a></td>";
  369. target += "<td><a href=\"" + (rel / test_path).string() + "\">" + test_name + "</a></td>";
  370. target += "<td>" + test_type + "</td>";
  371. bool no_warn_save = no_warn;
  372. if ( test_type.find( "fail" ) != string::npos ) no_warn = true;
  373. // for each compiler, generate <td>...</td> html
  374. bool anything_to_report = false;
  375. for ( std::vector<string>::const_iterator itr=toolsets.begin();
  376. itr != toolsets.end(); ++itr )
  377. {
  378. anything_to_report |= do_cell( test_dir, test_name, *itr, target,
  379. always_show_run_output );
  380. }
  381. target += "</tr>";
  382. if ( ignore_pass && !anything_to_report ) target.erase( row_start_pos );
  383. no_warn = no_warn_save;
  384. }
  385. // do_rows_for_sub_tree ----------------------------------------------------//
  386. void do_rows_for_sub_tree(
  387. const fs::path & bin_dir, std::vector<string> & results )
  388. {
  389. for ( fs::directory_iterator itr( bin_dir ); itr != end_itr; ++itr )
  390. {
  391. if ( fs::is_directory( *itr )
  392. && itr->string().find( ".test" ) == (itr->string().size()-5) )
  393. {
  394. results.push_back( std::string() );
  395. do_row( *itr,
  396. itr->leaf().substr( 0, itr->leaf().size()-5 ),
  397. results[results.size()-1] );
  398. }
  399. }
  400. }
  401. // do_table_body -----------------------------------------------------------//
  402. void do_table_body( const fs::path & bin_dir )
  403. {
  404. // rows are held in a vector so they can be sorted, if desired.
  405. std::vector<string> results;
  406. // do primary bin directory
  407. do_rows_for_sub_tree( bin_dir, results );
  408. // do subinclude bin directories
  409. jamfile.clear();
  410. jamfile.seekg(0);
  411. string line;
  412. while( std::getline( jamfile, line ) )
  413. {
  414. string::size_type pos( line.find( "subinclude" ) );
  415. if ( pos != string::npos
  416. && line.find( '#' ) > pos )
  417. {
  418. pos = line.find_first_not_of( " \t", pos+10 );
  419. if ( pos == string::npos ) continue;
  420. string subinclude_bin_dir(
  421. line.substr( pos, line.find_first_of( " \t", pos )-pos ) );
  422. // std::cout << "subinclude: " << subinclude_bin_dir << '\n';
  423. fs::path subinclude_path( locate_root / subinclude_bin_dir / "/bin" );
  424. if ( fs::exists( subinclude_path ) )
  425. { do_rows_for_sub_tree( subinclude_path, results ); }
  426. }
  427. }
  428. std::sort( results.begin(), results.end() );
  429. for ( std::vector<string>::iterator v(results.begin());
  430. v != results.end(); ++v )
  431. { report << *v << "\n"; }
  432. }
  433. // do_table ----------------------------------------------------------------//
  434. void do_table()
  435. {
  436. string relative( fs::initial_path().string() );
  437. relative.erase( 0, boost_root.string().size()+1 );
  438. fs::path bin_path( locate_root / relative / "bin" );
  439. report << "<table border=\"1\" cellspacing=\"0\" cellpadding=\"5\">\n";
  440. // generate the column headings
  441. report << "<tr><td>Library</td><td>Test Name</td>\n"
  442. "<td><a href=\"compiler_status.html#test-type\">Test Type</a></td>\n";
  443. fs::directory_iterator itr( bin_path );
  444. while ( itr != end_itr && !fs::is_directory( *itr )
  445. && itr->string().find( ".test" ) != (itr->string().size()-5) )
  446. ++itr; // bypass chaff
  447. if ( itr != end_itr )
  448. {
  449. fs::directory_iterator compiler_itr( *itr );
  450. if ( specific_compiler.empty() )
  451. std::clog << "Using " << itr->string() << " to determine compilers\n";
  452. for (; compiler_itr != end_itr; ++compiler_itr )
  453. {
  454. if ( fs::is_directory( *compiler_itr ) // check just to be sure
  455. && compiler_itr->leaf() != "test" ) // avoid strange directory (Jamfile bug?)
  456. {
  457. if ( specific_compiler.size() != 0
  458. && specific_compiler != compiler_itr->leaf() ) continue;
  459. toolsets.push_back( compiler_itr->leaf() );
  460. string desc( compiler_desc( compiler_itr->leaf() ) );
  461. string vers( version_desc( compiler_itr->leaf() ) );
  462. report << "<td>"
  463. << (desc.size() ? desc : compiler_itr->leaf())
  464. << (vers.size() ? (string( "<br>" ) + vers ) : string( "" ))
  465. << "</td>\n";
  466. }
  467. }
  468. }
  469. report << "</tr>\n";
  470. // now the rest of the table body
  471. do_table_body( bin_path );
  472. report << "</table>\n";
  473. }
  474. } // unnamed namespace
  475. // main --------------------------------------------------------------------//
  476. #define BOOST_NO_CPP_MAIN_SUCCESS_MESSAGE
  477. #include <boost/test/included/prg_exec_monitor.hpp>
  478. int cpp_main( int argc, char * argv[] ) // note name!
  479. {
  480. while ( argc > 1 && *argv[1] == '-' )
  481. {
  482. if ( argc > 2 && std::strcmp( argv[1], "--compiler" ) == 0 )
  483. { specific_compiler = argv[2]; --argc; ++argv; }
  484. else if ( argc > 2 && std::strcmp( argv[1], "--locate-root" ) == 0 )
  485. { locate_root = fs::path( argv[2], fs::native ); --argc; ++argv; }
  486. else if ( std::strcmp( argv[1], "--ignore-pass" ) == 0 ) ignore_pass = true;
  487. else if ( std::strcmp( argv[1], "--no-warn" ) == 0 ) no_warn = true;
  488. else { std::cerr << "Unknown option: " << argv[1] << "\n"; argc = 1; }
  489. --argc;
  490. ++argv;
  491. }
  492. if ( argc != 3 && argc != 4 )
  493. {
  494. std::cerr <<
  495. "Usage: compiler_status [options...] boost-root status-file [links-file]\n"
  496. " boost-root is the path to the boost tree root directory.\n"
  497. " status-file and links-file are paths to the output files.\n"
  498. "Must be run from directory containing Jamfile\n"
  499. " options: --compiler name Run for named compiler only\n"
  500. " --ignore-pass Do not report tests which pass all compilers\n"
  501. " --no-warn Warnings not reported if test passes\n"
  502. " --locate-root path Path to ALL_LOCATE_TARGET for bjam;\n"
  503. " default boost-root.\n"
  504. "example: compiler_status --compiler gcc /boost-root cs.html cs-links.html\n";
  505. return 1;
  506. }
  507. boost_root = fs::path( argv[1], fs::native );
  508. if ( locate_root.empty() ) locate_root = boost_root;
  509. fs::path jamfile_path( fs::initial_path() / "Jamfile" );
  510. jamfile.open( jamfile_path );
  511. if ( !jamfile )
  512. {
  513. std::cerr << "Could not open Jamfile: " << jamfile_path.native_file_string() << std::endl;
  514. return 1;
  515. }
  516. report.open( fs::path( argv[2], fs::native ) );
  517. if ( !report )
  518. {
  519. std::cerr << "Could not open report output file: " << argv[2] << std::endl;
  520. return 1;
  521. }
  522. if ( argc == 4 )
  523. {
  524. fs::path links_path( argv[3], fs::native );
  525. links_name = links_path.leaf();
  526. links_file.open( links_path );
  527. if ( !links_file )
  528. {
  529. std::cerr << "Could not open links output file: " << argv[3] << std::endl;
  530. return 1;
  531. }
  532. }
  533. else no_links = true;
  534. char run_date[128];
  535. std::time_t tod;
  536. std::time( &tod );
  537. std::strftime( run_date, sizeof(run_date),
  538. "%X UTC, %A %d %B %Y", std::gmtime( &tod ) );
  539. report << "<html>\n"
  540. "<head>\n"
  541. "<title>Boost Compiler Status Automatic Test</title>\n"
  542. "</head>\n"
  543. "<body bgcolor=\"#ffffff\" text=\"#000000\">\n"
  544. "<table border=\"0\">\n"
  545. "<tr>\n"
  546. "<td><img border=\"0\" src=\"../c++boost.gif\" width=\"277\" "
  547. "height=\"86\"></td>\n"
  548. "<td>\n"
  549. "<h1>Compiler Status: " + platform_desc() + "</h1>\n"
  550. "<b>Run Date:</b> "
  551. << run_date
  552. << "\n</td>\n</table>\n<br>\n"
  553. ;
  554. if ( !no_links )
  555. {
  556. links_file
  557. << "<html>\n"
  558. "<head>\n"
  559. "<title>Boost Compiler Status Error Log</title>\n"
  560. "</head>\n"
  561. "<body bgcolor=\"#ffffff\" text=\"#000000\">\n"
  562. "<table border=\"0\">\n"
  563. "<tr>\n"
  564. "<td><img border=\"0\" src=\"../c++boost.gif\" width=\"277\" "
  565. "height=\"86\"></td>\n"
  566. "<td>\n"
  567. "<h1>Compiler Status: " + platform_desc() + "</h1>\n"
  568. "<b>Run Date:</b> "
  569. << run_date
  570. << "\n</td>\n</table>\n<br>\n"
  571. ;
  572. }
  573. do_table();
  574. report << "</body>\n"
  575. "</html>\n"
  576. ;
  577. if ( !no_links )
  578. {
  579. links_file
  580. << "</body>\n"
  581. "</html>\n"
  582. ;
  583. }
  584. return 0;
  585. }
粤ICP备19079148号