CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM (https://www.cfd-online.com/Forums/openfoam/)
-   -   Test directory missing in OpenFOAM 1.6 ext (https://www.cfd-online.com/Forums/openfoam/86198-test-directory-missing-openfoam-1-6-ext.html)

andrewryan March 16, 2011 13:37

Test directory missing in OpenFOAM 1.6 ext
 
Just saw that there is no test directory in $FOAM_APP. Why is this I find them quite helpful.

hjasak March 20, 2011 11:48

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

andrewryan March 20, 2011 15:41

> 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.


All times are GMT -4. The time now is 00:19.