Thu 30 May 2013 12:00:52 PM UTC, original submission:
Hi,
I am experiencing several test failures when packaging the nurbs 1.3.7 release for Debian. I am only giving one here to get feedback on where to look. The error is not deterministic as it is not always the same test that fails and when it fails, the error margin changes (I somehow feel that this points to a library issue, but let's see):
octave:2> ver
----------------------------------------------------------------------
GNU Octave Version 3.6.4
GNU Octave License: GNU General Public License
Operating System: Linux 3.2.0-4-amd64 #1 SMP Debian 3.2.41-2 x86_64
----------------------------------------------------------------------
Package Name | Version | Installation directory
--------------+---------+-----------------------
nurbs *| 1.3.7 | /usr/share/octave/packages/nurbs-1.3.7
octave:3> test nrbbasisfunder
PASSES 3 out of 3 tests
octave:4> pwd
ans = /usr/share/octave/packages/nurbs-1.3.7
octave:5> cd ..
octave:6> test nrbbasisfunder
***** test
U = [0 0 0 0 1 1 1 1];
x = [0 1/3 2/3 1] ;
y = [0 0 0 0];
w = rand(1,4);
nrb = nrbmak ([x;y;y;w], U);
u = linspace(0, 1, 30);
[Bu, id] = nrbbasisfunder (u, nrb);
#plot(u, Bu)
assert (sum(Bu, 2), zeros(numel(u), 1), 1e-10),
!!!!! test failed
assert (sum (Bu, 2),zeros (numel (u), 1),1e-10) expected
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
0
but got
0.000000
-0.000000
-0.000000
0.000000
0.000000
-0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
0.000000
-0.000000
0.000000
0.000000
0.000000
-0.000000
0.000000
-0.000000
-0.000000
0.000000
0.000000
0.057924
0.000000
-0.000000
0.000000
0.000000
-0.000000
0.000000
maximum absolute error 0.0579239 exceeds tolerance 1e-10
octave:7> diary off
So, when I am running the tests in the package directory, the tests pass. If I run it outside, it fails.
|