allwinner_a64/android/external/ltp/testcases/commands/cron
2018-08-08 16:14:42 +08:00
..
00_Descriptions.txt upload android base code part2 2018-08-08 16:14:42 +08:00
cron02 upload android base code part2 2018-08-08 16:14:42 +08:00
cron03 upload android base code part2 2018-08-08 16:14:42 +08:00
cron_allow01 upload android base code part2 2018-08-08 16:14:42 +08:00
cron_deny01 upload android base code part2 2018-08-08 16:14:42 +08:00
cron_dirs_check.c upload android base code part2 2018-08-08 16:14:42 +08:00
cron_dirs_checks01 upload android base code part2 2018-08-08 16:14:42 +08:00
cron_illegal_cron_lines upload android base code part2 2018-08-08 16:14:42 +08:00
cron_neg_tests.sh upload android base code part2 2018-08-08 16:14:42 +08:00
cron_pos_tests.sh upload android base code part2 2018-08-08 16:14:42 +08:00
cron_tests.sh upload android base code part2 2018-08-08 16:14:42 +08:00
Makefile upload android base code part2 2018-08-08 16:14:42 +08:00
README.tests upload android base code part2 2018-08-08 16:14:42 +08:00

This directory contains two scripts and one data file to test cron. Both
shouldn't be run as root but they warn for themselves. If a username is
given as parameter they run as this user.

Both scripts save the current crontab and restore it after finishing.

* Positive tests

	cron_pos_tests.sh [username]

	- add new job
	- check correct execution of job
	- delete job

* Negative tests

	cron_neg_tests.sh [username]

	- try to edit the crontab of root
	- try to set illegal or nondefined execution times
	  Here the script uses file illegal_cron_lines which contains two
	  fields per line: the cron line to be tested (without script name),
	  and the description of this test. The description is written to
	  stdout during execution of the test.
	- try to do things you aren't allowed as non-root (cron runs as root)