|
[Sponsors] |
March 16, 2011, 14:37 |
Test directory missing in OpenFOAM 1.6 ext
|
#1 |
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17 |
Just saw that there is no test directory in $FOAM_APP. Why is this I find them quite helpful.
|
|
March 20, 2011, 12:48 |
|
#2 |
Senior Member
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33 |
I didn't use this for quite a long time: they are very basic unit tests used in development and there is no need to esu the on regular basis unless you are doing something special.
Now that we use automated public test loops I would like to see all live components tested and kept up to date. Keeping eg dictionary tests live is not sufficient use for the benefit I see - that is why I removed them from the release. Do you feel like keeping the unit tests up to date and creating a test harness? If so, I will consider re-introducing them. Hrv
__________________
Hrvoje Jasak Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk |
|
March 20, 2011, 16:41 |
|
#3 |
Member
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17 |
> I didn't use this for quite a long time: they are very basic unit tests used in development and there is > no need to esu the on regular basis unless you are doing something special.
I agree they are very basic, but for somebody unfamiliar with the OpenFOAM Code they can be helpful. Also I just got them from 1.6-dev > Now that we use automated public test loops I would like to see all live components tested and kept up to > date. Keeping eg dictionary tests live is not sufficient use for the benefit I see - that is why I removed them > from the release. I think I read about that somewhere when installing and compiling 1.6-ext, but I haven't found the actual test code. Are there unit tests somewhere? > Do you feel like keeping the unit tests up to date and creating a test harness? If so, I will consider re- > introducing them. Sure. I tried to write some simple unit tests using google's test framework. One thing I didn't understand so far is how to "mock" some of the larger object. For example to test the trackToFace(..) function in Particle.C one would need a mesh with two cells and one Particle object. For now I just loaded the mesh from files, but for this to work the test needs to run from the directory of a case containing the test data. |
|
Tags |
extended test |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Large test case for running OpenFoam in parallel | fhy | OpenFOAM Running, Solving & CFD | 23 | April 6, 2019 10:55 |
[Commercial meshers] Handling cyclic BC from gambit to openfoam for a cascade airfoil problem - OF 1.6 | maverick | OpenFOAM Meshing & Mesh Conversion | 2 | June 18, 2011 05:36 |
Re : Problem Installing OpenFOAM on Centos -5.3 | mohanphy | OpenFOAM Installation | 1 | February 7, 2010 20:09 |
64bitrhel5 OF installation instructions | mirko | OpenFOAM Installation | 2 | August 12, 2008 19:07 |
Gerris software installation | mer | Main CFD Forum | 2 | November 12, 2005 09:50 |