File: testing.tex

package info (click to toggle)
psicode 3.3.0-3
  • links: PTS, VCS
  • area: main
  • in suites: lenny
  • size: 32,284 kB
  • ctags: 12,083
  • sloc: ansic: 218,247; cpp: 35,679; fortran: 10,489; perl: 5,413; sh: 3,881; makefile: 1,874; yacc: 110; lex: 52; csh: 12
file content (41 lines) | stat: -rw-r--r-- 1,959 bytes parent folder | download | duplicates (6)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
The \PSIthree\ test suite is designed to maximize code reuse and
provide testing in \$prefix before the \PSIthree\
executables have been installed. The configure script in \$PSI3 
will take all the necessary files in \$PSI3/tests
with the .in stub: Makefile.in, MakeRules.in, MakeVars.in,
and runtest.pl.in, replace variables with system specific parameters,
and copy/create the testing files and directories in \$prefix/tests.
The tests should be run in the object directory before installation.

If you have just added a new module for performing, say multireference 
coupled cluster, and you would like to add a test case to the current 
test suite, here is what you should do.  
\begin{enumerate}
\item Copy one of the existing test case directories to an 
      appropriately named directory for the new test case.

\item Create an appropriate input file for running the new module. 
      Then, if your program produced the correct data, rename
      the output files to *.ref. Follow the convention of the 
      existing test cases.

\item If the test case is small, add the directory name to the list
      in \$PSI3/tests/Makefile.in.  If the test is particularly tricky,
      see the psi\_start or rhf-stab test cases as an example.

\item All the testing functionality is located in the perl library
      \file{runtest.pl.in}. If you are testing for a quantity that
      is not searched for currently, then add a function to the 
      library following the format of the functions already available.
      If you have added functionality to the \PSIthree\ driver,
      make sure to update the appropriate functions in \file{runtest.pl.in}.

\item Add the location of the Makefile for the new test case
      to the configure script in \$PSI3.

\end{enumerate}

Please contact one of the authors of \PSIthree\ before making any
major changes or if you have a problem adding a new test case.
Remember, if all else fails, read the source code.