This is old DOUG wiki, please go to http://www.dougdevel.org/trac/wiki
Testing
From DOUGWiki
These scripts should help configuring and compiling sources automatically and run many tests sequentially with printing to console or saving results to TAR archive or database. If you want to run only single test then there is no real reason for using script - just to save your time of retyping cd, mpirun,... commands.
Python-2.3 is needed to run testing script.
Steps
- Generate configuration file ./testscript.py -g > my.conf
- Edit configuration file
- Run ./testscript --conf my.conf [-v]
Details
Here is one simple configuration
[DEFAULT] g-examdir=/usr/svn/doug_examples/elemental/generated [testscript] run-svn: no run-autotools: no save-tar: yes save-mysql: yes mysql-host: localhost mysql-user: dougtester mysql-password: <hideithere> mysql-database: dougtests [tests] # set of properties in format # test<name>: <ctrlfile> <solutionfile> <commasep test confs> testE4x4: %(g-examdir)s/e4x4/DOUG.dat %(g-examdir)s/e4x4/doug_csolution.dat basic # whereas configuration is specified as [testconf_basic] solver=1,2 method=1 processors=1,4 # This are default (ie reference) values for svnscripts helper package. # See python ConfigParser package to parse this file. [dougtest] # directory where doug_main and doug_aggr are located dougbindir: /usr/svn/doug-build/src/main # MPI mpiboot: lamboot mpirun: mpirun doug-outfilename: dougtest.out doug-errfilename: dougtest.err
File format used is from python's ConfigParser package. Every module like autotools or dougtest has it's own section in configuration file. Variables from DEFAULT section are automatically assigned to and accessible for every other section, so they are prefixed with g- in the example to avoid name problems.
Script has default value for every variable which can be seen from -g flag output. So, most of the generated configuration may be deleted.
Make sure the given solution file is in binary format (solution_format 1).
