How to add a test case
From Gerris
(Difference between revisions)
| Revision as of 05:20, 27 March 2012 Popinet (Talk | contribs) ← Previous diff |
Current revision GeordieMcBain (Talk | contribs) (suppressed a spurious plural, inserted missing apostrophe) |
||
| Line 1: | Line 1: | ||
| If you have [http://gerris.dalembert.upmc.fr/gerris/examples/examples/index.html#htoc28 created a new test case], you can add it to the [[tests|Gerris Test suite]] using Darcs. | If you have [http://gerris.dalembert.upmc.fr/gerris/examples/examples/index.html#htoc28 created a new test case], you can add it to the [[tests|Gerris Test suite]] using Darcs. | ||
| - | Lets assume that the test is made of a script <code>testcase.sh</code>, a parameter file <code>testcase.gfs</code>, | + | Let's assume that the test is made of a script <code>testcase.sh</code>, a parameter file <code>testcase.gfs</code>, |
| - | and a GTS objects <code>testcase.gts</code>. | + | and a GTS object <code>testcase.gts</code>. |
| In the test directory, you should | In the test directory, you should | ||
Current revision
If you have created a new test case, you can add it to the Gerris Test suite using Darcs.
Let's assume that the test is made of a script testcase.sh, a parameter file testcase.gfs,
and a GTS object testcase.gts.
In the test directory, you should
- Create a directory which has the name of your test (note that the directory name should not contain underscores '_'),
- Update template.tex in order to include your tex file displaying the results of your test.
- The test can be run from the test directory using the command
% python test.py testcase
Then you can record it:
- Using darcs add the directory and the necessary files to the Gerris darcs repository,
% darcs add test/testcase % darcs add test/testcase/testcase.sh % darcs add test/testcase/testcase.gfs % darcs add test/testcase/testcase.gts
- then records all those changes in a patch,
% darcs record
- and finally, send the patch to Stephane.
% darcs send
[edit]

