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
13 require 'schedule_file'
15 class TestScheduleFile < Test::Unit::TestCase
17 p = Pathname.new("report-generators/test/example.schedule")
19 s = Schedule.read(p.dirname, f)
21 assert_equal(3, s.schedules.size)
22 assert_equal(s.schedules[2].desc, "this comment is prefixed with whitespace")
23 assert_equal(s.schedules[0].command_line, "$TEST_TOOL ls")
28 p = Pathname.new("report-generators/test/example.schedule")
30 s = Schedule.read(p.dirname, f)
33 s.schedules.each do |t|
34 assert(t.status.success?)