README.tests
1 This directory contains two scripts and one data file to test cron. Both
2 shouldn't be run as root but they warn for themselves. If a username is
3 given as parameter they run as this user.
4
5 Both scripts save the current crontab and restore it after finishing.
6
7 * Positive tests
8
9 cron_pos_tests.sh [username]
10
11 - add new job
12 - check correct execution of job
13 - delete job
14
15 * Negative tests
16
17 cron_neg_tests.sh [username]
18
19 - try to edit the crontab of root
20 - try to set illegal or nondefined execution times
21 Here the script uses file illegal_cron_lines which contains two
22 fields per line: the cron line to be tested (without script name),
23 and the description of this test. The description is written to
24 stdout during execution of the test.
25 - try to do things you aren't allowed as non-root (cron runs as root)
26