[Ns-bugs] [Bug 1232] dot11s regression test sets incorrect NS_TEST_SOURCEDIR via SetDataDir

code@nsnam.ece.gatech.edu code at nsnam.ece.gatech.edu
Sun Aug 7 21:58:03 PDT 2011


https://www.nsnam.org/bugzilla/show_bug.cgi?id=1232

--- Comment #5 from Tom Henderson <tomh at tomh.org> 2011-08-08 00:58:02 EDT ---
(In reply to comment #4)
> The problem appears to be related to the fact that for dot11s,
> SetDataDir (NS_TEST_SOURCEDIR) is setting the path for "flame" rather than
> "dot11s".

I agree.  The current means for setting NS_TEST_SOURCEDIR is a bit fragile and
sets it to the directory of the last .cc file found.  Here, we have a few
sub-directories in src/mesh/test and it just picks the last one which happens
to be 'flame'.  

A few options to try to solve this:
1) do not allow src/*/test subdirectories
2) hardcode SetDataDir() in these tests to point to the right subdirectory,
rather than use NS_TEST_SOURCEDIR
3) try to make SetDataDir/NS_TEST_SOURCEDIR to handle multiple test
subdirectories and search through them all

-- 
Configure bugmail: https://www.nsnam.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


More information about the Ns-bugs mailing list