• Home
Name Date Size #Lines LOC

..--

00_Descriptions.txtD03-May-2024108 53

MakefileD03-May-20241.1 KiB304

README.testsD03-May-2024823 2618

cron02D03-May-20242.3 KiB8131

cron03D03-May-20242.6 KiB8429

cron_allow01D03-May-20245.2 KiB203127

cron_deny01D03-May-20244.9 KiB193121

cron_dirs_check.cD03-May-2024818 4533

cron_dirs_checks01D03-May-20241.4 KiB4712

cron_illegal_cron_linesD03-May-20241,009 4034

cron_neg_tests.shD03-May-20242.8 KiB14266

cron_pos_tests.shD03-May-20242 KiB11974

cron_tests.shD03-May-20246 KiB278200

README.tests

1This directory contains two scripts and one data file to test cron. Both
2shouldn't be run as root but they warn for themselves. If a username is
3given as parameter they run as this user.
4
5Both 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