CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM

Test directory missing in OpenFOAM 1.6 ext

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   March 16, 2011, 14:37
Default Test directory missing in OpenFOAM 1.6 ext
  #1
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17
andrewryan is on a distinguished road
Just saw that there is no test directory in $FOAM_APP. Why is this I find them quite helpful.
andrewryan is offline   Reply With Quote

Old   March 20, 2011, 12:48
Default
  #2
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,907
Rep Power: 33
hjasak will become famous soon enough
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
hjasak is offline   Reply With Quote

Old   March 20, 2011, 16:41
Default
  #3
Member
 
Andrew Ryan
Join Date: Mar 2009
Posts: 47
Rep Power: 17
andrewryan is on a distinguished road
> 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.
andrewryan is offline   Reply With Quote

Reply

Tags
extended test


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 13:20.