test.py 1.1 KB

12345678910111213141516171819202122232425262728293031323334
  1. import sys
  2. sys.path.append( '..' )
  3. import os
  4. import boost_wide_report
  5. import common
  6. import utils
  7. import shutil
  8. import time
  9. tag = "CVS-HEAD"
  10. if os.path.exists( "results/incoming/CVS-HEAD/processed/merged" ):
  11. shutil.rmtree( "results/incoming/CVS-HEAD/processed/merged" )
  12. boost_wide_report.ftp_task = lambda ftp_site, site_path, incoming_dir: 1
  13. boost_wide_report.unzip_archives_task = lambda incoming_dir, processed_dir, unzip: 1
  14. boost_wide_report.execute_tasks(
  15. tag = tag
  16. , user = None
  17. , run_date = common.format_timestamp( time.gmtime() )
  18. , comment_file = os.path.abspath( "comment.html" )
  19. , results_dir = os.path.abspath( "results" )
  20. , output_dir = os.path.abspath( "output" )
  21. , reports = [ "i", "x", "ds", "dd", "dsr", "ddr", "us", "ud", "usr", "udr" ]
  22. , warnings = [ 'Warning text 1', 'Warning text 2' ]
  23. , extended_test_results = os.path.abspath( "output/extended_test_results.xml" )
  24. , dont_collect_logs = 1
  25. , expected_results_file = os.path.abspath( "expected_results.xml" )
  26. , failures_markup_file = os.path.abspath( "explicit-failures-markup.xml" )
  27. )
粤ICP备19079148号