Bump to 1.14.1
[platform/upstream/augeas.git] / lenses / tests / test_cron.aug
1 module Test_cron =
2
3    let conf = "# /etc/cron.d/anacron: crontab entries for the anacron package
4
5 SHELL=/bin/sh
6 PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
7 CRON_TZ=America/Los_Angeles
8 MAILTO=user1@tld1,user2@tld2;user3@tld3
9
10         30 7      * * *   root  test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null
11   00 */3    15-25/2 May 1-5   user   somecommand
12   00 */3    15-25/2 May mon-tue   user   somecommand
13 # a comment
14 @yearly                         foo    a command\n"
15
16    test Cron.lns get conf =
17       { "#comment" = "/etc/cron.d/anacron: crontab entries for the anacron package" }
18       {}
19       { "SHELL" = "/bin/sh" }
20       { "PATH"  = "/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin" }
21       { "CRON_TZ" = "America/Los_Angeles" }
22       { "MAILTO" = "user1@tld1,user2@tld2;user3@tld3" }
23       {}
24       { "entry" = "test -x /etc/init.d/anacron && /usr/sbin/invoke-rc.d anacron start >/dev/null"
25           { "time"
26               { "minute"       = "30"   }
27               { "hour"         = "7"    }
28               { "dayofmonth"   = "*"    }
29               { "month"        = "*"    }
30               { "dayofweek"    = "*"    } }
31           { "user"         = "root" } }
32       { "entry" = "somecommand"
33           { "time"
34               { "minute"       = "00"      }
35               { "hour"         = "*/3"     }
36               { "dayofmonth"   = "15-25/2" }
37               { "month"        = "May"     }
38               { "dayofweek"    = "1-5"     } }
39           { "user"         = "user"    } }
40       { "entry" = "somecommand"
41           { "time"
42               { "minute"       = "00"      }
43               { "hour"         = "*/3"     }
44               { "dayofmonth"   = "15-25/2" }
45               { "month"        = "May"     }
46               { "dayofweek"    = "mon-tue"     } }
47           { "user"         = "user"    } }
48       { "#comment" = "a comment" }
49       { "entry" = "a command"
50           { "schedule"     = "yearly"  }
51           { "user"         = "foo"     } }