Commit ffb6a1b9 authored by Per Cederqvist's avatar Per Cederqvist

Added some documentation.

(simple_create_delete): Print progres messages when running extended tests.
(simple_create_add_delete): Likewise.
parent 5aa17888
......@@ -21,6 +21,10 @@
#
# Please mail bug reports to bug-lyskom@lysator.liu.se.
# Generate a test script that tests permissions of recpt, cc-recpt and
# bcc-recpt, and that proper asynchronous messages are sent. This
# only tests active membership.
import string
# Set EXTENDED to 1 to emit tests for lots of misc-into combinations,
......@@ -28,9 +32,26 @@ import string
EXTENDED = 0
# Set DEBUG to 1 to emit extra "get-time" calls, which slows the test down
# approximately 5%, but makes it easier to spot errors.
# approximately 5%, but makes it easier to track down errors.
DEBUG = 0
# The database that this test sets up, before any texts are created,
# looks like this:
#
# Persons:
# 6 "Person 6" Member of 6.
# 7 "Person 7" Creator of 10, 11, 12. Member of 10, 11, 12, 13, 14, 15.
# 8 "Person 8" Member of 8, 10, 11, 12, 13, 14, 15.
# 9 "Person 9" Creator of 13, 14, 15. Member of 9.
#
# Conferences:
# 10 "conf 10"
# 11 "conf 11" rd-prot
# 12 "conf 12" rd-prot, secret
# 13 "conf 13"
# 14 "conf 14" rd-prot
# 15 "conf 15" rd-prot, secret
class factory:
def __init__(self, bcc_trigg, bcc_visible, bcc_author_visible,
other_trigg, other_visible, rd):
......@@ -432,6 +453,8 @@ def disco():
def simple_create_delete():
print "send_user \"testing simple create+delete\\n\""
for author in [6, 7, 8, 9]:
if EXTENDED:
print "send_user \"...author %d (be patient)\\n\"" % author
for misc_type in [0, 1, 15]:
for rcpt in [6, 7, 8, 9, 10, 11, 12, 13, 14, 15]:
if author in [6, 9] and rcpt in [12, 15]:
......@@ -455,6 +478,8 @@ def simple_create_add_delete():
print "send_user \"testing simple create+add+delete\\n\""
for author in [6, 7, 8, 9]:
if EXTENDED:
print "send_user \"...author %d (be patient)\\n\"" % author
for misc_type in [0, 1, 15]:
for rcpt in [6, 7, 8, 9, 10, 11, 12, 13, 14, 15]:
if author in [6, 9] and rcpt in [12, 15]:
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment