test/tsked.cc
/// Probe particular times of day. Return error count.
///
Probe particular times of day. Return error count.
Probe particular times of day . Return error count .
BOOST_AUTO_TEST_CASE( Time_probe )
{
    Schedule sched;
    LOG_INFO(Lgr) << "Unit test: Time_probe";
    sched.load(TestSchedule1);
    BOOST_TEST(test_time( sched,  120,  Mon,  0, 0, 0, "OFF" ));
    BOOST_TEST(test_time( sched,  120,  Mon,  7,29,59, "OFF" ));
    BOOST_TEST(test_time( sched,  120,  Mon,  7,30,00, "cms" ));
    BOOST_TEST(test_time( sched,  120,  Mon,  9,00,01, "motd-md" ));
    BOOST_TEST(test_time( sched,  120,  Mon,  9,30,00, "cms" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 12,00,00, "dnow" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 14,00,00, "nis" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 15,00,00, "cms" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 15,30,02, "motd-ymd" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 15,30,03, "cms" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 21,00,00, "OFF" ));
    BOOST_TEST(test_time( sched,  120,  Mon, 23,59,59, "OFF" ));
    BOOST_TEST(test_time( sched,  122,  Wed,  9,00,01, "motd-ymd" ));
}
BOOST_AUTO_TEST_CASE ( Time_probe ) { Schedule sched ; LOG_INFO ( Lgr ) << " " ; sched . load ( TestSchedule1 ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 0 , 0 , 0 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 7 , 29 , 59 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 7 , 30 , 00 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 9 , 00 , 01 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 9 , 30 , 00 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 12 , 00 , 00 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 14 , 00 , 00 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 15 , 00 , 00 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 15 , 30 , 02 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 15 , 30 , 03 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 21 , 00 , 00 , " " ) ) ; BOOST_TEST ( test_time ( sched , 120 , Mon , 23 , 59 , 59 , " " ) ) ; BOOST_TEST ( test_time ( sched , 122 , Wed , 9 , 00 , 01 , " " ) ) ; }
Probe particular times of day.
Probe particular times of day .
// Weds