compiler_status.cpp 21 KB

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