On 02.10.2010, at 14:28, Thomas Weber wrote:

> Hi,
>
> I have a problem running the tests in octave-general.
> Octave 3.2.4
> octave-general 1.2.2
>
> Octave finds the file when using 'help', but doesn't when calling
> 'test'.
> octave:1> help dict
> `dict' is a function from the file
> /usr/share/octave/packages/3.2/general-1.2.2/@dict/dict.m
> ...
>
> octave:2> test dict
> ????? dict does not exist in path
>
> ctave:3> dict
> ans = dict: {}
>
> Changing into the directory and running the tests from there doesn't
> help either:
> octave:6> cd /usr/share/octave/packages/3.2/general-1.2.2/@dict/
> octave:7> help dict
> error: matrix cannot be indexed with .
> error: evaluating argument list element number 1
> error: evaluating argument list element number 1
> error: called from:
> error:   /usr/share/octave/packages/3.2/general-1.2.2/@dict/ 
> isempty.m at
> line 26, column 6
> error:   /usr/share/octave/3.2.4/m/help/__makeinfo__.m at line 74,
> column 1
> error:   /usr/share/octave/3.2.4/m/help/help.m at line 62, column 25
>
> How can I proceed here?
>
> Thanks
>       Thomas

Hi Thomas

I had similar problems and solved it by an "extra" m-file for tests in  
the same directory as the class folder:
You can create something like
/usr/share/octave/packages/3.2/general-1.2.2/test_general.m
and add the line
test test_general
followed by the tests for @dict/*. If you add
test FUNCTION_NAME
in front of "test test_general", it is possible to run all tests of  
"general" at once by typing
test_general.

It's not very elegant, but it works at least.

Best Regards,
Lukas


------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Octave-dev mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/octave-dev

Reply via email to