root/mail-onna-stick/trunk/tests/texttest/mos/config.mos

Revision 312, 0.5 kB (checked in by grig, 11 years ago)

Second chance for texttest.

* Changed logging management in lib/mos/config.py so that 3 levels of logging are defined: debug, info and critical
* Added --loglevel option to bin/MailOnnaStick.py which sets the log level (default is debug).

For example, if --loglevel=info is specified,only info and critical messages will be logged.

* Changed calls to log(msg) to one of log.debug, log.info, log.critical. Most are log.info, errors/exceptions are log.critical,

and verbose debugging stuff is log.debug

* Added helper script gen_texttest_gold.sh which will re-generate golden images for all texttest tests

We should now try the following strategy with texttest:
* When adding new functionality, log it as debug, which will be ignored by texttest
* Run texttest test suite and make sure nothing got broken
* Go back and change log.debug to log.info or log.critical if necessary

Line 
1 binary:$MOS_HOME/bin/test-mos-commands
2
3 #[unordered_text]
4 #output:.*@.*
5
6 [collate_file]
7 log:$MOS_HOME/var/mos_test-texttest.log
8
9 [run_dependent_text]
10 output:/home/ggheo/proj/mail-onna-stick
11 output:/tmp/mail-onna-stick
12 output:/home/buildbot/MOS/test-MOS-linux
13 output:socal-piggies.mbox
14 log:[MOS:debug]
15 log:/home/ggheo/proj/mail-onna-stick
16 log:/tmp/mail-onna-stick
17 log:/home/buildbot/MOS/test-MOS-linux
18
19 [batch_recipients]
20 default:grig@gheorghiu.net,titus@caltech.edu
21
22 [batch_use_collection]
23 default:true
24
25 [batch_sender]
26 default:grig@vallista.idyll.org
27
Note: See TracBrowser for help on using the browser.