1 # Copyright (C) 2010 Red Hat, Inc. All rights reserved.
3 # This copyrighted material is made available to anyone wishing to use,
4 # modify, copy, or redistribute it subject to the terms and conditions
5 # of the GNU General Public License v.2.
7 # You should have received a copy of the GNU General Public License
8 # along with this program; if not, write to the Free Software Foundation,
9 # Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
11 # Reads the schedule files given on the command line. Runs them and
12 # generates the reports.
14 require 'schedule_file'
18 require 'report_templates'
20 include ReportTemplates
22 schedules = ARGV.map do |f|
24 Schedule.read(p.dirname, p)
30 # We need to make sure the lvm shared libs are in the LD_LIBRARY_PATH
31 ENV['LD_LIBRARY_PATH'] = `pwd`.strip + "/libdm:" + (ENV['LD_LIBRARY_PATH'] || '')
36 s.schedules.each do |t|
49 generate_report(:unit_test, binding)
51 # now we generate a detail report for each schedule
53 s.schedules.each do |t|
54 generate_report(:unit_detail, binding, Pathname.new("reports/detail_#{mangle(t.desc)}.html"))